]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
using leader-length instead of maximum
authorfotis <fotis@unknown>
Wed, 20 Dec 2000 18:49:20 +0000 (18:49 +0000)
committerfotis <fotis@unknown>
Wed, 20 Dec 2000 18:49:20 +0000 (18:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193916 13f79535-47bb-0310-9956-ffa450edef68

docs/examples/fo/leader.fo

index 1e147f9b911872ae78b86e6176315958f4982e86..818ee4ade2d69d03d003cff0d7c98ef25cd072fe 100644 (file)
       <!-- Inserts a leader (space)   -->
       <fo:block text-align="start">Entry 1 
         <fo:leader leader-pattern="space" 
-                   leader-length.maximum="6cm"/>p. 12
+                   leader-length="6cm"/>p. 12
       </fo:block>
 
       <!-- Inserts a leader (space)   -->
       <fo:block text-align="start">Entry 2 
         <fo:leader leader-pattern="space" 
-                   leader-length.maximum="6cm"/>p. 24
+                   leader-length="6cm"/>p. 24
       </fo:block>
 
       <!-- Inserts a leader (space)   -->
       <fo:block text-align="start">Left side  
         <fo:leader leader-pattern="space" 
-                   leader-length.maximum="5.5cm"/>middle
+                   leader-length="5.5cm"/>middle
         <fo:leader leader-pattern="space" 
-                   leader-length.maximum="5.5cm"/>right side
+                   leader-length="5.5cm"/>right side
       </fo:block>
 
 
       <!-- Inserts a leader (dots)   -->
       <fo:block text-align="start">Entry 1 
         <fo:leader leader-pattern="dots" 
-                   leader-length.maximum="6cm"/>p. 12
+                   leader-length="6cm"/>p. 12
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
       <fo:block text-align="start">Entry 2 
         <fo:leader leader-pattern="dots" 
-                   leader-length.maximum="6cm"/>p. 24
+                   leader-length="6cm"/>p. 24
       </fo:block>
 
 
       <fo:block text-align="start">Entry 1 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
-                   leader-length.maximum="6cm"/>p. 12
+                   leader-length="6cm"/>p. 12
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
       <fo:block text-align="start">Entry 2 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
-                   leader-length.maximum="6cm"/>p. 24
+                   leader-length="6cm"/>p. 24
       </fo:block>
 
 
       <fo:block text-align="start">Entry 1 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"/>p. 12
+                   leader-length="6cm"/>p. 12
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
       <fo:block text-align="start">Entry 2 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"/>p. 24
+                   leader-length="6cm"/>p. 24
       </fo:block>
 
       <fo:block font-size="12pt" 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="6cm"/>p. 12
+                   leader-length="6cm"/>p. 12
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="6cm"/>p. 24
+                   leader-length="6cm"/>p. 24
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="6cm"/>p. 36
+                   leader-length="6cm"/>p. 36
       </fo:block>
 
       <!-- Inserts a leader (dots)   -->
         <fo:leader leader-pattern="dots" 
                    leader-alignment="reference-area"
                    leader-pattern-width="5pt"
-                   leader-length.maximum="6cm"/>p. 48
+                   leader-length="6cm"/>p. 48
       </fo:block>
 
 
       <fo:block text-align="start">1 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"
+                   leader-length="6cm"
                    leader-alignment="reference-area"/>p. 12
       </fo:block>
 
       <fo:block text-align="start">Entry 2 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"
+                   leader-length="6cm"
                    leader-alignment="reference-area"/>p. 24
       </fo:block>
 
       <fo:block text-align="start">Entry 3 is longer 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"
+                   leader-length="6cm"
                    leader-alignment="reference-area"/>p. 36
       </fo:block>
 
       <fo:block text-align="start">Entry 4 is even longer 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
-                   leader-length.maximum="6cm"
+                   leader-length="6cm"
                    leader-alignment="reference-area"/>p. 48
       </fo:block>
 
               <fo:block text-align="start">Entry 1 
                 <fo:leader leader-pattern="dots" 
                            leader-pattern-width="5pt"
-                           leader-length.maximum="6cm"/>p. 12
+                           leader-length="6cm"/>p. 12
               </fo:block>
             </fo:block>
           </fo:list-item-body>
               <fo:block text-align="start">Entry 2 
                 <fo:leader leader-pattern="dots" 
                            leader-pattern-width="5pt"
-                           leader-length.maximum="6cm"/>p. 24
+                           leader-length="6cm"/>p. 24
               </fo:block>
             </fo:block>
           </fo:list-item-body>
               <fo:block text-align="start"> 
                 <fo:leader leader-pattern="dots" 
                            leader-pattern-width="8pt"
-                           leader-length.maximum="6cm"/>
+                           leader-length="6cm"/>
               </fo:block>
           </fo:table-cell>
           <fo:table-cell ><fo:block>p. 12</fo:block></fo:table-cell>
               <fo:block text-align="start"> 
                 <fo:leader leader-pattern="dots" 
                            leader-pattern-width="8pt"
-                           leader-length.maximum="6cm"/>
+                           leader-length="6cm"/>
               </fo:block>
           </fo:table-cell>
           <fo:table-cell ><fo:block>p. 24</fo:block></fo:table-cell>
               <fo:block text-align="start"> 
                 <fo:leader leader-pattern="dots" 
                            leader-pattern-width="8pt"
-                           leader-length.maximum="6cm"/>
+                           leader-length="6cm"/>
               </fo:block>
           </fo:table-cell>
           <fo:table-cell ><fo:block>p. 36</fo:block></fo:table-cell>
                    space-after.optimum="12pt"> 
         <fo:leader leader-pattern="rule" 
                    rule-thickness="1.0pt"
-                   leader-length.maximum="6cm"/> 
+                   leader-length="6cm"/> 
+      </fo:block>
+
+      <!-- Inserts a leader (rule). Because leader is an inline fo you have 
+           to wrap it into a block element  -->
+      <fo:block text-align="center"
+                   space-before.optimum="12pt"
+                   space-after.optimum="12pt"> 
+        <fo:leader leader-pattern="rule" 
+                   rule-thickness="2.0pt"
+                   leader-length="6cm"/>
+      </fo:block>
+
+      <!-- Inserts a leader (rule). Because leader is an inline fo you have 
+           to wrap it into a block element  -->
+      <fo:block text-align="center"
+                   space-before.optimum="12pt"
+                   space-after.optimum="12pt"> 
+        <fo:leader leader-pattern="rule" 
+                   rule-thickness="3.0pt"
+                   leader-length="6cm"/>
+      </fo:block>
+
+      <!-- Inserts a leader (rule). Because leader is an inline fo you have 
+           to wrap it into a block element  -->
+      <fo:block text-align="center"
+                   space-before.optimum="12pt"
+                   space-after.optimum="12pt"> 
+        <fo:leader leader-pattern="rule" 
+                   rule-thickness="4.0pt"
+                   leader-length="6cm"/>
+      </fo:block>
+
+
+      <!-- Normal text -->
+      <fo:block font-size="12pt" 
+                font-family="sans-serif" 
+                line-height="15pt"
+                space-before.optimum="5pt"
+                space-after.optimum="3pt"
+                text-align="start">
+        Here are 4 fo:leader with increasing rule-thickness (1pt, 2pt, 3pt, 4pt) and leader-length: 25%, 50%, 75%, 100%
+      </fo:block>
+
+      <!-- Inserts a leader (rule). Because leader is an inline fo you have 
+           to wrap it into a block element  -->
+      <fo:block text-align="center"
+                   space-before.optimum="12pt"
+                   space-after.optimum="12pt"> 
+        <fo:leader leader-pattern="rule" 
+                   rule-thickness="1.0pt"
+                   leader-length="25%"/> 
       </fo:block>
 
       <!-- Inserts a leader (rule). Because leader is an inline fo you have 
                    space-after.optimum="12pt"> 
         <fo:leader leader-pattern="rule" 
                    rule-thickness="2.0pt"
-                   leader-length.maximum="6cm"/>
+                   leader-length="50%"/>
       </fo:block>
 
       <!-- Inserts a leader (rule). Because leader is an inline fo you have 
                    space-after.optimum="12pt"> 
         <fo:leader leader-pattern="rule" 
                    rule-thickness="3.0pt"
-                   leader-length.maximum="6cm"/>
+                   leader-length="75%"/>
       </fo:block>
 
       <!-- Inserts a leader (rule). Because leader is an inline fo you have 
                    space-after.optimum="12pt"> 
         <fo:leader leader-pattern="rule" 
                    rule-thickness="4.0pt"
-                   leader-length.maximum="6cm"/>
+                   leader-length="100%"/>
       </fo:block>
 
 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-length.minimum="2cm"
-                   leader-length.maximum="5cm"/>Here is some longer text. Here is some longer text. 
+                   leader-length.optimum="5cm"/>Here is some longer text. Here is some longer text. 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
         <fo:leader leader-pattern="dots" 
                    leader-pattern-width="5pt"
                    leader-length.minimum="2cm"
-                   leader-length.maximum="5cm"/>Here is some longer text. Here is some longer text. 
+                   leader-length.optimum="5cm"/>Here is some longer text. Here is some longer text. 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
       Here is some longer text. Here comes the leader (dots): 
         <fo:leader leader-pattern="dots" 
                    leader-length.minimum="2cm"
-                   leader-length.maximum="5cm"/>Here is some longer text. Here is some longer text. 
+                   leader-length.optimum="5cm"/>Here is some longer text. Here is some longer text. 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
       Here is some longer text. Here comes the leader (rule): 
         <fo:leader leader-pattern="rule" 
                    leader-length.minimum="2cm"
-                   leader-length.maximum="5cm"/>Here is some longer text. Here is some longer text. 
+                   leader-length.optimum="5cm"/>Here is some longer text. Here is some longer text. 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
       Here is some longer text. Here comes the leader (space): 
         <fo:leader leader-pattern="space" 
                    leader-length.minimum="2cm"
-                   leader-length.maximum="5cm"/>Here is some longer text. Here is some longer text. 
+                   leader-length.optimum="5cm"/>Here is some longer text. Here is some longer text. 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
       leader-pattern="dots"
       leader-pattern-width="8pt"
       leader-alignment="reference-area"
-      leader-length.maximum="14cm"
+      leader-length.optimum="14cm"
       </fo:block>
 
 
         <fo:table-cell><fo:block text-align="start">What is FOP?<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block></fo:table-cell>
+                   leader-length="14cm"/></fo:block></fo:table-cell>
         <fo:table-cell><fo:block text-align="end">1</fo:block></fo:table-cell>
         </fo:table-row>
 
         <fo:table-cell><fo:block text-align="start">Downloading FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block></fo:table-cell>
+                   leader-length="14cm"/></fo:block></fo:table-cell>
         <fo:table-cell><fo:block text-align="end">2</fo:block></fo:table-cell>
         </fo:table-row>
 
         <fo:table-cell><fo:block text-align="start">Running FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block></fo:table-cell>
+                   leader-length="14cm"/></fo:block></fo:table-cell>
         <fo:table-cell><fo:block text-align="end">3</fo:block></fo:table-cell>
         </fo:table-row>
 
         <fo:table-cell><fo:block text-align="start">Embedding FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block></fo:table-cell>
+                   leader-length="14cm"/></fo:block></fo:table-cell>
         <fo:table-cell><fo:block text-align="end">4</fo:block></fo:table-cell>
         </fo:table-row>
 
         <fo:table-cell><fo:block text-align="start">What is Implemented?<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block></fo:table-cell>
+                   leader-length="14cm"/></fo:block></fo:table-cell>
         <fo:table-cell><fo:block text-align="end">5</fo:block></fo:table-cell>
         </fo:table-row>
 
 <fo:block text-align="start">What is FOP?<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block>
+                   leader-length="14cm"/></fo:block>
 
 <fo:block text-align="start">Downloading FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block>
+                   leader-length="14cm"/></fo:block>
 
 <fo:block text-align="start">Running FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block>
+                   leader-length="14cm"/></fo:block>
 
 <fo:block text-align="start">Embedding FOP<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block>
+                   leader-length="14cm"/></fo:block>
 
 <fo:block text-align="start">What is Implemented?<fo:leader leader-pattern="dots" 
                    leader-pattern-width="8pt"
                    leader-alignment="reference-area"
-                   leader-length.maximum="14cm"/></fo:block>
+                   leader-length="14cm"/></fo:block>