| 1 |
<?xml version="1.0"?> |
| 2 |
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Times Roman" font-size="10pt" text-align="justify"> |
| 3 |
<fo:layout-master-set> |
| 4 |
<fo:simple-page-master master-name="blank" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"> |
| 5 |
<fo:region-body margin-bottom="24pt" margin-top="24pt"/> |
| 6 |
<fo:region-before region-name="xsl-region-before-blank" extent="12pt"/> |
| 7 |
<fo:region-after region-name="xsl-region-after-blank" extent="12pt"/> |
| 8 |
</fo:simple-page-master> |
| 9 |
<fo:simple-page-master master-name="simple1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"> |
| 10 |
<fo:region-body margin-bottom="24pt" margin-top="24pt"/> |
| 11 |
<fo:region-before extent="12pt"/> |
| 12 |
<fo:region-after extent="12pt"/> |
| 13 |
</fo:simple-page-master> |
| 14 |
<fo:simple-page-master master-name="left1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"> |
| 15 |
<fo:region-body margin-bottom="24pt" margin-top="24pt"/> |
| 16 |
<fo:region-before region-name="xsl-region-before-left" extent="12pt"/> |
| 17 |
<fo:region-after region-name="xsl-region-after-left" extent="12pt"/> |
| 18 |
</fo:simple-page-master> |
| 19 |
<fo:simple-page-master master-name="right1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"> |
| 20 |
<fo:region-body margin-bottom="24pt" margin-top="24pt"/> |
| 21 |
<fo:region-before region-name="xsl-region-before-right" extent="12pt"/> |
| 22 |
<fo:region-after region-name="xsl-region-after-right" extent="12pt"/> |
| 23 |
</fo:simple-page-master> |
| 24 |
<fo:simple-page-master master-name="first1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="1in"> |
| 25 |
<fo:region-body margin-bottom="24pt" margin-top="24pt"/> |
| 26 |
<fo:region-before region-name="xsl-region-before-first" extent="12pt"/> |
| 27 |
<fo:region-after region-name="xsl-region-after-first" extent="12pt"/> |
| 28 |
</fo:simple-page-master> |
| 29 |
<fo:simple-page-master master-name="simple2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"> |
| 30 |
<fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/> |
| 31 |
<fo:region-before extent="12pt"/> |
| 32 |
<fo:region-after extent="12pt"/> |
| 33 |
</fo:simple-page-master> |
| 34 |
<fo:simple-page-master master-name="left2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in"> |
| 35 |
<fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/> |
| 36 |
<fo:region-before region-name="xsl-region-before-left" extent="12pt"/> |
| 37 |
<fo:region-after region-name="xsl-region-after-left" extent="12pt"/> |
| 38 |
</fo:simple-page-master> |
| 39 |
<fo:simple-page-master master-name="right2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc"> |
| 40 |
<fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/> |
| 41 |
<fo:region-before region-name="xsl-region-before-right" extent="12pt"/> |
| 42 |
<fo:region-after region-name="xsl-region-after-right" extent="12pt"/> |
| 43 |
</fo:simple-page-master> |
| 44 |
<fo:simple-page-master master-name="first2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="1in"> |
| 45 |
<fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/> |
| 46 |
<fo:region-before region-name="xsl-region-before-first" extent="12pt"/> |
| 47 |
<fo:region-after region-name="xsl-region-after-first" extent="12pt"/> |
| 48 |
</fo:simple-page-master> |
| 49 |
<fo:page-sequence-master master-name="titlepage1"> |
| 50 |
<fo:repeatable-page-master-alternatives> |
| 51 |
<fo:conditional-page-master-reference master-name="first1"/> |
| 52 |
</fo:repeatable-page-master-alternatives> |
| 53 |
</fo:page-sequence-master> |
| 54 |
<fo:page-sequence-master master-name="oneside1"> |
| 55 |
<fo:repeatable-page-master-alternatives> |
| 56 |
<fo:conditional-page-master-reference master-name="simple1"/> |
| 57 |
</fo:repeatable-page-master-alternatives> |
| 58 |
</fo:page-sequence-master> |
| 59 |
<fo:page-sequence-master master-name="twoside1"> |
| 60 |
<fo:repeatable-page-master-alternatives> |
| 61 |
<fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/> |
| 62 |
<fo:conditional-page-master-reference master-name="right1" odd-or-even="odd"/> |
| 63 |
<fo:conditional-page-master-reference master-name="left1" odd-or-even="even"/> |
| 64 |
</fo:repeatable-page-master-alternatives> |
| 65 |
</fo:page-sequence-master> |
| 66 |
<fo:page-sequence-master master-name="titlepage2"> |
| 67 |
<fo:repeatable-page-master-alternatives> |
| 68 |
<fo:conditional-page-master-reference master-name="first2"/> |
| 69 |
</fo:repeatable-page-master-alternatives> |
| 70 |
</fo:page-sequence-master> |
| 71 |
<fo:page-sequence-master master-name="oneside2"> |
| 72 |
<fo:repeatable-page-master-alternatives> |
| 73 |
<fo:conditional-page-master-reference master-name="simple2"/> |
| 74 |
</fo:repeatable-page-master-alternatives> |
| 75 |
</fo:page-sequence-master> |
| 76 |
<fo:page-sequence-master master-name="twoside2"> |
| 77 |
<fo:repeatable-page-master-alternatives> |
| 78 |
<fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/> |
| 79 |
<fo:conditional-page-master-reference master-name="right2" odd-or-even="odd"/> |
| 80 |
<fo:conditional-page-master-reference master-name="left2" odd-or-even="even"/> |
| 81 |
</fo:repeatable-page-master-alternatives> |
| 82 |
</fo:page-sequence-master> |
| 83 |
</fo:layout-master-set> |
| 84 |
<fo:page-sequence id="id2602136" hyphenate="true" master-name="oneside1" language="en" initial-page-number="1"> |
| 85 |
<fo:static-content flow-name="xsl-region-before"> |
| 86 |
<fo:block text-align="center"> |
| 87 |
<fo:block font-size="10pt">Chapter 1. Class Synopses</fo:block> |
| 88 |
</fo:block> |
| 89 |
</fo:static-content> |
| 90 |
<fo:static-content flow-name="xsl-region-after"> |
| 91 |
<fo:block text-align="center" font-size="10pt"> |
| 92 |
<fo:page-number/> |
| 93 |
</fo:block> |
| 94 |
</fo:static-content> |
| 95 |
<fo:flow flow-name="xsl-region-body"> |
| 96 |
<fo:block> |
| 97 |
<fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica"> |
| 98 |
<fo:block keep-with-next.within-column="always" hyphenate="false">Chapter 1. Class Synopses</fo:block> |
| 99 |
</fo:block> |
| 100 |
</fo:block> |
| 101 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This example is Perl; it's the standard DirHandle module. I've |
| 102 |
cut out the code, so you'll have to trust me on the parameters. |
| 103 |
</fo:block> |
| 104 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ProgramListing version:</fo:block> |
| 105 |
<fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt" space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em"> |
| 106 |
package DirHandle; |
| 107 |
|
| 108 |
require 5.000; |
| 109 |
use Carp; |
| 110 |
use Symbol; |
| 111 |
|
| 112 |
sub new { |
| 113 |
} |
| 114 |
</fo:block> |
| 115 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block> |
| 116 |
<fo:block color="red"><classsynopsis><fo:block color="red"><ooclass><fo:inline font-family="Courier">DirHandle</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:inline font-family="Courier">superclass1</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:inline font-family="Courier">superclass2</fo:inline></ooclass></fo:block><fo:block color="red"><classsynopsisinfo> |
| 117 |
require 5.000; |
| 118 |
use Carp; |
| 119 |
use Symbol; |
| 120 |
|
| 121 |
</classsynopsisinfo></fo:block><fo:block color="red"><constructorsynopsis><fo:inline font-family="Courier">new</fo:inline><fo:block color="red"><methodparam><fo:inline font-style="italic" font-family="Courier">$dirname</fo:inline></methodparam></fo:block></constructorsynopsis></fo:block><fo:block color="red"><destructorsynopsis><fo:inline font-family="Courier">DESTROY</fo:inline></destructorsynopsis></fo:block></classsynopsis></fo:block> |
| 122 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This example is IDL from the DOM spec.</fo:block> |
| 123 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ProgramListing version:</fo:block> |
| 124 |
<fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt" space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em"> |
| 125 |
interface Element : Node { |
| 126 |
readonly attribute DOMString tagName; |
| 127 |
DOMString getAttribute(in DOMString name); |
| 128 |
void setAttribute(in DOMString name, |
| 129 |
in DOMString value) |
| 130 |
raises(DOMException); |
| 131 |
}; |
| 132 |
</fo:block> |
| 133 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block> |
| 134 |
<fo:block color="red"><classsynopsis><fo:block color="red"><ooclass><fo:inline font-family="Courier">Element</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:inline font-family="Courier">Node</fo:inline></ooclass></fo:block><fo:block color="red"><fieldsynopsis><fo:block color="red"><modifier>readonly</modifier></fo:block><fo:block color="red"><modifier>attribute</modifier></fo:block>DOMString<fo:inline font-family="Courier">tagName</fo:inline></fieldsynopsis></fo:block><fo:block color="red"><methodsynopsis>DOMString<fo:inline font-family="Courier">getAttribute</fo:inline><fo:block color="red"><methodparam><fo:block color="red"><modifier>in</modifier></fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">name</fo:inline></methodparam></fo:block></methodsynopsis></fo:block><fo:block color="red"><methodsynopsis>();<fo:inline font-family="Courier">setAttribute</fo:inline><fo:block color="red"><methodparam><fo:block color="red"><modifier>in</modifier></fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">name</fo:inline></methodparam></fo:block><fo:block color="red"><methodparam><fo:block color="red"><modifier>in</modifier></fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">value</fo:inline></methodparam></fo:block><fo:inline font-family="Courier">DOMException</fo:inline></methodsynopsis></fo:block></classsynopsis></fo:block> |
| 135 |
<fo:block color="red"><classsynopsis><fo:block color="red"><ooclass><fo:block color="red"><modifier>public</modifier></fo:block><fo:inline font-family="Courier">TextFileWriter</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:inline font-family="Courier">Superclass1</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:inline font-family="Courier">Superclass2</fo:inline></ooclass></fo:block><fo:block color="red"><oointerface><fo:inline font-family="Courier">Interface1</fo:inline></oointerface></fo:block><fo:block color="red"><oointerface><fo:inline font-family="Courier">Interface2</fo:inline></oointerface></fo:block><fo:block color="red"><ooexception><fo:inline font-family="Courier">Exception1</fo:inline></ooexception></fo:block><fo:block color="red"><ooexception><fo:inline font-family="Courier">Exception2</fo:inline></ooexception></fo:block><fo:block color="red"><fieldsynopsis><fo:block color="red"><modifier>private</modifier></fo:block>Writer<fo:inline font-family="Courier">writer</fo:inline></fieldsynopsis></fo:block><fo:block color="red"><fieldsynopsis><fo:block color="red"><modifier>public</modifier></fo:block>String<fo:inline font-family="Courier">writerName</fo:inline><fo:block color="red"><initializer>"MyWriter"</initializer></fo:block></fieldsynopsis></fo:block><fo:block color="red"><methodsynopsis><fo:block color="red"><modifier>static</modifier></fo:block><fo:block color="red"><modifier>public</modifier></fo:block>();<fo:inline font-family="Courier">write</fo:inline><fo:block color="red"><methodparam>ResultTreeFragment<fo:inline font-style="italic" font-family="Courier">frag</fo:inline></methodparam></fo:block><fo:block color="red"><methodparam>String<fo:inline font-style="italic" font-family="Courier">file</fo:inline></methodparam></fo:block><fo:inline font-family="Courier">Exception1</fo:inline><fo:inline font-family="Courier">Exception2</fo:inline></methodsynopsis></fo:block></classsynopsis></fo:block> |
| 136 |
<fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt" space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em"> |
| 137 |
class Rectangle_with_data: virtual Shape, virtual Data_container |
| 138 |
{ |
| 139 |
... |
| 140 |
}; |
| 141 |
</fo:block> |
| 142 |
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block> |
| 143 |
<fo:block color="red"><classsynopsis><fo:block color="red"><ooclass><fo:inline font-family="Courier">Rectangle_with_data</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:block color="red"><modifier>virtual</modifier></fo:block><fo:inline font-family="Courier">Shape</fo:inline></ooclass></fo:block><fo:block color="red"><ooclass><fo:block color="red"><modifier>virtual</modifier></fo:block><fo:inline font-family="Courier">Data_container</fo:inline></ooclass></fo:block><fo:block color="red"><classsynopsisinfo>...</classsynopsisinfo></fo:block></classsynopsis></fo:block> |
| 144 |
</fo:flow> |
| 145 |
</fo:page-sequence> |
| 146 |
</fo:root> |