Hi,

I'm trying to fine tune paragraph and list styles in filters and I'm not sure 
about the interpretation and application of text-properties of a paragraph 
style.  There is a big difference in application of text-properties of an 
automatic and of a named paragraph style from MS Office point of view.

Named style:
----------------
Any text run should inherit it's text-properties in case it's paragraph 
inherits from the named style.

Automatic style:
-------------------
In case of DOC/DOCX the text-properties store the "Run Properties for the 
Paragraph Mark", which DO NOT affect formatting of any text run in the 
paragraph, but DO affect formatting of the list label.  Any unspecified 
text-properties for the list label should be inherited from the Paragraph 
Mark's text-properties to maintain compatibility with MS Word.

In case of PPT/PPTX the text-properties store "End Paragraph Run Properties", 
which DO NOT affect formatting of any text run of the paragraph, but are to be 
used if another run is inserted after the last run specified.  Also in case of 
empty paragraphs any unspecified text-properties for the list label should be 
inherited from End Paragraph Run Properties to maintain compatibility with MS 
PowerPoint.

Current approach:
---------------------
If I remember correctly we ignore text-properties of the automatic paragraph 
style in the textlayout in case of ODP files.  And we seem to apply them on any 
text run in case of ODT files.  According to my tests LO/OOo do the same in the 
layout, but their filters simply save the text-properties into automatic 
paragraph styles only in case of empty paragraphs.  As expected their 
compatibility with MS Office suffers a lot especially in case of list label 
formatting.

I can continue with fine tuning of list styles in filters and use the same 
approach as LO/OOo in means of text-properties saving, but as soon we start 
working on editing support we might miss the information.

The question:
----------------
Should I proceed with the current approach or do we want to discuss the current 
ODF interpretation?


br,

-matus

--
Matus Uzak
Software Designer
Ixonos Slovakia s.r.o.
Sturova 27, 040 01 Kosice, Slovakia
mobile 0421 918 718 958
email: matus.u...@ixonos.com
http://www.ixonos.com
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel

Reply via email to