[Libreoffice-bugs] [Bug 94326] Chapter numbering (heading styles) not displaying numbering (DOC fileopen)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 16 17:56:52 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=94326

--- Comment #24 from Justin L <jluth at mail.com> ---
comment 0's "numbered headers example.doc" is different again.

In this one, Заголовок 1 is Heading 1, and it defines outlinelvl=0, ilvl=0
(twice) and ilfo numId as 1 and then 2.
<rgtchar value="Heading 8"/>
<istd value="0x8"/>
<sprm value="0x2640" ispmd="0x40" fSpec="0x1" sgc="paragraph" spra="1"
name="sprmPOutLvl" operandSize="1" operand="0x7"/>
<sprm value="0x260a" ispmd="0xa" fSpec="0x1" sgc="paragraph" spra="1"
name="sprmPIlvl" operandSize="1" operand="0x7"/>
<sprm value="0x460b" ispmd="0xb" fSpec="0x1" sgc="paragraph" spra="2"
name="sprmPIlfo" operandSize="2" operand="0x1"/>
<sprm value="0x260a" ispmd="0xa" fSpec="0x1" sgc="paragraph" spra="1"
name="sprmPIlvl" operandSize="1" operand="0x7"/>
sprm value="0x460b" ispmd="0xb" fSpec="0x1" sgc="paragraph" spra="2"
name="sprmPIlfo" operandSize="2" operand="0x2"/>

In addition, the paragraph seems to have direct formatting setting ilvl to 0,
ilfo to 8.
<transformed value="ОБЩИЕ ПОЛОЖЕНИЯ\x0D"/>
<bxPap type="BxPap" offset="3149" size="4608 bytes">
<istd value="0x1"/>  #paragraph style #1 - aka heading 1
<sprm value="0x260a" ispmd="0xa" fSpec="0x1" sgc="paragraph" spra="1"
name="sprmPIlvl" operandSize="1" operand="0x0"/>
<sprm value="0x460b" ispmd="0xb" fSpec="0x1" sgc="paragraph" spra="2"
name="sprmPIlfo" operandSize="2" operand="0x8"/>  #numId eight

But apparently the numbering style is set to NONE(instead of decimal,
romanLower, letterUpper etc) for the numbering list 2 (aka Heading 1). So that
part is all correct.
<lvl type="LVL" index="1" offset="14147">   #numID=2
<lvlf type="LVLF" offset="14147">
<iStartAt value="0x1"/>
<nfc value="0xff"/>  #if nfc is equal to 0xFF or 0x17, this level has no number
sequence, and the level number of the paragraph is an empty string.

The numbering style for numId 8 (LVL 63-71) specifies decimal numbering.
<lvl type="LVL" index="63" offset="17904">
<lvlf type="LVLF" offset="17904">
<iStartAt value="0x1"/>
<nfc value="0x0"/>  #decimal


It seems as if the direct formatting is being removed, because the numbering
can be controlled by changing the Chapter Numbering number type.

This is "fixed" by commenting out //bAppliedChangedOutlineStyle = true;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210416/4c0e3790/attachment.htm>


More information about the Libreoffice-bugs mailing list