| 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 CORE_FPDFDOC_TAGGED_INT_H_ | 7 #ifndef CORE_FPDFDOC_TAGGED_INT_H_ |
| 8 #define CORE_FPDFDOC_TAGGED_INT_H_ | 8 #define CORE_FPDFDOC_TAGGED_INT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 friend class CPDF_StructElementImpl; | 44 friend class CPDF_StructElementImpl; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class CPDF_StructElementImpl final : public IPDF_StructElement { | 47 class CPDF_StructElementImpl final : public IPDF_StructElement { |
| 48 public: | 48 public: |
| 49 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, | 49 CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, |
| 50 CPDF_StructElementImpl* pParent, | 50 CPDF_StructElementImpl* pParent, |
| 51 CPDF_Dictionary* pDict); | 51 CPDF_Dictionary* pDict); |
| 52 | 52 |
| 53 // IPDF_StructElement: | 53 // IPDF_StructElement |
| 54 IPDF_StructTree* GetTree() const override { return m_pTree; } | 54 IPDF_StructTree* GetTree() const override; |
| 55 const CFX_ByteString& GetType() const override { return m_Type; } | 55 const CFX_ByteString& GetType() const override; |
| 56 IPDF_StructElement* GetParent() const override { return m_pParent; } | 56 IPDF_StructElement* GetParent() const override; |
| 57 CPDF_Dictionary* GetDict() const override { return m_pDict; } | 57 CPDF_Dictionary* GetDict() const override; |
| 58 int CountKids() const override { return pdfium::CollectionSize<int>(m_Kids); } | 58 int CountKids() const override; |
| 59 const CPDF_StructKid& GetKid(int index) const override { | 59 const CPDF_StructKid& GetKid(int index) const override; |
| 60 return m_Kids[index]; | |
| 61 } | |
| 62 CPDF_Object* GetAttr(const CFX_ByteStringC& owner, | 60 CPDF_Object* GetAttr(const CFX_ByteStringC& owner, |
| 63 const CFX_ByteStringC& name, | 61 const CFX_ByteStringC& name, |
| 64 FX_BOOL bInheritable = FALSE, | 62 FX_BOOL bInheritable = FALSE, |
| 65 FX_FLOAT fLevel = 0.0F) override; | 63 FX_FLOAT fLevel = 0.0F) override; |
| 66 CFX_ByteString GetName(const CFX_ByteStringC& owner, | 64 CFX_ByteString GetName(const CFX_ByteStringC& owner, |
| 67 const CFX_ByteStringC& name, | 65 const CFX_ByteStringC& name, |
| 68 const CFX_ByteStringC& default_value, | 66 const CFX_ByteStringC& default_value, |
| 69 FX_BOOL bInheritable = FALSE, | 67 FX_BOOL bInheritable = FALSE, |
| 70 int subindex = -1) override; | 68 int subindex = -1) override; |
| 71 FX_ARGB GetColor(const CFX_ByteStringC& owner, | 69 FX_ARGB GetColor(const CFX_ByteStringC& owner, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 100 CPDF_StructTreeImpl* const m_pTree; | 98 CPDF_StructTreeImpl* const m_pTree; |
| 101 CPDF_StructElementImpl* const m_pParent; | 99 CPDF_StructElementImpl* const m_pParent; |
| 102 CPDF_Dictionary* const m_pDict; | 100 CPDF_Dictionary* const m_pDict; |
| 103 CFX_ByteString m_Type; | 101 CFX_ByteString m_Type; |
| 104 std::vector<CPDF_StructKid> m_Kids; | 102 std::vector<CPDF_StructKid> m_Kids; |
| 105 | 103 |
| 106 friend class CPDF_StructTreeImpl; | 104 friend class CPDF_StructTreeImpl; |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 #endif // CORE_FPDFDOC_TAGGED_INT_H_ | 107 #endif // CORE_FPDFDOC_TAGGED_INT_H_ |
| OLD | NEW |