diff options
author | Guillaume Smaha <guillaume.smaha@gmail.com> | 2015-11-25 10:18:51 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-14 14:57:07 +0100 |
commit | adef474252f8b5ad97c1ee004783d8223c4bde11 (patch) | |
tree | 976d6c6eb18f3a5a6d32092228b6c3eff414ba80 /writerfilter | |
parent | e99f22bbc499ab0566621ee0bb01e4a7747efe76 (diff) |
RTF import, fix landscape flag & implement lndscpsxn
Reviewed-on: https://gerrit.libreoffice.org/20163
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Tested-by: Mark Hung <marklh9@gmail.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit cbc0c1b64bff517b27104c6335d45fb59a884931)
Change-Id: Id2e8e9c1a9686fd674d712498acb7374a81077d7
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 2c32453cc093..9748fe634be8 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -3487,7 +3487,14 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword) case RTF_LANDSCAPE: { auto pValue = std::make_shared<RTFValue>(NS_ooxml::LN_Value_ST_PageOrientation_landscape); - lcl_putNestedAttribute(m_aStates.top().aSectionSprms, NS_ooxml::LN_EG_SectPrContents_pgSz, NS_ooxml::LN_CT_PageSz_orient, pValue); + lcl_putNestedAttribute(m_aDefaultState.aSectionSprms, + NS_ooxml::LN_EG_SectPrContents_pgSz, NS_ooxml::LN_CT_PageSz_orient, pValue); + } + case RTF_LNDSCPSXN: + { + auto pValue = std::make_shared<RTFValue>(NS_ooxml::LN_Value_ST_PageOrientation_landscape); + lcl_putNestedAttribute(m_aStates.top().aSectionSprms, + NS_ooxml::LN_EG_SectPrContents_pgSz, NS_ooxml::LN_CT_PageSz_orient, pValue); } break; case RTF_SHPBXPAGE: |