diff options
Diffstat (limited to 'vcl/inc/impgraph.hxx')
-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; |