From 18caee072ccbd2be7b947ef2659204d3c18a05f1 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 4 Apr 2018 17:13:45 +0900 Subject: graphic: move access to cxx for PDFData and VectorGraphicData MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need strict control when PDFData and VectorGraphicData is accessed and changed, so create access methods for PDFData and move the access methods to cxx (for VectorGraphicData). Change-Id: I39324a807a4db559bad5501b5913e62a0aeabf01 Reviewed-on: https://gerrit.libreoffice.org/52395 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/inc/impgraph.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vcl/inc/impgraph.hxx') 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& getPdfData() const; + + void setPdfData(const css::uno::Sequence& rPdfData); }; #endif // INCLUDED_VCL_INC_IMPGRAPH_HXX -- cgit