← Prev in month ← Prev in thread

style inheritance again

From
Florian Reuter <>
Date
2009-03-11T17:11:55+00:00
ID
Thread
style inheritance again
Hi,

I just ran over the following problem about style inheritance in ODF.

Suppose you have the following style definitions:
 <style:style style:name="Standard" style:family="paragraph">
   <style:paragraph-properties>
    <style:tab-stops>
     <style:tab-stop style:position="1in"/>
     <style:tab-stop style:position="2in"/>
     <style:tab-stop style:position="3in"/>
     <style:tab-stop style:position="4in"/>
    </style:tab-stops>
   </style:paragraph-properties>
  </style:style>

 <style:style style:name="MyStyle" style:family="paragraph" style:parent-style-name="Standard">
   <style:paragraph-properties>
    <style:tab-stops>
     <style:tab-stop style:position="5in"/>
    </style:tab-stops>
   </style:paragraph-properties>
  </style:style>

So when rendering a paragraph with style "MyStyle" will the paragraph have 5 tabs [1in, 2in, 3in, 4in, 5in] or just one tab at [1in] according to ODF inheritance?

~Florian
← Prev in month ← Prev in thread