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_INT_H_ | 7 #ifndef _FPDF_TAGGED_INT_H_ |
8 #define _FPDF_TAGGED_INT_H_ | 8 #define _FPDF_TAGGED_INT_H_ |
9 class CPDF_StructTreeImpl; | 9 class CPDF_StructTreeImpl; |
10 class CPDF_StructElementImpl; | 10 class CPDF_StructElementImpl; |
(...skipping 14 matching lines...) Expand all Loading... |
25 void LoadPageTree(const CPDF_Dictionary* pPageDict); | 25 void LoadPageTree(const CPDF_Dictionary* pPageDict); |
26 CPDF_StructElementImpl* AddPageNode(CPDF_Dictionary* pElement, CFX_MapPtrToP
tr& map, int nLevel = 0); | 26 CPDF_StructElementImpl* AddPageNode(CPDF_Dictionary* pElement, CFX_MapPtrToP
tr& map, int nLevel = 0); |
27 FX_BOOL AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructEleme
ntImpl* pElement); | 27 FX_BOOL AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructEleme
ntImpl* pElement); |
28 protected: | 28 protected: |
29 const CPDF_Dictionary* m_pTreeRoot; | 29 const CPDF_Dictionary* m_pTreeRoot; |
30 const CPDF_Dictionary* m_pRoleMap; | 30 const CPDF_Dictionary* m_pRoleMap; |
31 const CPDF_Dictionary* m_pPage; | 31 const CPDF_Dictionary* m_pPage; |
32 CFX_ArrayTemplate<CPDF_StructElementImpl*> m_Kids; | 32 CFX_ArrayTemplate<CPDF_StructElementImpl*> m_Kids; |
33 friend class CPDF_StructElementImpl; | 33 friend class CPDF_StructElementImpl; |
34 }; | 34 }; |
35 class CPDF_StructElementImpl : public CPDF_StructElement | 35 class CPDF_StructElementImpl FX_FINAL : public CPDF_StructElement |
36 { | 36 { |
37 public: | 37 public: |
38 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, CPDF_StructElementImpl* p
Parent, CPDF_Dictionary* pDict); | 38 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, CPDF_StructElementImpl* p
Parent, CPDF_Dictionary* pDict); |
39 ~CPDF_StructElementImpl(); | 39 ~CPDF_StructElementImpl(); |
40 CPDF_StructTree* GetTree() const | 40 CPDF_StructTree* GetTree() const |
41 { | 41 { |
42 return m_pTree; | 42 return m_pTree; |
43 } | 43 } |
44 const CFX_ByteString& GetType() const | 44 const CFX_ByteString& GetType() const |
45 { | 45 { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 CPDF_StructTreeImpl* m_pTree; | 82 CPDF_StructTreeImpl* m_pTree; |
83 CFX_ByteString m_Type; | 83 CFX_ByteString m_Type; |
84 CPDF_StructElementImpl* m_pParent; | 84 CPDF_StructElementImpl* m_pParent; |
85 CPDF_Dictionary* m_pDict; | 85 CPDF_Dictionary* m_pDict; |
86 CFX_ArrayTemplate<CPDF_StructKid> m_Kids; | 86 CFX_ArrayTemplate<CPDF_StructKid> m_Kids; |
87 | 87 |
88 int m_RefCount; | 88 int m_RefCount; |
89 friend class CPDF_StructTreeImpl; | 89 friend class CPDF_StructTreeImpl; |
90 }; | 90 }; |
91 #endif | 91 #endif |
OLD | NEW |