summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-04-04 17:13:45 +0900
committerJan Holesovsky <kendy@collabora.com>2018-06-01 08:59:09 +0200
commit499f472bd1b3e7f557b743a4f57d3ea0412922fb (patch)
tree4c5bb5b109aedbb5423ee59f79d97004663686b1 /include
parent22adcad267653c8996b733119dfcb35c6391bdf9 (diff)
pdf: share pdf data in Graphic
(cherry picked from commit e3b59350ddceb158d01dedfe368bb600a9b37ea8) Also includes... graphic: move access to cxx for PDFData and VectorGraphicData 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). Reviewed-on: https://gerrit.libreoffice.org/52395 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 18caee072ccbd2be7b947ef2659204d3c18a05f1) Change-Id: I39324a807a4db559bad5501b5913e62a0aeabf01 8146aa4e206788afff71142e1877fd7a885f4652
Diffstat (limited to 'include')
-rw-r--r--include/vcl/graph.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 3690b6165a9f..c77a54ff3f41 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -226,8 +226,10 @@ public:
const VectorGraphicDataPtr& getVectorGraphicData() const;
- void setPdfData(const css::uno::Sequence<sal_Int8>& rPdfData);
- const css::uno::Sequence<sal_Int8>& getPdfData() const;
+ void setPdfData(const std::shared_ptr<css::uno::Sequence<sal_Int8>>& rPdfData);
+ void setPdfData(const css::uno::Sequence<sal_Int8>& rPdfData) { setPdfData(std::make_shared<css::uno::Sequence<sal_Int8>>(rPdfData)); }
+ std::shared_ptr<css::uno::Sequence<sal_Int8>> getPdfData() const;
+ bool hasPdfData() const;
static css::uno::Sequence<sal_Int8> getUnoTunnelId();
};