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

Justin L <jl...@mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vasily.melenc...@cib.de

--- Comment #5 from Justin L <jl...@mail.com> ---
Adding Vasily to CC, since he has recently done lots of work here, and should
at least be aware of other work happening in numbering.

I'm am guessing that RES_PARATR_NUMRULES is being swallowed up because the
paragraph style specifies the same list - so the direct formatting is lost.
[Turn off numbering style in CustomStyle paragraph style - the sublevels (which
had direct list formatting) are no longer numbered, but the first level (which
inherited from the style) are still numbered. Go figure.]

There is something funny about the way that the numbering is applied, because
if you simply remove and re-add WWNum1 to CustomStyle numbering, then it looks
fine.

The problem does NOT seem to be with direct formatting of indenting, because
changing the indenting of CustomStyle affects the indenting of the sublevels -
indicating that they are inheriting. So for some reason, the paragraph style
overrides the numbering formatting, even though Writer supposedly prioritizes
the list-style over the para-style. [probably because the list-style itself is
not actually applied, just one specific numbering?]

This "hack" fixes the problem for this specific document.
    if( !IsStyleSheetImport() )
    {
        uno::Any aRules = uno::makeAny( pList->GetNumberingRules( ) );
        rContext->Insert( PROP_NUMBERING_RULES, aRules );
+       rContext->Insert( PROP_NUMBERING_STYLE_NAME, pList->GetStyleName());

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to