summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_pageobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobject.h b/core/fpdfapi/page/cpdf_pageobject.h
index d23cd971f8..b7cc5996c9 100644
--- a/core/fpdfapi/page/cpdf_pageobject.h
+++ b/core/fpdfapi/page/cpdf_pageobject.h
@@ -28,7 +28,7 @@ class CPDF_PageObject : public CPDF_GraphicStates {
FORM,
};
- CPDF_PageObject();
+ explicit CPDF_PageObject(int32_t content_stream);
~CPDF_PageObject() override;
virtual Type GetType() const = 0;
@@ -58,6 +58,7 @@ class CPDF_PageObject : public CPDF_GraphicStates {
return CFX_FloatRect(m_Left, m_Bottom, m_Right, m_Top);
}
FX_RECT GetBBox(const CFX_Matrix* pMatrix) const;
+ int32_t GetContentStream() const { return m_ContentStream; }
float m_Left;
float m_Right;
@@ -73,6 +74,7 @@ class CPDF_PageObject : public CPDF_GraphicStates {
void operator=(const CPDF_PageObject& src) = delete;
bool m_bDirty;
+ int32_t m_ContentStream;
};
#endif // CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECT_H_