You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/09/17 09:32:10 UTC

cvs commit: xml-fop/docs/examples/fo newlinktest.fo leader.fo

keiron      2002/09/17 00:32:10

  Modified:    docs/examples/fo newlinktest.fo leader.fo
  Log:
  improved the examples a bit
  links in static and rotated areas
  better info for use-content on leader
  
  Revision  Changes    Path
  1.3       +36 -2     xml-fop/docs/examples/fo/newlinktest.fo
  
  Index: newlinktest.fo
  ===================================================================
  RCS file: /home/cvs/xml-fop/docs/examples/fo/newlinktest.fo,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- newlinktest.fo	11 Dec 2001 12:08:28 -0000	1.2
  +++ newlinktest.fo	17 Sep 2002 07:32:10 -0000	1.3
  @@ -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">
  @@ -106,6 +119,27 @@
         </fo:table-body>
       </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>
  
  
  
  1.10      +18 -5     xml-fop/docs/examples/fo/leader.fo
  
  Index: leader.fo
  ===================================================================
  RCS file: /home/cvs/xml-fop/docs/examples/fo/leader.fo,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- leader.fo	23 Aug 2002 14:36:37 -0000	1.9
  +++ leader.fo	17 Sep 2002 07:32:10 -0000	1.10
  @@ -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">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org