]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
improved the examples a bit
authorKeiron Liddle <keiron@apache.org>
Tue, 17 Sep 2002 07:32:10 +0000 (07:32 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 17 Sep 2002 07:32:10 +0000 (07:32 +0000)
links in static and rotated areas
better info for use-content on leader

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195204 13f79535-47bb-0310-9956-ffa450edef68

docs/examples/fo/leader.fo
docs/examples/fo/newlinktest.fo

index 987451fba880f25956ea9cf44b3e86011711da49..4f5c8ea94cd88753970e45baff19bfb05774ef30 100644 (file)
@@ -50,7 +50,7 @@
         b) to create entry fields in fill-in-the-blank forms c) to create horizontal rules for use as separators. You 
         define the look and use of fo:leader with the property "leader-pattern". It can have the following values: a) space. This 
         just creates an space. b) dots. This creates a sequence of "." c) rule. This creates a line. d) use-content. This creates a 
-        repeating pattern of the content of fo:leader (not supported yet by Fop)
+        repeating pattern of the content of fo:leader. 
       </fo:block>
 
 
       Here is some longer text. Here is some longer text. Here is some longer text. 
       </fo:block>
 
+      <fo:block space-before.optimum="15pt" font-weight="bold" font-size="14pt">
+        Use-Content
+      </fo:block>
+
+      <fo:block space-before.optimum="8pt" font-size="12pt">
+        The following examples show Leader with "use-content".
+        The inline areas from the context of the leader are
+        repeated until the lenght of the leader. The
+        "leader-pattern-width" can be used to set the width
+        of each repeated pattern element. <fo:inline font-style="italic">
+        If this width is less than the inline areas then the width
+        of the inline areas is used.</fo:inline>
+      </fo:block>
 
-      <fo:block text-align="start">Characters:
+      <fo:block space-before.optimum="5pt" text-align="start">Characters:
         <fo:leader leader-pattern="use-content">abcd</fo:leader>
       </fo:block>
 
-      <fo:block text-align="start">Set width:
+      <fo:block space-before.optimum="5pt" text-align="start">Set width:
         <fo:leader leader-pattern="use-content"
             leader-pattern-width="50pt">abcd</fo:leader>
       </fo:block>
 
-      <fo:block text-align="start">Small Width:
+      <fo:block space-before.optimum="5pt" text-align="start">Small Width:
         <fo:leader leader-pattern="use-content"
                    leader-pattern-width="2pt">abcd</fo:leader>
       </fo:block>
 
-      <fo:block text-align="start">SVG:
+      <fo:block space-before.optimum="5pt" text-align="start">SVG:
         <fo:leader leader-pattern="use-content">
 <fo:instream-foreign-object>
 <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
index 36484bcd537f1b9d0241ea51e333fa95266a0d0a..afefe6bf215e71e61087e37b33ca2aebfcc7b0e2 100644 (file)
@@ -7,7 +7,9 @@
                   margin-bottom="1in" 
                   margin-left="1in" 
                   margin-right="1in">
-      <fo:region-body/>
+      <fo:region-body margin-top="2.5cm" margin-bottom="1.5cm"/>
+      <fo:region-before extent="2.5cm"/>
+      <fo:region-after extent="1.5cm"/>
     </fo:simple-page-master>
 
 
   <!-- actual layout -->
   <fo:page-sequence master-reference="first">
 
-
+    <!-- header -->
+    <fo:static-content flow-name="xsl-region-before">
+      <fo:block text-align="end"
+            font-size="8pt"
+            font-family="serif"
+            line-height="14pt" >
+            <fo:basic-link external-destination="http://xml.apache.org/fop"
+                           color="rgb(150,150,150)" font-style="italic">
+               http://xml.apache.org/fop
+            </fo:basic-link>
+      </fo:block>
+    </fo:static-content>
 
 
 <fo:flow flow-name="xsl-region-body">
@@ -107,6 +120,27 @@ align="justify"
     </fo:table>
     <!-- table end -->
 
+  <fo:block break-before="page" space-after.optimum="12pt" font-family="serif" text-align="start" font-weight="bold">
+      Links in different orientations
+  </fo:block>
+
+      <fo:block>
+        This block container has a different reference orientation.
+        <fo:block-container reference-orientation="90" inline-progression-dimension="150pt">
+          <fo:block>
+            A link applies to the inline parent area that is created
+            by the basic-link. This inline area has a trait specifying
+            the link.
+          </fo:block>
+          <fo:block>
+            <fo:basic-link external-destination="http://xml.apache.org/fop"
+                           color="blue" text-decoration="underline">
+               http://xml.apache.org/fop
+            </fo:basic-link>
+          </fo:block>
+        </fo:block-container>
+      </fo:block>
+
 
 </fo:flow>