Apache OpenOffice (AOO) Bugzilla – Issue 75927
RNG: invalid attribute enable-numbering
Last modified: 2009-02-17 13:31:55 UTC
Cloned task for *** Issue 36217 *** with target milestone: OOo 2.2.1
currently impress and draw write out the attribute enable-numbering which is not part of the ODF format. In issue 36217 I already addressed that documents without this attribute are imported correctly.
export is now corrected if the save backward compatible configuration entry is set
I had to remove this fix and also removed the import fix from issue 36217. Turns out we also exported list-items for paragraphs with enable-numbering = false :-(
I did the following core changes Outliner API - The depth is now always from -1 to 9 for each type of shape. A depth of -1 means that the paragraph is not numbered, therefore the indents of the bullet is not used and no bullet is painted. For a paragraph with depth >= 0, the bullet is painted and the indents from the bullet are added to the lr space item. - The type for the paragraph depth was changed from USHORT to sal_Int16, also the SfxItem EE_PARA_OUTLLEVEL changed to SfxInt16Item. - The SfxItem EE_PARA_BULLETSTATE changed to a SfxBoolItem and also changed the meaning exclude the paragraph from the numbering. Meaning the indends of the bullet format for the current paragraph depth is used and space for a bullet is put before the text but the actual bullet is not painted and for a numbering this paragraph is not counted. This is now an item that is only valid for paragraphs, not for styles. - added numbering start value like in writer + virtual sal_Int16 GetNumberingStartValue( sal_uInt16 nPara ); + virtual void SetNumberingStartValue( sal_uInt16 nPara, sal_Int16 nNumberingStartValue ); This sets the start value for the given paragraph that is used if the paragraph is a numeration. The value -1 means that the paragraph is counted as usual - added numbering restart like in writer + virtual sal_Bool IsParaIsNumberingRestart( sal_uInt16 nPara ); + virtual void SetParaIsNumberingRestart( sal_uInt16 nPara, sal_Bool bParaIsNumberingRestart ); This bool forces a numbering for this paragraph to restart if it is true. UNO API - The property "EnableNumbering" was removed - The property "NumberingIsNumber" was added and has the same meaning as in writer - The property "ParaIsNumberingRestart" was added and has the same meaning as in writer - The property "NumberingStartValue" was added and has the same meaning as in writer
tasks not doable for OOo 3.0 because of user interface freeze will be handled in OOo 3.1 with issue 90113
changes to the bullet handling for the user - it is now possible to have a before text indent and first line indent that is independend of the position settings for active numberings and bullets - switching of numbering and bullets now disables the use of the numbering and bullets position completly - it is now possible to use the numbering style "None" in the "Customize" tab page of the "Bullets and Numbering" dialog - it is possible to remove the bullet from a paragraph by pressing the "backspace" key when the cursor is right behind the bullet. Such paragraphs act like in the writer, the bullet is not painted and the paragraph is not counted for numberings. - Numberings now count correct, meaning paragraphs with no numbering or different numberings are not counted. file format changes that affect the user since the bullets and numbering are now exported odf conform and the previous format written by impress&draw was not odf conform, documents created with versions containing this fix will be imported wrongly by older versions. Namingly OOo 3.0 beta 1 and OOo 2.x/1.x. The same is true for StarOffice 9 beta and and StarOffice 8&9. A version with this fix try to convert documents saved by older versions. A 1:1 representation is not always possible but most times the differences are hard to spot.
send to qa
CGU: Verified in cws impressodf12
*** Issue 92442 has been marked as a duplicate of this issue. ***
Closed.