summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-17 12:08:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-17 12:08:20 -0700
commit61a4544a812813922493e00a5fed4ca775498329 (patch)
treef57fc4813273ce66c7e230af7107a4292a31a62b /core/fpdfdoc/include
parent935d8d5dcbf1da2b3198675428cbf7ca0406788f (diff)
downloadpdfium-61a4544a812813922493e00a5fed4ca775498329.tar.xz
Rename CPDF_Struct{Element,Tree} to IPDF_
After all, what good is a naming convention unless you're going to blindly adhere to it? Review-Url: https://codereview.chromium.org/1981403002
Diffstat (limited to 'core/fpdfdoc/include')
-rw-r--r--core/fpdfdoc/include/fpdf_tagged.h39
1 files changed, 14 insertions, 25 deletions
diff --git a/core/fpdfdoc/include/fpdf_tagged.h b/core/fpdfdoc/include/fpdf_tagged.h
index 807f178229..43d69e8db9 100644
--- a/core/fpdfdoc/include/fpdf_tagged.h
+++ b/core/fpdfdoc/include/fpdf_tagged.h
@@ -9,66 +9,55 @@
#include "core/fxge/include/fx_dib.h"
+class CPDF_Dictionary;
class CPDF_Document;
-class CPDF_StructElement;
-class CPDF_StructTree;
-struct CPDF_StructKid;
+class IPDF_StructElement;
-class CPDF_StructTree {
+class IPDF_StructTree {
public:
- static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc);
-
- static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc,
+ static IPDF_StructTree* LoadDoc(const CPDF_Document* pDoc);
+ static IPDF_StructTree* LoadPage(const CPDF_Document* pDoc,
const CPDF_Dictionary* pPageDict);
- virtual ~CPDF_StructTree() {}
+ virtual ~IPDF_StructTree() {}
virtual int CountTopElements() const = 0;
-
- virtual CPDF_StructElement* GetTopElement(int i) const = 0;
+ virtual IPDF_StructElement* GetTopElement(int i) const = 0;
};
+
struct CPDF_StructKid {
enum { Invalid, Element, PageContent, StreamContent, Object } m_Type;
union {
struct {
- CPDF_StructElement* m_pElement;
-
+ IPDF_StructElement* m_pElement;
CPDF_Dictionary* m_pDict;
} m_Element;
struct {
uint32_t m_PageObjNum;
-
uint32_t m_ContentId;
} m_PageContent;
struct {
uint32_t m_PageObjNum;
-
uint32_t m_ContentId;
-
uint32_t m_RefObjNum;
} m_StreamContent;
struct {
uint32_t m_PageObjNum;
-
uint32_t m_RefObjNum;
} m_Object;
};
};
-class CPDF_StructElement {
- public:
- virtual ~CPDF_StructElement() {}
- virtual CPDF_StructTree* GetTree() const = 0;
+class IPDF_StructElement {
+ public:
+ virtual ~IPDF_StructElement() {}
+ virtual IPDF_StructTree* GetTree() const = 0;
virtual const CFX_ByteString& GetType() const = 0;
-
- virtual CPDF_StructElement* GetParent() const = 0;
-
+ virtual IPDF_StructElement* GetParent() const = 0;
virtual CPDF_Dictionary* GetDict() const = 0;
-
virtual int CountKids() const = 0;
-
virtual const CPDF_StructKid& GetKid(int index) const = 0;
virtual CPDF_Object* GetAttr(const CFX_ByteStringC& owner,