| 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; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 : public CFX_Object |
| 69 { | 69 { |
| 70 public: | 70 public: |
| 71 virtual ~CPDF_StructElement() { } |
| 71 | 72 |
| 72 virtual CPDF_StructTree* GetTree() const = 0; | 73 virtual CPDF_StructTree* GetTree() const = 0; |
| 73 | 74 |
| 74 virtual const CFX_ByteString& GetType() const = 0; | 75 virtual const CFX_ByteString& GetType() const = 0; |
| 75 | 76 |
| 76 virtual CPDF_StructElement* GetParent() const = 0; | 77 virtual CPDF_StructElement* GetParent() const = 0; |
| 77 | 78 |
| 78 virtual CPDF_Dictionary * GetDict() const = 0; | 79 virtual CPDF_Dictionary * GetDict() const = 0; |
| 79 | 80 |
| 80 virtual int CountKids() const = 0; | 81 virtual int CountKids() const = 0; |
| 81 | 82 |
| 82 virtual const CPDF_StructKid& GetKid(int index) const = 0; | 83 virtual const CPDF_StructKid& GetKid(int index) const = 0; |
| 83 | 84 |
| 84 virtual CFX_PtrArray* GetObjectArray() = 0; | 85 virtual CFX_PtrArray* GetObjectArray() = 0; |
| 85 | 86 |
| 86 virtual CPDF_Object* GetAttr(FX_BSTR owner, FX_BSTR name, FX_
BOOL bInheritable = FALSE, FX_FLOAT fLevel = 0.0F) = 0; | 87 virtual CPDF_Object* GetAttr(FX_BSTR owner, FX_BSTR name, FX_
BOOL bInheritable = FALSE, FX_FLOAT fLevel = 0.0F) = 0; |
| 87 | 88 |
| 88 | 89 |
| 89 | 90 |
| 90 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; |
| 91 | 92 |
| 92 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; |
| 93 | 94 |
| 94 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; |
| 95 | 96 |
| 96 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; |
| 97 | 98 |
| 98 }; | 99 }; |
| 99 #endif | 100 #endif |
| OLD | NEW |