<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?> 
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> 
<document filename="test_024_indents.pdf"> 


<template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
<pageTemplate id="main">
    <pageGraphics>
       <setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 25: Indents</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
    </pageGraphics>
    <frame id="first" x1="1in" y1="5.845in" width="3in" height="2.645in"/>
    <frame id="second" x1="4.27in" y1="5.845in" width="3in" height="2.645in"/>
    <frame id="third" x1="1in" y1="1in" width="3in" height="2.645in"/>
    <frame id="fourth" x1="4.27in" y1="1in" width="3in" height="2.645in"/>
    </pageTemplate>
    <pageTemplate id="main2">
    <pageGraphics>
       <setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 25: Indents</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
    </pageGraphics>
    <frame id="first" x1="1in" y1="5.845in" width="3in" height="4.645in"/>
    <frame id="second" x1="4.27in" y1="5.845in" width="3in" height="4.645in"/>
    <frame id="third" x1="1in" y1="1in" width="3in" height="4.645in"/>
    <frame id="fourth" x1="4.27in" y1="1in" width="3in" height="4.645in"/>
    </pageTemplate>
</template>

<stylesheet>
    <initialize>
    <alias id="style.normal" value="style.Normal"/>
    </initialize>

    <paraStyle
    name="h1"
    fontName="Times-BoldItalic"
    fontSize="20"
    leading="36"
    />
    
    <paraStyle
    name="normal"
    fontName="Times-Roman"
    fontSize="10"
    leading="12"
	bulletFontName="Times-Roman"
	bulletFontSize="10"
	leftIndent="0"
	firstLineIndent="0"
    />

    <paraStyle
    name="space below"
    fontName="Times-Roman"
    fontSize="10"
    leading="12"
    spaceAfter="10"
    />

    <paraStyle name="bugReport"
    parent="h1"
    spaceBefore = "0"
    textColor = "red"
    />
    <paraStyle name="intro"  fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/>
        
</stylesheet>


<story>
<storyPlace x="35" y="660" width="525" height="73" origin="page">
<para style="intro">RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.</para>
<hr color="white" thickness="8pt"/>
<para style="intro">These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.</para>
<illustration height="3" width="525" align="center">
<fill color= "(0,0.99,0.97,0.0)" />
<rect x="0" y = "-12" width="525" height="3" round="1" fill="1" stroke = "Yes" />
</illustration>
</storyPlace>


<setNextTemplate name="main2"/>
<para style="h1">This is frame 1</para>
<para style="space below"><b>This page tests to see that multiple frames display on one page and that the indent tag works.</b></para>
<para style="normal">
This text should be unindented ie it is at the standard frame size.
This text should be unindented ie it is at the standard frame size.
This text should be unindented ie it is at the standard frame size.
This text should be unindented ie it is at the standard frame size.
</para>
<indent left="1cm">
<para style="normal">
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
</para>
</indent>
<para style="normal">
This text should be unindented again.
This text should be unindented again.
This text should be unindented again.
</para>
<nextFrame/>

<para style="normal">
This text should be unindented ie it is at the standard frame size and has not been affected by the switch to this frame which was done using &lt;nextFrame/&gt;.
</para>
<indent left="1cm">
<para style="normal">
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
</para>
<para style="normal">
This text should be still be indented an extra 1cm on the left even though we switched frames automatically.
This text should be still be indented an extra 1cm on the left even though we switched frames automatically.
This text should be still be indented an extra 1cm on the left even though we switched frames automatically.
This text should be still be indented an extra 1cm on the left even though we switched frames automatically.
</para>
</indent>

<nextFrame/>
<para style="normal">
This text should be unindented ie it is at the standard frame size and has not been affected by the switch to this frame which was done using &lt;nextFrame/&gt;.
</para>
<indent left="1cm">
<para style="normal">
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
This text should be indented an extra 1cm on the left.
</para>
<nextFrame/>
<para style="normal">
This text should be still be indented an extra 1cm on the left even though we switched frames using &lt;nextFrame&gt;.
This text should be still be indented an extra 1cm on the left even though we switched frames using &lt;nextFrame&gt;.
This text should be still be indented an extra 1cm on the left even though we switched frames using &lt;nextFrame&gt;.
This text should be still be indented an extra 1cm on the left even though we switched frames using &lt;nextFrame&gt;.
This text should be still be indented an extra 1cm on the left even though we switched frames using &lt;nextFrame&gt;.
</para>
</indent>
<nextFrame/>
<para style="normal">
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
This text should be unindented.
</para>
<indent right="1cm">
<para style="normal">
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
	This text should be indented an extra 1cm on the right &lt;indent right="1cm"&gt;.
</para>
<indent left="1cm">
<para style="normal">
We did an &lt;indent left="1cm"&gt; tag inside the original one.
We did an &lt;indent left="1cm"&gt; tag inside the original one.
We did an &lt;indent left="1cm"&gt; tag inside the original one.
We did an &lt;indent left="1cm"&gt; tag inside the original one.
We did an &lt;indent left="1cm"&gt; tag inside the original one.
We did an &lt;indent left="1cm"&gt; tag inside the original one.
</para>
</indent>
<para style="normal">
We closed one of the indent tags.
We closed one of the indent tags.
We closed one of the indent tags.
We closed one of the indent tags.
We closed one of the indent tags.
</para>
</indent>
<para style="normal">
Now we closed the other indent tag.
Now we closed the other indent tag.
Now we closed the other indent tag.
Now we closed the other indent tag.
Now we closed the other indent tag.
</para>
<nextFrame/>
<fixedSize><para style="normal"><seqReset id="seq_1"/></para></fixedSize>
<indent left="1cm">
<para style="normal" leftIndent="0"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>Item 1 of outer list.
Item 1 of outer list.
Item 1 of outer list.
Item 1 of outer list.
Item 1 of outer list.
Item 1 of outer list.
</para>
</indent>
<indent left="1cm">
<para style="normal"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>
Item 2 of outer list.
Item 2 of outer list.
Item 2 of outer list.
Item 2 of outer list.
</para>
<fixedSize><para style="normal"><seqReset id="seq_2"/></para></fixedSize>
<indent left="1cm" right="1cm">
<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 1 of inner list.
Item 1 of inner list.
Item 1 of inner list.
Item 1 of inner list.
Item 1 of inner list.
Item 1 of inner list.
</para>
</indent>
<indent left="1cm" right="1cm">
<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 2 of inner list.
Item 2 of inner list.
Item 2 of inner list.
</para>
</indent>
</indent>
<indent left="1cm">
<para style="normal"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>Item 3 of outer list.
Item 3 of outer list.
Item 3 of outer list.
Item 3 of outer list.
</para>
</indent>

<fixedSize><!--we just use this to hide the contents-->
	<para>
	<seqChain order="seq_0 seq_1 seq_2 seq_3 seq_4"/>
	<seqReset id="seq_0"/><seqFormat id="seq_0" value="1"/>
	<seqFormat id="seq_1" value="a"/><seqFormat id="seq_2" value="i"/>
	<seqFormat id="seq_3" value="A"/>
	<seqFormat id="seq_4" value="I"/>
	</para>
</fixedSize>
<nextFrame/>
<para style="space below">Now order lists with seqChain/Format</para>
<indent left="1cm">
	<para style="normal"><bullet bulletIndent="-1cm"><seq id="seq_0"/>)</bullet>Item 1 of outer list.</para>
	<para style="normal"><bullet bulletIndent="-1cm"><seq id="seq_0"/>)</bullet>Item 2 of outer list.</para>
	<indent left="1cm">
		<para style="normal"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>Item 1 of first level list.</para>
		<para style="normal"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>Item 2 of first level list.</para>
		<indent left="1cm">
			<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 1 of second level list.</para>
			<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 2 of second level list.</para>
		</indent>
		<para style="normal"><bullet bulletColor="green" bulletIndent="-1cm"><seq id="seq_1"/>)</bullet>Item 3 of first level list.</para>
		<indent left="1cm">
			<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 1 of second second level list.</para>
			<para style="normal"><bullet bulletColor="pink" bulletIndent="-1cm"><seq id="seq_2"/>)</bullet>Item 2 of second second level list.</para>
			<indent left="0.5cm">
				<para style="normal"><bullet bulletColor="pink" bulletFontName="ZapfDingbats" bulletIndent="-0.5cm">&#110;</bullet>Item 1 of third level list.</para>
				<para style="normal"><bullet bulletColor="limegreen" bulletFontName="ZapfDingbats" bulletIndent="-0.5cm">&#109;</bullet>Item 2 of third level list.</para>
			</indent>
		</indent>
	</indent>
	<para style="normal"><bullet bulletIndent="-1cm"><seq id="seq_0"/>)</bullet>Item 3 of outer list.</para>
</indent>


<para style="h3">This tests the singleton version of the indent tag.</para>
<indent left="1cm"/>
<para style="normal">This text should be indented an extra 1cm on the left.</para>
<indent left="-1cm"/>
<para style="normal">This text should not have the extra indent.</para>
<para style="h4">style h4</para>
<para style="h5">style h5</para>
<para style="h6">style h6</para>
<h4>tag h4</h4>
<h5>tag h5</h5>
<h6>tag h6</h6>
</story>

</document>
