diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-02-26 21:42:57 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-02-27 09:08:28 +0100 |
commit | 4ca1789e5735e2f2926822562c19e1989c8f5ce2 (patch) | |
tree | 5b3af46f9b9425dc3210ace11d519a1c50ad06d5 /writerfilter/source/rtftok/rtfdocumentimpl.cxx | |
parent | 1a5c76c16a1b763fc306c80c2a40d560b0d6610a (diff) |
writerfilter: make RTFDrawingObject members private
Change-Id: I72085b130dede835f3fc75cb1335eb3b0c0d9b2e
Reviewed-on: https://gerrit.libreoffice.org/68409
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index c29a54d7fbc9..afc7e7f4c579 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -897,7 +897,7 @@ void RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing::XS std::clamp<sal_Int32>(m_aStates.top().aPicture.nHeight, 0, SAL_MAX_UINT16)); //TODO: better way to handle out-of-bounds values? WmfExternal* pExtHeader = &aExtHeader; - uno::Reference<lang::XServiceInfo> xServiceInfo(m_aStates.top().aDrawingObject.xShape, + uno::Reference<lang::XServiceInfo> xServiceInfo(m_aStates.top().aDrawingObject.getShape(), uno::UNO_QUERY); if (xServiceInfo.is() && xServiceInfo->supportsService("com.sun.star.text.TextFrame")) pExtHeader = nullptr; @@ -2631,11 +2631,11 @@ RTFError RTFDocumentImpl::popState() } break; case Destination::DRAWINGOBJECT: - if (m_aStates.top().aDrawingObject.xShape.is()) + if (m_aStates.top().aDrawingObject.getShape().is()) { RTFDrawingObject& rDrawing = m_aStates.top().aDrawingObject; - uno::Reference<drawing::XShape> xShape(rDrawing.xShape); - uno::Reference<beans::XPropertySet> xPropertySet(rDrawing.xPropertySet); + uno::Reference<drawing::XShape> xShape(rDrawing.getShape()); + uno::Reference<beans::XPropertySet> xPropertySet(rDrawing.getPropertySet()); uno::Reference<lang::XServiceInfo> xServiceInfo(xShape, uno::UNO_QUERY); bool bTextFrame = xServiceInfo->supportsService("com.sun.star.text.TextFrame"); @@ -2657,28 +2657,28 @@ RTFError RTFDocumentImpl::popState() } xShape->setSize(awt::Size(rDrawing.getRight(), rDrawing.getBottom())); - if (rDrawing.bHasLineColor) + if (rDrawing.getHasLineColor()) { - uno::Any aLineColor = uno::makeAny(sal_uInt32((rDrawing.nLineColorR << 16) - + (rDrawing.nLineColorG << 8) - + rDrawing.nLineColorB)); + uno::Any aLineColor = uno::makeAny(sal_uInt32((rDrawing.getLineColorR() << 16) + + (rDrawing.getLineColorG() << 8) + + rDrawing.getLineColorB())); uno::Any aLineWidth; RTFSdrImport::resolveLineColorAndWidth(bTextFrame, xPropertySet, aLineColor, aLineWidth); } - if (rDrawing.bHasFillColor) + if (rDrawing.getHasFillColor()) xPropertySet->setPropertyValue( - "FillColor", uno::makeAny(sal_uInt32((rDrawing.nFillColorR << 16) - + (rDrawing.nFillColorG << 8) - + rDrawing.nFillColorB))); + "FillColor", uno::makeAny(sal_uInt32((rDrawing.getFillColorR() << 16) + + (rDrawing.getFillColorG() << 8) + + rDrawing.getFillColorB()))); else if (!bTextFrame) // If there is no fill, the Word default is 100% transparency. xPropertySet->setPropertyValue("FillTransparence", uno::makeAny(sal_Int32(100))); - RTFSdrImport::resolveFLine(xPropertySet, rDrawing.nFLine); + RTFSdrImport::resolveFLine(xPropertySet, rDrawing.getFLine()); - if (!m_aStates.top().aDrawingObject.bHadShapeText) + if (!m_aStates.top().aDrawingObject.getHadShapeText()) { Mapper().startShape(xShape); } @@ -3308,7 +3308,7 @@ RTFError RTFDocumentImpl::popState() { // If we're leaving the shapetext group (it may have nested ones) and this is a shape, not an old drawingobject. if (m_aStates.top().eDestination != Destination::SHAPETEXT - && !m_aStates.top().aDrawingObject.bHadShapeText) + && !m_aStates.top().aDrawingObject.getHadShapeText()) { m_aStates.top().bHadShapeText = true; if (!m_aStates.top().pCurrentBuffer) |