diff options
-rw-r--r-- | vcl/inc/impgraph.hxx | 6 | ||||
-rw-r--r-- | vcl/source/gdi/graph.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 15 |
3 files changed, 22 insertions, 3 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 4496cfd84b82..a60296fde556 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -191,7 +191,11 @@ private: friend void WriteImpGraphic(SvStream& rOStm, const ImpGraphic& rImpGraphic); friend void ReadImpGraphic(SvStream& rIStm, ImpGraphic& rImpGraphic); - const VectorGraphicDataPtr& getVectorGraphicData() const { return maVectorGraphicData; } + const VectorGraphicDataPtr& getVectorGraphicData() const; + + const css::uno::Sequence<sal_Int8>& getPdfData() const; + + void setPdfData(const css::uno::Sequence<sal_Int8>& rPdfData); }; #endif // INCLUDED_VCL_INC_IMPGRAPH_HXX diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx index b262f262601e..fdaaabf38612 100644 --- a/vcl/source/gdi/graph.cxx +++ b/vcl/source/gdi/graph.cxx @@ -552,12 +552,12 @@ const VectorGraphicDataPtr& Graphic::getVectorGraphicData() const void Graphic::setPdfData(const uno::Sequence<sal_Int8>& rPdfData) { ImplTestRefCount(); - mxImpGraphic->maPdfData = rPdfData; + mxImpGraphic->setPdfData(rPdfData); } const uno::Sequence<sal_Int8>& Graphic::getPdfData() const { - return mxImpGraphic->maPdfData; + return mxImpGraphic->getPdfData(); } OUString Graphic::getOriginURL() const diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index d74af6f18884..d32f93eab3b4 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -396,6 +396,21 @@ bool ImpGraphic::operator==( const ImpGraphic& rImpGraphic ) const return bRet; } +const VectorGraphicDataPtr& ImpGraphic::getVectorGraphicData() const +{ + return maVectorGraphicData; +} + +void ImpGraphic::setPdfData(const uno::Sequence<sal_Int8>& rPdfData) +{ + maPdfData = rPdfData; +} + +const uno::Sequence<sal_Int8>& ImpGraphic::getPdfData() const +{ + return maPdfData; +} + void ImpGraphic::ImplCreateSwapInfo() { if (!ImplIsSwapOut()) |