summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-01 12:04:30 +0100
committerAndras Timar <andras.timar@collabora.com>2018-08-08 13:07:20 +0200
commit6c6a576d88c287abc1c678fdc30926ac8571237b (patch)
tree3edf689308e6b4dc415492ac02ef441a33469585 /include
parent0ad2f3c452159df6a4d106a571534c4db69a6506 (diff)
forcepoint#65 pdf page visiting revisits itself
Change-Id: I6d9eb75f0850a94814fb4d69ea1442b826674496 Reviewed-on: https://gerrit.libreoffice.org/58418 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit e6d5ef741c75895ed97801112823b8332557d79a) (cherry picked from commit d63463b0001cc6a439840d0cee36b6678aea467e)
Diffstat (limited to 'include')
-rw-r--r--include/vcl/filter/pdfdocument.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx
index 5011504f13df..48240b7ecb98 100644
--- a/include/vcl/filter/pdfdocument.hxx
+++ b/include/vcl/filter/pdfdocument.hxx
@@ -49,6 +49,7 @@ class VCL_DLLPUBLIC PDFObjectElement : public PDFElement
PDFDocument& m_rDoc;
double m_fObjectValue;
double m_fGenerationValue;
+ bool m_bVisiting;
std::map<OString, PDFElement*> m_aDictionary;
/// If set, the object contains this number element (outside any dictionary/array).
PDFNumberElement* m_pNumberElement;
@@ -108,6 +109,9 @@ public:
SvMemoryStream* GetStreamBuffer() const;
void SetStreamBuffer(std::unique_ptr<SvMemoryStream>& pStreamBuffer);
PDFDocument& GetDocument();
+
+ /// Visits the page tree recursively, looking for page objects.
+ void visitPages(std::vector<PDFObjectElement*>& rRet);
};
/// Array object: a list.