Author: gmcdonald
Date: Sun Aug 24 00:08:32 2008
New Revision: 688455
URL: http://svn.apache.org/viewvc?rev=688455&view=rev
Log:
Add templates for ol,esub,sup,em,code,strong and associated styling
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_content.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_styles.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_content.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_content.xml?rev=688455&r1=688454&r2=688455&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_content.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_content.xml
Sun Aug 24 00:08:32 2008
@@ -31,13 +31,54 @@
<style:font-face style:name="Tahoma"
svg:font-family="Tahoma" style:font-family-generic="system"
style:font-pitch="variable"/>
</office:font-face-decls>
<office:automatic-styles>
- <style:style style:name="P5" style:family="paragraph">
- <style:paragraph-properties
fo:margin-top="0cm" fo:margin-bottom="0cm"/>
- </style:style>
- <style:style style:name="P6" style:family="paragraph">
- <style:paragraph-properties
fo:margin-top="0cm" fo:margin-bottom="0cm"/>
- <style:text-properties fo:font-weight="bold"/>
- </style:style>
+ <text:list-style style:name="L1">
+ <text:list-level-style-number text:level="1"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="0.748cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="2"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="1.995cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="3"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="3.242cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="4"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="4.489cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="5"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="5.736cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="6"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="6.983cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="7"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="8.23cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="8"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties text:space-before="9.478cm"
text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="9"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties
text:space-before="10.725cm" text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ <text:list-level-style-number text:level="10"
text:style-name="Numbering_20_Symbols" style:num-suffix="."
style:num-format="1">
+ <style:list-level-properties
text:space-before="11.972cm" text:min-label-width="0.499cm"/>
+ </text:list-level-style-number>
+ </text:list-style>
+
+ <style:style style:name="P1" style:family="paragraph"
style:parent-style-name="Standard" style:list-style-name="L1"/>
+ <style:style style:name="P5" style:family="paragraph">
+ <style:paragraph-properties fo:margin-top="0cm"
fo:margin-bottom="0cm"/>
+ </style:style>
+ <style:style style:name="P6" style:family="paragraph">
+ <style:paragraph-properties fo:margin-top="0cm"
fo:margin-bottom="0cm"/>
+ <style:text-properties fo:font-weight="bold"/>
+ </style:style>
+
+ <style:style style:name="T1" style:family="text">
+ <style:text-properties style:text-position="sub 60%"/>
+ </style:style>
+ <style:style style:name="T2" style:family="text">
+ <style:text-properties style:text-position="super 60%"/>
+ </style:style>
</office:automatic-styles>
<office:body>
<office:text>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_styles.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_styles.xml?rev=688455&r1=688454&r2=688455&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_styles.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/include_styles.xml
Sun Aug 24 00:08:32 2008
@@ -62,6 +62,16 @@
<style:paragraph-properties text:number-lines="false"
text:line-number="0"/>
<style:text-properties style:font-name-complex="Tahoma1"/>
</style:style>
+ <style:style style:name="Emphasis" style:family="text">
+ <style:text-properties fo:font-style="italic"
style:font-style-asian="italic" style:font-style-complex="italic"/>
+ </style:style>
+ <style:style style:name="Source_20_Text"
style:display-name="Source Text" style:family="text">
+ <style:text-properties style:font-name="DejaVu Sans Mono"
style:font-name-asian="DejaVu Sans Mono" style:font-name-complex="DejaVu Sans
Mono"/>
+ </style:style>
+ <style:style style:name="Strong_20_Text"
style:display-name="Strong Text" style:family="text">
+ <style:text-properties fo:font-weight="bold"
style:font-weight-asian="bold" style:font-weight-complex="bold"/>
+ </style:style>
+
<text:outline-style>
<text:outline-level-style text:level="1"
style:num-format="">
<style:list-level-properties
text:min-label-distance="0.381cm"/>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl?rev=688455&r1=688454&r2=688455&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.OOo/resources/stylesheets/xdoc-to-odt.xsl
Sun Aug 24 00:08:32 2008
@@ -80,6 +80,11 @@
<xsl:apply-templates/>
</text:list>
</xsl:template>
+ <xsl:template match="ol">
+ <text:list text:style-name="L1">
+ <xsl:apply-templates/>
+ </text:list>
+ </xsl:template>
<xsl:template match="li">
<text:list-item>
<xsl:choose>
@@ -94,6 +99,32 @@
</xsl:choose>
</text:list-item>
</xsl:template>
+ <xsl:template match="sub">
+ <text:span text:style-name="T1">
+ <xsl:value-of select="."/>
+ </text:span>
+ </xsl:template>
+ <xsl:template match="sup">
+ <text:span text:style-name="T2">
+ <xsl:value-of select="."/>
+ </text:span>
+ </xsl:template>
+ <xsl:template match="em">
+ <text:span text:style-name="Emphasis">
+ <xsl:value-of select="."/>
+ </text:span>
+ </xsl:template>
+ <xsl:template match="code">
+ <text:span text:style-name="Source_20_Text">
+ <xsl:value-of select="."/>
+ </text:span>
+ </xsl:template>
+ <xsl:template match="strong">
+ <text:span text:style-name="Strong_20_Text">
+ <xsl:value-of select="."/>
+ </text:span>
+ </xsl:template>
+
<xsl:template match="note | warning | fixme">
<xsl:choose>
<xsl:when test="@label">