diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-05-17 21:42:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-05-20 10:06:39 +0200 |
commit | 558c6c1161e52f2c5048407fde08c80df9c2186a (patch) | |
tree | 2973e3687135d1edbaa25c0961a1685233bec292 /writerfilter/source/rtftok/rtfdispatchvalue.cxx | |
parent | writerfilter: make RTFParserState members private, part 4 (diff) | |
download | core-558c6c1161e52f2c5048407fde08c80df9c2186a.tar.gz core-558c6c1161e52f2c5048407fde08c80df9c2186a.zip |
writerfilter: make RTFParserState members private, part 5
Change-Id: Iecab0f89283d182eb51329bb8e8281bedd57950c
Reviewed-on: https://gerrit.libreoffice.org/72558
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdispatchvalue.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdispatchvalue.cxx | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx b/writerfilter/source/rtftok/rtfdispatchvalue.cxx index 2d8f901845ed..bce3a1cf44d6 100644 --- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx +++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx @@ -758,34 +758,34 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) // Ignore this for now, the exporter always emits it with a zero parameter. break; case RTF_PICSCALEX: - m_aStates.top().aPicture.nScaleX = nParam; + m_aStates.top().getPicture().nScaleX = nParam; break; case RTF_PICSCALEY: - m_aStates.top().aPicture.nScaleY = nParam; + m_aStates.top().getPicture().nScaleY = nParam; break; case RTF_PICW: - m_aStates.top().aPicture.nWidth = nParam; + m_aStates.top().getPicture().nWidth = nParam; break; case RTF_PICH: - m_aStates.top().aPicture.nHeight = nParam; + m_aStates.top().getPicture().nHeight = nParam; break; case RTF_PICWGOAL: - m_aStates.top().aPicture.nGoalWidth = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nGoalWidth = convertTwipToMm100(nParam); break; case RTF_PICHGOAL: - m_aStates.top().aPicture.nGoalHeight = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nGoalHeight = convertTwipToMm100(nParam); break; case RTF_PICCROPL: - m_aStates.top().aPicture.nCropL = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nCropL = convertTwipToMm100(nParam); break; case RTF_PICCROPR: - m_aStates.top().aPicture.nCropR = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nCropR = convertTwipToMm100(nParam); break; case RTF_PICCROPT: - m_aStates.top().aPicture.nCropT = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nCropT = convertTwipToMm100(nParam); break; case RTF_PICCROPB: - m_aStates.top().aPicture.nCropB = convertTwipToMm100(nParam); + m_aStates.top().getPicture().nCropB = convertTwipToMm100(nParam); break; case RTF_SHPWRK: { @@ -822,23 +822,23 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) switch (nParam) { case 1: - m_aStates.top().aShape.setWrap(text::WrapTextMode_NONE); + m_aStates.top().getShape().setWrap(text::WrapTextMode_NONE); break; case 2: - m_aStates.top().aShape.setWrap(text::WrapTextMode_PARALLEL); + m_aStates.top().getShape().setWrap(text::WrapTextMode_PARALLEL); break; case 3: - m_aStates.top().aShape.setWrap(text::WrapTextMode_THROUGH); + m_aStates.top().getShape().setWrap(text::WrapTextMode_THROUGH); m_aStates.top().aCharacterSprms.set(NS_ooxml::LN_EG_WrapType_wrapNone, new RTFValue()); break; case 4: - m_aStates.top().aShape.setWrap(text::WrapTextMode_PARALLEL); + m_aStates.top().getShape().setWrap(text::WrapTextMode_PARALLEL); m_aStates.top().aCharacterSprms.set(NS_ooxml::LN_EG_WrapType_wrapTight, new RTFValue()); break; case 5: - m_aStates.top().aShape.setWrap(text::WrapTextMode_THROUGH); + m_aStates.top().getShape().setWrap(text::WrapTextMode_THROUGH); break; } } @@ -1060,19 +1060,19 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) } break; case RTF_SHPLEFT: - m_aStates.top().aShape.setLeft(convertTwipToMm100(nParam)); + m_aStates.top().getShape().setLeft(convertTwipToMm100(nParam)); break; case RTF_SHPTOP: - m_aStates.top().aShape.setTop(convertTwipToMm100(nParam)); + m_aStates.top().getShape().setTop(convertTwipToMm100(nParam)); break; case RTF_SHPRIGHT: - m_aStates.top().aShape.setRight(convertTwipToMm100(nParam)); + m_aStates.top().getShape().setRight(convertTwipToMm100(nParam)); break; case RTF_SHPBOTTOM: - m_aStates.top().aShape.setBottom(convertTwipToMm100(nParam)); + m_aStates.top().getShape().setBottom(convertTwipToMm100(nParam)); break; case RTF_SHPZ: - m_aStates.top().aShape.setZ(nParam); + m_aStates.top().getShape().setZ(nParam); break; case RTF_FFTYPE: switch (nParam) @@ -1195,7 +1195,7 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) case RTF_FLYANCHOR: break; case RTF_WMETAFILE: - m_aStates.top().aPicture.eWMetafile = nParam; + m_aStates.top().getPicture().eWMetafile = nParam; break; case RTF_SB: putNestedAttribute(m_aStates.top().aParagraphSprms, NS_ooxml::LN_CT_PPrBase_spacing, @@ -1383,7 +1383,7 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) break; case RTF_SHPFBLWTXT: // Shape is below text -> send it to the background. - m_aStates.top().aShape.setInBackground(nParam != 0); + m_aStates.top().getShape().setInBackground(nParam != 0); break; case RTF_CLPADB: case RTF_CLPADL: @@ -1577,7 +1577,7 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) } break; case RTF_DIBITMAP: - m_aStates.top().aPicture.eStyle = RTFBmpStyle::DIBITMAP; + m_aStates.top().getPicture().eStyle = RTFBmpStyle::DIBITMAP; break; case RTF_TRWWIDTHA: m_aStates.top().setTableRowWidthAfter(nParam); |