OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FPDF_TAGGED_H_ | 7 #ifndef _FPDF_TAGGED_H_ |
8 #define _FPDF_TAGGED_H_ | 8 #define _FPDF_TAGGED_H_ |
9 class CPDF_StructTree; | 9 class CPDF_StructTree; |
10 class CPDF_StructElement; | 10 class CPDF_StructElement; |
11 struct CPDF_StructKid; | 11 struct CPDF_StructKid; |
12 class CPDF_Document; | 12 class CPDF_Document; |
13 class CPDF_Page; | 13 class CPDF_Page; |
14 class IPDF_ReflowEngine; | 14 class IPDF_ReflowEngine; |
15 class IPDF_ReflowedPage; | 15 class IPDF_ReflowedPage; |
16 class CPDF_StructTree : public CFX_Object | 16 class CPDF_StructTree |
17 { | 17 { |
18 public: | 18 public: |
19 | 19 |
20 static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc); | 20 static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc); |
21 | 21 |
22 static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc, const CPDF_Dicti
onary* pPageDict); | 22 static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc, const CPDF_Dicti
onary* pPageDict); |
23 | 23 |
24 virtual ~CPDF_StructTree() {} | 24 virtual ~CPDF_StructTree() {} |
25 | 25 |
26 virtual int CountTopElements() const = 0; | 26 virtual int CountTopElements() const = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 FX_DWORD m_RefObjNum; | 58 FX_DWORD m_RefObjNum; |
59 } m_StreamContent; | 59 } m_StreamContent; |
60 struct { | 60 struct { |
61 | 61 |
62 FX_DWORD m_PageObjNum; | 62 FX_DWORD m_PageObjNum; |
63 | 63 |
64 FX_DWORD m_RefObjNum; | 64 FX_DWORD m_RefObjNum; |
65 } m_Object; | 65 } m_Object; |
66 }; | 66 }; |
67 }; | 67 }; |
68 class CPDF_StructElement : public CFX_Object | 68 class CPDF_StructElement |
69 { | 69 { |
70 public: | 70 public: |
71 virtual ~CPDF_StructElement() { } | 71 virtual ~CPDF_StructElement() { } |
72 | 72 |
73 virtual CPDF_StructTree* GetTree() const = 0; | 73 virtual CPDF_StructTree* GetTree() const = 0; |
74 | 74 |
75 virtual const CFX_ByteString& GetType() const = 0; | 75 virtual const CFX_ByteString& GetType() const = 0; |
76 | 76 |
77 virtual CPDF_StructElement* GetParent() const = 0; | 77 virtual CPDF_StructElement* GetParent() const = 0; |
78 | 78 |
(...skipping 12 matching lines...) Expand all Loading... |
91 virtual CFX_ByteString GetName(FX_BSTR owner, FX_BSTR name, FX_
BSTR default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; | 91 virtual CFX_ByteString GetName(FX_BSTR owner, FX_BSTR name, FX_
BSTR default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; |
92 | 92 |
93 virtual FX_ARGB GetColor(FX_BSTR owner, FX_BSTR
name, FX_ARGB default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) =
0; | 93 virtual FX_ARGB GetColor(FX_BSTR owner, FX_BSTR
name, FX_ARGB default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) =
0; |
94 | 94 |
95 virtual FX_FLOAT GetNumber(FX_BSTR owner, FX_BSTR name, F
X_FLOAT default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; | 95 virtual FX_FLOAT GetNumber(FX_BSTR owner, FX_BSTR name, F
X_FLOAT default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; |
96 | 96 |
97 virtual int GetInteger(FX_BSTR owner, FX_BST
R name, int default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; | 97 virtual int GetInteger(FX_BSTR owner, FX_BST
R name, int default_value, FX_BOOL bInheritable = FALSE, int subindex = -1) = 0; |
98 | 98 |
99 }; | 99 }; |
100 #endif | 100 #endif |
OLD | NEW |