path: root/writerfilter
diff options
authorJan-Marek Glogowski <>2019-11-01 10:39:47 +0100
committerJan-Marek Glogowski <>2019-12-06 13:02:00 +0100
commit6ed12ab2d0742f86ce25defec3c776562dbfad9a (patch)
tree143a1ab6a03c1a96fe0a03d38c844fb0960cf43b /writerfilter
parentffd319a7589e0e9fcb83681f7f1e7c26a383ae5d (diff)
tdf#120546 fix DOCX overriding numrule format
... at least in the view. This "fixes" the import side of the exported OOXML document with multiple overridden numrule character format. This prevents the change of the shared numrule, which results in all bullets being formatted like the last overridden numrule. What is missing is a consistent way to edit the override, as the override is currently just stored in an internal attribute, the "ListAutoFormat" property. Fixing editing for good will be a larger work, as "ListAutoFormat" must be reflected in the GUI and must have a higher priority then the numrule format. Currently positioning the curser in front of the number or bullet entry lets one change the numrule format, which is applied to all bullets of the same rule. This special DOCX override mode is enabled by the import filter setting DocumentSettingId::APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING to true. This should also change the edit mode, so that a change of the entry doesn't modify the rule, but the override and this must also be reflected in the GUI character settings. Change-Id: I057f7a354bc3c413b114eec772e06c7063029699 Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <>
Diffstat (limited to 'writerfilter')
1 files changed, 3 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 2238984124b1..41a44ce10715 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -6493,6 +6493,9 @@ uno::Reference<beans::XPropertySet> DomainMapper_Impl::GetCurrentNumberingCharSt
xLevels = GetCurrentNumberingRules(&nListLevel);
if (!
+ if (IsOOXMLImport())
+ return xRet;
PropertyMapPtr pContext = m_pTopContext;
if (IsRTFImport() && !IsOpenField())