summaryrefslogtreecommitdiff
path: root/tests/docbook/result/fo/classsynop.fo
blob: 67569dab36d6e7d1168d30e784079b85e2ccb258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Times Roman" font-size="10pt" text-align="justify">
  <fo:layout-master-set>
    <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">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-blank" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-blank" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before extent="12pt"/>
      <fo:region-after extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-left" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-left" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-right" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-right" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-first" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-first" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before extent="12pt"/>
      <fo:region-after extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-left" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-left" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-right" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-right" extent="12pt"/>
    </fo:simple-page-master>
    <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">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-first" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-first" extent="12pt"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="titlepage1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="first1"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="oneside1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="simple1"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="twoside1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/>
        <fo:conditional-page-master-reference master-name="right1" odd-or-even="odd"/>
        <fo:conditional-page-master-reference master-name="left1" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="titlepage2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="first2"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="oneside2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="simple2"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="twoside2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/>
        <fo:conditional-page-master-reference master-name="right2" odd-or-even="odd"/>
        <fo:conditional-page-master-reference master-name="left2" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  <fo:page-sequence id="id2756502" hyphenate="true" master-name="oneside1" language="en" initial-page-number="1">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="10pt">Chapter 1. Class Synopses</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number xmlns:fo="http://www.w3.org/1999/XSL/Format"/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Chapter 1. Class Synopses</fo:block>
        </fo:block>
      </fo:block>
      <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
cut out the code, so you'll have to trust me on the parameters.
</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ProgramListing version:</fo:block>
      <fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt">
package DirHandle;

require 5.000;
use Carp;
use Symbol;

sub new {
}
</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block>
      <fo:block color="red">&lt;classsynopsis&gt;<fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">DirHandle</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">superclass1</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">superclass2</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;classsynopsisinfo&gt;
require 5.000;
use Carp;
use Symbol;

&lt;/classsynopsisinfo&gt;</fo:block><fo:block color="red">&lt;constructorsynopsis&gt;<fo:inline font-family="Courier">new</fo:inline><fo:block color="red">&lt;methodparam&gt;<fo:inline font-style="italic" font-family="Courier">$dirname</fo:inline>&lt;/methodparam&gt;</fo:block>&lt;/constructorsynopsis&gt;</fo:block><fo:block color="red">&lt;destructorsynopsis&gt;<fo:inline font-family="Courier">DESTROY</fo:inline>&lt;/destructorsynopsis&gt;</fo:block>&lt;/classsynopsis&gt;</fo:block>
      <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>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ProgramListing version:</fo:block>
      <fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt">
interface Element : Node {
  readonly attribute  DOMString            tagName;
  DOMString                 getAttribute(in DOMString name);
  void                      setAttribute(in DOMString name, 
                                         in DOMString value)
                                         raises(DOMException);
};
</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block>
      <fo:block color="red">&lt;classsynopsis&gt;<fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">Element</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">Node</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;fieldsynopsis&gt;<fo:block color="red">&lt;modifier&gt;readonly&lt;/modifier&gt;</fo:block><fo:block color="red">&lt;modifier&gt;attribute&lt;/modifier&gt;</fo:block>DOMString<fo:inline font-family="Courier">tagName</fo:inline>&lt;/fieldsynopsis&gt;</fo:block><fo:block color="red">&lt;methodsynopsis&gt;DOMString<fo:inline font-family="Courier">getAttribute</fo:inline><fo:block color="red">&lt;methodparam&gt;<fo:block color="red">&lt;modifier&gt;in&lt;/modifier&gt;</fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">name</fo:inline>&lt;/methodparam&gt;</fo:block>&lt;/methodsynopsis&gt;</fo:block><fo:block color="red">&lt;methodsynopsis&gt;();<fo:inline font-family="Courier">setAttribute</fo:inline><fo:block color="red">&lt;methodparam&gt;<fo:block color="red">&lt;modifier&gt;in&lt;/modifier&gt;</fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">name</fo:inline>&lt;/methodparam&gt;</fo:block><fo:block color="red">&lt;methodparam&gt;<fo:block color="red">&lt;modifier&gt;in&lt;/modifier&gt;</fo:block>DOMString<fo:inline font-style="italic" font-family="Courier">value</fo:inline>&lt;/methodparam&gt;</fo:block><fo:inline font-family="Courier">DOMException</fo:inline>&lt;/methodsynopsis&gt;</fo:block>&lt;/classsynopsis&gt;</fo:block>
      <fo:block color="red">&lt;classsynopsis&gt;<fo:block color="red">&lt;ooclass&gt;<fo:block color="red">&lt;modifier&gt;public&lt;/modifier&gt;</fo:block><fo:inline font-family="Courier">TextFileWriter</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">Superclass1</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">Superclass2</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;oointerface&gt;<fo:inline font-family="Courier">Interface1</fo:inline>&lt;/oointerface&gt;</fo:block><fo:block color="red">&lt;oointerface&gt;<fo:inline font-family="Courier">Interface2</fo:inline>&lt;/oointerface&gt;</fo:block><fo:block color="red">&lt;ooexception&gt;<fo:inline font-family="Courier">Exception1</fo:inline>&lt;/ooexception&gt;</fo:block><fo:block color="red">&lt;ooexception&gt;<fo:inline font-family="Courier">Exception2</fo:inline>&lt;/ooexception&gt;</fo:block><fo:block color="red">&lt;fieldsynopsis&gt;<fo:block color="red">&lt;modifier&gt;private&lt;/modifier&gt;</fo:block>Writer<fo:inline font-family="Courier">writer</fo:inline>&lt;/fieldsynopsis&gt;</fo:block><fo:block color="red">&lt;fieldsynopsis&gt;<fo:block color="red">&lt;modifier&gt;public&lt;/modifier&gt;</fo:block>String<fo:inline font-family="Courier">writerName</fo:inline><fo:block color="red">&lt;initializer&gt;&quot;MyWriter&quot;&lt;/initializer&gt;</fo:block>&lt;/fieldsynopsis&gt;</fo:block><fo:block color="red">&lt;methodsynopsis&gt;<fo:block color="red">&lt;modifier&gt;static&lt;/modifier&gt;</fo:block><fo:block color="red">&lt;modifier&gt;public&lt;/modifier&gt;</fo:block>();<fo:inline font-family="Courier">write</fo:inline><fo:block color="red">&lt;methodparam&gt;ResultTreeFragment<fo:inline font-style="italic" font-family="Courier">frag</fo:inline>&lt;/methodparam&gt;</fo:block><fo:block color="red">&lt;methodparam&gt;String<fo:inline font-style="italic" font-family="Courier">file</fo:inline>&lt;/methodparam&gt;</fo:block><fo:inline font-family="Courier">Exception1</fo:inline><fo:inline font-family="Courier">Exception2</fo:inline>&lt;/methodsynopsis&gt;</fo:block>&lt;/classsynopsis&gt;</fo:block>
      <fo:block wrap-option="no-wrap" text-align="start" white-space-collapse="false" linefeed-treatment="preserve" font-family="Courier" font-size="9pt">
class Rectangle_with_data:  virtual Shape, virtual Data_container
{
...
};
</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">ClassSynopsis version:</fo:block>
      <fo:block color="red">&lt;classsynopsis&gt;<fo:block color="red">&lt;ooclass&gt;<fo:inline font-family="Courier">Rectangle_with_data</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:block color="red">&lt;modifier&gt;virtual&lt;/modifier&gt;</fo:block><fo:inline font-family="Courier">Shape</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;ooclass&gt;<fo:block color="red">&lt;modifier&gt;virtual&lt;/modifier&gt;</fo:block><fo:inline font-family="Courier">Data_container</fo:inline>&lt;/ooclass&gt;</fo:block><fo:block color="red">&lt;classsynopsisinfo&gt;...&lt;/classsynopsisinfo&gt;</fo:block>&lt;/classsynopsis&gt;</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>