summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-05-01 18:46:47 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-05-02 19:28:27 +0200
commitb743d446d8cccabcf3d002da652da0a8854ad883 (patch)
tree12d1cae6dccfa63154a171031dcad7d731547aea /sfx2/inc
parente6532f75e1901a783c50907fd5e94f1bb6a01f6b (diff)
tdf#125063: Don't depend on content size for Page sizing
During redaction of Calc sheets Change-Id: If2a4f71c77a687a74b8f823152b76d2a7e2e21da Reviewed-on: https://gerrit.libreoffice.org/71627 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/SfxRedactionHelper.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/inc/SfxRedactionHelper.hxx b/sfx2/inc/SfxRedactionHelper.hxx
index d338143c608e..1cd653650557 100644
--- a/sfx2/inc/SfxRedactionHelper.hxx
+++ b/sfx2/inc/SfxRedactionHelper.hxx
@@ -15,6 +15,7 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
+#include <tools/gen.hxx>
#include <vector>
@@ -47,7 +48,7 @@ public:
* and pushes into the given vector.
* */
static void getPageMetaFilesFromDoc(std::vector<GDIMetaFile>& aMetaFiles,
- const sal_Int32& nPages,
+ std::vector<::Size>& aPageSizes, const sal_Int32& nPages,
DocumentToGraphicRenderer& aRenderer, bool bIsWriter,
bool bIsCalc);
/*
@@ -55,7 +56,8 @@ public:
* and inserts the shapes into the newly created draw pages.
* */
static void addPagesToDraw(uno::Reference<XComponent>& xComponent, const sal_Int32& nPages,
- const std::vector<GDIMetaFile>& aMetaFiles, bool bIsCalc);
+ const std::vector<GDIMetaFile>& aMetaFiles,
+ const std::vector<::Size>& aPageSizes, bool bIsCalc);
/*
* Makes the Redaction toolbar visible to the user.
* Meant to be called after converting a document to a Draw doc