Issue 58607

Summary: Outline Numbering 'show sublevel' not reflect ParentNumbering in Thai locale data
Product: Writer Reporter: samphan
Component: formattingAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: arthit, hin.stone, issues, jjc, markpeak, nesshof, pocha
Version: OOo 2.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 41707, 92549, 60011    
Attachments:
Description Flags
Sample text document using the problematic outline style
none
Workaround that changes outline numbering styles to avoid the problem none

Description samphan 2005-11-29 09:24:43 UTC
In issue 43768, I've submitted the new Thai locale data th_TH.xml,
which include a lot of new outline styles. The changes have been
included in OOo 2.0.1.
Among the outline sytles, there's two styles similar to the one below.
They are offcial formats in some governmental documents.
(The numbers actually use native numeral)

1.
    1.1
       1.1.1
          (1)
             (1.1)

For the entry, I write the OutlineStyle like this :-

<OutlineStyle>
    <OutLineNumberingLevel Prefix=" " NumType="12" Suffix="."
BulletChar="0020" BulletFontName="" ParentNumbering="0" LeftMargin="0"
SymbolTextDistance="50" FirstLineOffset="0"/>
    <OutLineNumberingLevel Prefix=" " NumType="12" Suffix=" "
BulletChar="0020" BulletFontName="" ParentNumbering="1" LeftMargin="50"
SymbolTextDistance="50" FirstLineOffset="0"/>
    <OutLineNumberingLevel Prefix=" " NumType="12" Suffix=" "
BulletChar="0020" BulletFontName="" ParentNumbering="2" LeftMargin="100"
SymbolTextDistance="50" FirstLineOffset="0"/>
    <OutLineNumberingLevel Prefix="(" NumType="12" Suffix=")"
BulletChar="0020" BulletFontName="" ParentNumbering="0" LeftMargin="150"
SymbolTextDistance="50" FirstLineOffset="0"/>
    <OutLineNumberingLevel Prefix="(" NumType="12" Suffix=")"
BulletChar="0020" BulletFontName="" ParentNumbering="1" LeftMargin="200"
SymbolTextDistance="50" FirstLineOffset="0"/>
</OutlineStyle>

Notice the different ParentNumbering in each level.
However, the actual result is :-

1.
    1.1
       1.1.1
          (1)
             (1.1.1.1.1)

You can try the above outline styles in OOo 2.0.1(RC). 
- Set the locale to Thai
- goto Format->Bullets and Numbering->Outline 
- choose the 12th style
- try add some text in different level to see all outline levels

Using "Options" tab on "Bullets and Numbering" dialog,
I found that at level 5 "Show sublevels" is 5 (at level 4 it is correctly 1).
Reducing the number from 5 to 2 will get the correct result.

I've checked i18npool/<platform>/misc/localedata_th_TH.cxx that corresponding
outlineParentNumbering#[] array contains the correct value {0x31, 0x0}.

I guess there may be a problem somewhere.

Expect result :-
(in native numeral)
1.
    1.1
       1.1.1
          (1)
             (1.1)
Comment 1 samphan 2005-11-29 09:30:17 UTC
Created attachment 31887 [details]
Sample text document using the problematic outline style
Comment 2 michael.ruess 2005-12-07 16:28:57 UTC
Reassigned to SBA.
Comment 3 jjc 2005-12-15 16:13:02 UTC
Confirmed in 2.0.1rc4.
Comment 4 stefan.baltzer 2005-12-16 15:43:39 UTC
SBA->MRU: As discussed, back to you. Target set to OOo 2.0.3
Comment 5 michael.ruess 2005-12-23 18:23:39 UTC
MRU->OS: You need to set the locale in OO to "Thai" in order to activate the
needed things in the numbering dialog) the settings for the 12th outline style
in the Numbering/Bullets dialog is slightly wrong; in fifth level there should
only be two "sublevels" visible. That would match the preview on the "Outline"
tabpage.
Comment 6 jjc 2006-01-04 05:20:38 UTC
Created attachment 32892 [details]
Workaround that changes outline numbering styles to avoid the problem
Comment 7 Oliver Specht 2006-01-23 09:35:42 UTC
Added mh to the CC-list
The bug seems to be in svx/source/dialog/numpages.cxx
in line 966 of rev 1.45:
aFmt.SetIncludeUpperLevels(0 != nUpperLevelOrChar ? pActNum->GetLevelCount() : 0);

The number of upper levels is set to the current level number instead of the
configured count. This results in 5 upper levels instead of 2.
Comment 8 Oliver Specht 2006-05-18 12:46:40 UTC
Target changed to 2.x
Comment 9 Martin Hollmichel 2007-09-10 13:36:16 UTC
move target to 3.x according http://wiki.services.openoffice.org/wiki/Target_3x
Comment 10 Marcus 2017-05-20 11:15:38 UTC
Reset assigne to the default "issues@openoffice.apache.org".