aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-09-17 07:32:10 +0000
committerKeiron Liddle <keiron@apache.org>2002-09-17 07:32:10 +0000
commit859ead7de8cad0ef18f231428f1f372ab8843eed (patch)
treea9a52bc963b2beecc62a9fd744d0ae88cb0804fc
parent9b00c4f9b3d1a541e6bf74d9769d2c4a65b92e43 (diff)
downloadxmlgraphics-fop-859ead7de8cad0ef18f231428f1f372ab8843eed.tar.gz
xmlgraphics-fop-859ead7de8cad0ef18f231428f1f372ab8843eed.zip
improved the examples a bit
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
-rw-r--r--docs/examples/fo/leader.fo23
-rw-r--r--docs/examples/fo/newlinktest.fo38
2 files changed, 54 insertions, 7 deletions
diff --git a/docs/examples/fo/leader.fo b/docs/examples/fo/leader.fo
index 987451fba..4f5c8ea94 100644
--- a/docs/examples/fo/leader.fo
+++ b/docs/examples/fo/leader.fo
@@ -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>
@@ -718,22 +718,35 @@
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">
diff --git a/docs/examples/fo/newlinktest.fo b/docs/examples/fo/newlinktest.fo
index 36484bcd5..afefe6bf2 100644
--- a/docs/examples/fo/newlinktest.fo
+++ b/docs/examples/fo/newlinktest.fo
@@ -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>
@@ -17,7 +19,18 @@
<!-- 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>