OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [office] style inheritance again


Hi Florian,

Florian Reuter wrote:
>  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?

Just my opinion as a newbie at this TC. The composite result of your
example obviously makes sense. But what about having 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="1.25in"/>
     <style:tab-stop style:position="2.5in"/>
     <style:tab-stop style:position="3.75in"/>
     <style:tab-stop style:position="5in"/>
    </style:tab-stops>
   </style:paragraph-properties>
  </style:style>

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

You will end up in a tabstop mess. Hence I think <style:tab-stops>
should be overwritten by default. But how about introducing an attribute
e.g. 'style:inheritance' with ODF-Next, for example <style:tab-stops
style:inheritance="preserve">?

Best regards,
Peter

-- 
Peter Junge
Open Source Strategy Director

Beijing Redflag Chinese 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
100176 Beijing - P.R.China

北京红旗中文贰仟软件技术有限公司
地址:北京经济技术开发区(亦庄)西环南路18号汇龙森A座二层
邮编:100176

电话/Tel: +86-10-51570010 ext.6183
邮箱/e-mail: peterjunge@RedOffice.com
http://www.RedOffice.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]