summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-19 09:51:58 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-19 10:48:46 +0200
commit3bb145bd4665a871491b08f75057223bab798d45 (patch)
treef7e6e80155a45981c9de38927a9b892cad1fca83 /vcl/inc
parent17f47b3972301273716466656e775f3f09d681d8 (diff)
sd signature line: extract page resource / content copy code
So the "sign existing pdf" code can reuse it. Change-Id: I63a811f0c6f2bc2eeb29507aff9bc35e92a081cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96617 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/pdf/objectcopier.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/inc/pdf/objectcopier.hxx b/vcl/inc/pdf/objectcopier.hxx
index 5372019a6fe9..364fffbf1548 100644
--- a/vcl/inc/pdf/objectcopier.hxx
+++ b/vcl/inc/pdf/objectcopier.hxx
@@ -10,7 +10,9 @@
#pragma once
#include <map>
+#include <vector>
+#include <rtl/strbuf.hxx>
#include <rtl/string.hxx>
#include <sal/types.h>
#include <vcl/dllapi.h>
@@ -42,6 +44,13 @@ public:
/// object ID in our document.
sal_Int32 copyExternalResource(SvMemoryStream& rDocBuffer, filter::PDFObjectElement& rObject,
std::map<sal_Int32, sal_Int32>& rCopiedResources);
+
+ /// Copies resources of pPage into rLine.
+ void copyPageResources(filter::PDFObjectElement* pPage, OStringBuffer& rLine);
+
+ /// Copies page one or more page streams from rContentStreams into rStream.
+ static sal_Int32 copyPageStreams(std::vector<filter::PDFObjectElement*>& rContentStreams,
+ SvMemoryStream& rStream, bool& rCompressed);
};
}