diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-03-17 15:33:54 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-06-07 10:45:17 +0200 |
commit | 9b11fdd36ec80f9d1ae0a05455745361e0ce9ced (patch) | |
tree | 857ad890a0ff1c96d707cb145fafd74b79d53603 /vcl/inc | |
parent | 99bbed5cd87af8ff1b7e3d197d937fb17af021e6 (diff) |
pdf: share pdf data in Graphic
Change-Id: I8146aa4e206788afff71142e1877fd7a885f4652
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/impgraph.hxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 4338ed20021d..052bed0924a5 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -88,7 +88,7 @@ private: bool mbSwapOut; bool mbDummyContext; VectorGraphicDataPtr maVectorGraphicData; - css::uno::Sequence<sal_Int8> maPdfData; + std::shared_ptr<css::uno::Sequence<sal_Int8>> mpPdfData; std::unique_ptr<GraphicID> mpGraphicID; GraphicExternalLink maGraphicExternalLink; @@ -133,6 +133,11 @@ private: return mpGraphicID->getIDString(); } + bool hasPdfData() const + { + return mpPdfData && mpPdfData->hasElements(); + } + void ImplCreateSwapInfo(); void ImplClearGraphics(); void ImplClear(); @@ -214,9 +219,9 @@ private: const VectorGraphicDataPtr& getVectorGraphicData() const; - const css::uno::Sequence<sal_Int8>& getPdfData() const; + const std::shared_ptr<css::uno::Sequence<sal_Int8>>& getPdfData() const; - void setPdfData(const css::uno::Sequence<sal_Int8>& rPdfData); + void setPdfData(const std::shared_ptr<css::uno::Sequence<sal_Int8>>& rPdfData); bool ensureAvailable () const; |