diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-04-01 09:21:39 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-04-01 10:07:21 +0200 |
commit | f15c6c5d2947a61e6521471b6b7541812953efc3 (patch) | |
tree | 14611c291253fbb920b1305d1ffb56866714f6f4 /sw/source | |
parent | c1c817de2780684e41ce5c5783ac895bcf06ab4c (diff) |
tdf#140343 sw page rtl gutter margin: add RTF filter
Map to the \rtlgutter section flag. This means that now rtl gutter is
handled for all Word formats.
Change-Id: I4c2c12b7df2ce2109d4d638df71e6b7f322afe52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113439
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/attributeoutputbase.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 10 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/attributeoutputbase.hxx b/sw/source/filter/ww8/attributeoutputbase.hxx index d85d58237d60..eceeb4f51c5f 100644 --- a/sw/source/filter/ww8/attributeoutputbase.hxx +++ b/sw/source/filter/ww8/attributeoutputbase.hxx @@ -641,7 +641,7 @@ protected: ww8::WidthsPtr GetColumnWidths( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner ); /// RES_RTL_GUTTER - virtual void SectionRtlGutter(const SfxBoolItem& /*rRtlGutter*/) {} + virtual void SectionRtlGutter(const SfxBoolItem& rRtlGutter) = 0; public: AttributeOutputBase(const OUString& sBaseURL) diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 91a0362aa686..6c37ce00be0d 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -4368,4 +4368,14 @@ void RtfAttributeOutput::BulletDefinition(int /*nId*/, const Graphic& rGraphic, m_rExport.Strm().WriteCharPtr("}}"); // pict, shppict } +void RtfAttributeOutput::SectionRtlGutter(const SfxBoolItem& rRtlGutter) +{ + if (!rRtlGutter.GetValue()) + { + return; + } + + m_rExport.Strm().WriteCharPtr(LO_STRING_SVTOOLS_RTF_RTLGUTTER); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index 17cf107d1cf4..94bb37af9686 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -458,6 +458,8 @@ protected: bool DropdownField(const SwField* pField) override; bool PlaceholderField(const SwField* pField) override; + void SectionRtlGutter(const SfxBoolItem& rRtlGutter) override; + private: /// Reference to the export, where to get the data from RtfExport& m_rExport; |