diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-03-31 09:54:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-03-31 11:02:28 +0200 |
commit | 3db477fd0e6cfc4ff77b3c911ca4ab14fd980932 (patch) | |
tree | 88fb7cf427016cfd3ec47e750ec234dad73541ec /writerfilter/source | |
parent | c088d26578d1be352efa49bd164a8217627648de (diff) |
tdf#140343 sw page rtl gutter margin: add DOCX filter
Map to <w:rtlGutter> inside <w:sectPr>.
Change-Id: Iaa1d9da8c1585ec31c7cbe539f49643eb972c327
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113398
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper.cxx | 7 | ||||
-rw-r--r-- | writerfilter/source/dmapper/PropertyIds.cxx | 3 | ||||
-rw-r--r-- | writerfilter/source/dmapper/PropertyIds.hxx | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 42b8bd3a09a8..a70c5e81d5af 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -1599,6 +1599,13 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext ) pSectionContext->Insert(PROP_WRITING_MODE, uno::makeAny(writingMode)); } break; + case NS_ooxml::LN_EG_SectPrContents_rtlGutter: + if (pSectionContext != nullptr) + { + bool bRtlGutter = nIntValue != 0; + pSectionContext->Insert(PROP_RTL_GUTTER, uno::makeAny(bRtlGutter)); + } + break; case NS_ooxml::LN_EG_RPrBase_highlight: { // MS Word completely ignores character highlighting in character styles. diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx index 5450c0c0dfc6..0100313bdf45 100644 --- a/writerfilter/source/dmapper/PropertyIds.cxx +++ b/writerfilter/source/dmapper/PropertyIds.cxx @@ -360,6 +360,9 @@ OUString getPropertyName( PropertyIds eId ) case PROP_GUTTER_MARGIN: sName = "GutterMargin"; break; + case PROP_RTL_GUTTER: + sName = "RtlGutter"; + break; } assert(sName.getLength()>0); return sName; diff --git a/writerfilter/source/dmapper/PropertyIds.hxx b/writerfilter/source/dmapper/PropertyIds.hxx index 67e804d231cb..a6afe0c5313f 100644 --- a/writerfilter/source/dmapper/PropertyIds.hxx +++ b/writerfilter/source/dmapper/PropertyIds.hxx @@ -359,6 +359,7 @@ enum PropertyIds ,PROP_CELL_FORMULA ,PROP_CELL_FORMULA_CONVERTED ,PROP_GUTTER_MARGIN + ,PROP_RTL_GUTTER }; //Returns the UNO string equivalent to eId. |