summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-04-02 20:34:11 -0400
committerJan Holesovsky <kendy@collabora.com>2018-06-01 08:59:11 +0200
commit97aaca9355dda3fcf47888d634c9bd48f3771b95 (patch)
treee967a4275732db9d98380c25f6f844a334966d84 /svx/source
parent6b699d15956faa880784011dfa01b16eef900fe3 (diff)
vcl: svx: preserve the imported PDF page number in Graphic
Change-Id: I1bb3fa7d44d5f92df2bb8c4ed4b85ccd984c2617
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdograf.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 9b98cb7aae7d..5d46df5b1d2c 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -1113,6 +1113,21 @@ GDIMetaFile SdrGrafObj::GetMetaFile(GraphicType &rGraphicType) const
return GDIMetaFile();
}
+bool SdrGrafObj::isEmbeddedPdfData() const
+{
+ return pGraphic->GetGraphic().hasPdfData();
+}
+
+std::shared_ptr<uno::Sequence<sal_Int8>> SdrGrafObj::getEmbeddedPdfData() const
+{
+ return pGraphic->GetGraphic().getPdfData();
+}
+
+sal_Int32 SdrGrafObj::getEmbeddedPageNumber() const
+{
+ return pGraphic->GetGraphic().getPageNumber();
+}
+
SdrObject* SdrGrafObj::DoConvertToPolyObj(bool bBezier, bool bAddText ) const
{
SdrObject* pRetval = nullptr;