summaryrefslogtreecommitdiff
path: root/include/vcl/graph.hxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-03-17 15:33:54 -0400
committerJan Holesovsky <kendy@collabora.com>2018-06-07 10:45:17 +0200
commit9b11fdd36ec80f9d1ae0a05455745361e0ce9ced (patch)
tree857ad890a0ff1c96d707cb145fafd74b79d53603 /include/vcl/graph.hxx
parent99bbed5cd87af8ff1b7e3d197d937fb17af021e6 (diff)
pdf: share pdf data in Graphic
Change-Id: I8146aa4e206788afff71142e1877fd7a885f4652
Diffstat (limited to 'include/vcl/graph.hxx')
-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 3eb7c79e7c1e..847e20e202ab 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -230,8 +230,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();
};