diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/quickbook/test/include/code-import.gold | |
parent | Initial commit. (diff) | |
download | ceph-upstream/16.2.11+ds.tar.xz ceph-upstream/16.2.11+ds.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/boost/tools/quickbook/test/include/code-import.gold | 138 | ||||
-rw-r--r-- | src/boost/tools/quickbook/test/include/code-import.gold-html | 148 |
2 files changed, 286 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/include/code-import.gold b/src/boost/tools/quickbook/test/include/code-import.gold new file mode 100644 index 000000000..12089ece2 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-import.gold @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"> +<article id="import" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $" xmlns:xi="http://www.w3.org/2001/XInclude"> + <title>Import</title> + <para> + This is the <emphasis role="bold"><emphasis>foo</emphasis></emphasis> function. + </para> + <para> + This description can have paragraphs... + </para> + <itemizedlist> + <listitem> + <simpara> + lists + </simpara> + </listitem> + <listitem> + <simpara> + etc. + </simpara> + </listitem> + </itemizedlist> + <para> + And any quickbook block markup. + </para> + <para> +<programlisting><phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">string</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase> +<phrase role="special">{</phrase> + <phrase role="comment">// return 'em, foo man!</phrase> + <phrase role="keyword">return</phrase> <phrase role="string">"foo"</phrase><phrase role="special">;</phrase> +<phrase role="special">}</phrase> +</programlisting> + </para> + <para> + This is the Python <emphasis role="bold"><emphasis>foo</emphasis></emphasis> + function. + </para> + <para> + This description can have paragraphs... + </para> + <itemizedlist> + <listitem> + <simpara> + lists + </simpara> + </listitem> + <listitem> + <simpara> + etc. + </simpara> + </listitem> + </itemizedlist> + <para> + And any quickbook block markup. + </para> + <para> +<programlisting><phrase role="keyword">def</phrase> <phrase role="identifier">foo</phrase><phrase role="special">():</phrase> + <phrase role="comment"># return 'em, foo man!</phrase> + <phrase role="keyword">return</phrase> <phrase role="string">"foo"</phrase> +</programlisting> + </para> + <para> + This is the C <emphasis role="bold"><emphasis>foo</emphasis></emphasis> function. + </para> + <para> + This description can have paragraphs... + </para> + <itemizedlist> + <listitem> + <simpara> + lists + </simpara> + </listitem> + <listitem> + <simpara> + etc. + </simpara> + </listitem> + </itemizedlist> + <para> + And any quickbook block markup. + </para> + <para> +<programlisting><phrase role="keyword">char</phrase><phrase role="special">*</phrase> <phrase role="identifier">foo</phrase><phrase role="special">()</phrase> +<phrase role="special">{</phrase> + <phrase role="comment">// return 'em, foo man!</phrase> + <phrase role="keyword">return</phrase> <phrase role="string">"foo"</phrase><phrase role="special">;</phrase> +<phrase role="special">}</phrase> +</programlisting> + </para> + <para> +<programlisting><phrase role="keyword">class</phrase> <phrase role="identifier">x</phrase> +<phrase role="special">{</phrase> +<phrase role="keyword">public</phrase><phrase role="special">:</phrase> + + <co id="import.c0" linkends="import.c1" /><phrase role="identifier">x</phrase><phrase role="special">()</phrase> <phrase role="special">:</phrase> <phrase role="identifier">n</phrase><phrase role="special">(</phrase><phrase role="number">0</phrase><phrase role="special">)</phrase> + <phrase role="special">{</phrase> + <phrase role="special">}</phrase> + + <co id="import.c2" linkends="import.c3" /><phrase role="special">~</phrase><phrase role="identifier">x</phrase><phrase role="special">()</phrase> + <phrase role="special">{</phrase> + <phrase role="special">}</phrase> + + <co id="import.c4" linkends="import.c5" /><phrase role="keyword">int</phrase> <phrase role="identifier">get</phrase><phrase role="special">()</phrase> <phrase role="keyword">const</phrase> + <phrase role="special">{</phrase> + <phrase role="keyword">return</phrase> <phrase role="identifier">n</phrase><phrase role="special">;</phrase> + <phrase role="special">}</phrase> + + <co id="import.c6" linkends="import.c7" /><phrase role="keyword">void</phrase> <phrase role="identifier">set</phrase><phrase role="special">(</phrase><phrase role="keyword">int</phrase> <phrase role="identifier">n_</phrase><phrase role="special">)</phrase> + <phrase role="special">{</phrase> + <phrase role="identifier">n</phrase> <phrase role="special">=</phrase> <phrase role="identifier">n_</phrase><phrase role="special">;</phrase> + <phrase role="special">}</phrase> +<phrase role="special">};</phrase> +</programlisting> + </para> + <calloutlist> + <callout arearefs="import.c0" id="import.c1"> + <para> + Constructor + </para> + </callout> + <callout arearefs="import.c2" id="import.c3"> + <para> + Destructor + </para> + </callout> + <callout arearefs="import.c4" id="import.c5"> + <para> + Get the <code><phrase role="identifier">n</phrase></code> member variable + </para> + </callout> + <callout arearefs="import.c6" id="import.c7"> + <para> + Set the <code><phrase role="identifier">n</phrase></code> member variable + </para> + </callout> + </calloutlist> +</article> diff --git a/src/boost/tools/quickbook/test/include/code-import.gold-html b/src/boost/tools/quickbook/test/include/code-import.gold-html new file mode 100644 index 000000000..1fbe10557 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-import.gold-html @@ -0,0 +1,148 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <h3> + Import + </h3> + <p> + This is the <span class="bold"><strong><span class="emphasis"><em>foo</em></span></strong></span> + function. + </p> + <p> + This description can have paragraphs... + </p> + <ul> + <li> + <div> + lists + </div> + </li> + <li> + <div> + etc. + </div> + </li> + </ul> + <p> + And any quickbook block markup. + </p> + <p> +<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">foo</span><span class="special">()</span> +<span class="special">{</span> + <span class="comment">// return 'em, foo man!</span> + <span class="keyword">return</span> <span class="string">"foo"</span><span class="special">;</span> +<span class="special">}</span> +</pre> + </p> + <p> + This is the Python <span class="bold"><strong><span class="emphasis"><em>foo</em></span></strong></span> + function. + </p> + <p> + This description can have paragraphs... + </p> + <ul> + <li> + <div> + lists + </div> + </li> + <li> + <div> + etc. + </div> + </li> + </ul> + <p> + And any quickbook block markup. + </p> + <p> +<pre class="programlisting"><span class="keyword">def</span> <span class="identifier">foo</span><span class="special">():</span> + <span class="comment"># return 'em, foo man!</span> + <span class="keyword">return</span> <span class="string">"foo"</span> +</pre> + </p> + <p> + This is the C <span class="bold"><strong><span class="emphasis"><em>foo</em></span></strong></span> + function. + </p> + <p> + This description can have paragraphs... + </p> + <ul> + <li> + <div> + lists + </div> + </li> + <li> + <div> + etc. + </div> + </li> + </ul> + <p> + And any quickbook block markup. + </p> + <p> +<pre class="programlisting"><span class="keyword">char</span><span class="special">*</span> <span class="identifier">foo</span><span class="special">()</span> +<span class="special">{</span> + <span class="comment">// return 'em, foo man!</span> + <span class="keyword">return</span> <span class="string">"foo"</span><span class="special">;</span> +<span class="special">}</span> +</pre> + </p> + <p> +<pre class="programlisting"><span class="keyword">class</span> <span class="identifier">x</span> +<span class="special">{</span> +<span class="keyword">public</span><span class="special">:</span> + + <a href="#import.c1">(1)</a><span class="identifier">x</span><span class="special">()</span> <span class="special">:</span> <span class="identifier">n</span><span class="special">(</span><span class="number">0</span><span class="special">)</span> + <span class="special">{</span> + <span class="special">}</span> + + <a href="#import.c3">(2)</a><span class="special">~</span><span class="identifier">x</span><span class="special">()</span> + <span class="special">{</span> + <span class="special">}</span> + + <a href="#import.c5">(3)</a><span class="keyword">int</span> <span class="identifier">get</span><span class="special">()</span> <span class="keyword">const</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">n</span><span class="special">;</span> + <span class="special">}</span> + + <a href="#import.c7">(4)</a><span class="keyword">void</span> <span class="identifier">set</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">n_</span><span class="special">)</span> + <span class="special">{</span> + <span class="identifier">n</span> <span class="special">=</span> <span class="identifier">n_</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> +</pre> + </p> + <div> + <div id="import.c1"> + <a href="#import.c0">(1)</a> + <p> + Constructor + </p> + </div> + <div id="import.c3"> + <a href="#import.c2">(2)</a> + <p> + Destructor + </p> + </div> + <div id="import.c5"> + <a href="#import.c4">(3)</a> + <p> + Get the <code><span class="identifier">n</span></code> member variable + </p> + </div> + <div id="import.c7"> + <a href="#import.c6">(4)</a> + <p> + Set the <code><span class="identifier">n</span></code> member variable + </p> + </div> + </div> + </body> +</html> |