summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-07 22:55:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-07 22:55:46 +0000
commit0cc77c9ef74f527a6887d9a2e8ebcb6412615f30 (patch)
tree5dd3b8bf31fdcb730cd620e2e8980bf4b58aa9f1 /core/fpdfapi/page
parentc732e9aa64a82c06c0ad369088d0481dd2636b86 (diff)
downloadpdfium-0cc77c9ef74f527a6887d9a2e8ebcb6412615f30.tar.xz
Add some getters for CPDF_PageObjectHolder.
Change-Id: I3fe99ecb17d37f893ce5d0d59219c82ee31fe7ea Reviewed-on: https://pdfium-review.googlesource.com/32110 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r--core/fpdfapi/page/cpdf_pageobjectholder.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.h b/core/fpdfapi/page/cpdf_pageobjectholder.h
index a65ccc8129..febc53e410 100644
--- a/core/fpdfapi/page/cpdf_pageobjectholder.h
+++ b/core/fpdfapi/page/cpdf_pageobjectholder.h
@@ -17,11 +17,11 @@
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/unowned_ptr.h"
-class PauseIndicatorIface;
+class CPDF_ContentParser;
class CPDF_Dictionary;
-class CPDF_Stream;
class CPDF_Document;
-class CPDF_ContentParser;
+class CPDF_Stream;
+class PauseIndicatorIface;
#define PDFTRANS_GROUP 0x0100
#define PDFTRANS_ISOLATED 0x0200
@@ -52,6 +52,14 @@ class CPDF_PageObjectHolder {
void ContinueParse(PauseIndicatorIface* pPause);
bool IsParsed() const { return m_ParseState == CONTENT_PARSED; }
+ const CPDF_Document* GetDocument() const { return m_pDocument.Get(); }
+ CPDF_Document* GetDocument() { return m_pDocument.Get(); }
+
+ // TODO(thestig): Can this return nullptr? If not, audit callers and simplify
+ // the ones that assume it can.
+ const CPDF_Dictionary* GetFormDict() const { return m_pFormDict.Get(); }
+ CPDF_Dictionary* GetFormDict() { return m_pFormDict.Get(); }
+
const CPDF_PageObjectList* GetPageObjectList() const {
return &m_PageObjectList;
}
@@ -63,7 +71,9 @@ class CPDF_PageObjectHolder {
bool ErasePageObjectAtIndex(size_t index);
const CFX_Matrix& GetLastCTM() const { return m_LastCTM; }
+ const CFX_FloatRect& GetBBox() const { return m_BBox; }
+ int GetTransparency() const { return m_iTransparency; }
bool BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; }
void SetBackgroundAlphaNeeded(bool needed) {
m_bBackgroundAlphaNeeded = needed;