<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN DOCX Indent of numbered paragraphs based on custom style lost"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133000">bug 133000</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>vasily.melenchuk@cib.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN DOCX Indent of numbered paragraphs based on custom style lost"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133000#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN DOCX Indent of numbered paragraphs based on custom style lost"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133000">bug 133000</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>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());</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>