| 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 LayoutProvider_TaggedPDF_H | 7 #ifndef LayoutProvider_TaggedPDF_H |
| 8 #define LayoutProvider_TaggedPDF_H | 8 #define LayoutProvider_TaggedPDF_H |
| 9 #include "../../include/reflow/reflowengine.h" | 9 #include "../../include/reflow/reflowengine.h" |
| 10 class CPDF_LayoutElement : public IPDF_LayoutElement, public CFX_Object | 10 class CPDF_LayoutElement : public IPDF_LayoutElement |
| 11 { | 11 { |
| 12 public: | 12 public: |
| 13 CPDF_LayoutElement(); | 13 CPDF_LayoutElement(); |
| 14 ~CPDF_LayoutElement(); | 14 ~CPDF_LayoutElement(); |
| 15 | 15 |
| 16 LayoutType GetType(); | 16 LayoutType GetType(); |
| 17 void GetRect(CFX_FloatRect& rcRect) {}; | 17 void GetRect(CFX_FloatRect& rcRect) {}; |
| 18 | 18 |
| 19 int CountAttrValues(LayoutAttr attr_type); | 19 int CountAttrValues(LayoutAttr attr_type); |
| 20 | 20 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 LayoutEnum ConvertLayoutEnum(CFX_ByteStringC Enum); | 40 LayoutEnum ConvertLayoutEnum(CFX_ByteStringC Enum); |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 FX_BOOL IsInheritable(LayoutAttr attr_type); | 43 FX_BOOL IsInheritable(LayoutAttr attr_type); |
| 44 CFX_ByteStringC GetAttrOwner(LayoutAttr attr_type); | 44 CFX_ByteStringC GetAttrOwner(LayoutAttr attr_type); |
| 45 CFX_ByteStringC GetDefaultNameValue(LayoutAttr attr_type); | 45 CFX_ByteStringC GetDefaultNameValue(LayoutAttr attr_type); |
| 46 FX_FLOAT GetDefaultFloatValue(LayoutAttr attr_type); | 46 FX_FLOAT GetDefaultFloatValue(LayoutAttr attr_type); |
| 47 FX_COLORREF GetDefaultColorValue(LayoutAttr attr_type); | 47 FX_COLORREF GetDefaultColorValue(LayoutAttr attr_type); |
| 48 CFX_PtrArray m_ObjArray; | 48 CFX_PtrArray m_ObjArray; |
| 49 }; | 49 }; |
| 50 class CPDF_LayoutProvider_TaggedPDF : public IPDF_LayoutProvider, public CFX_Obj
ect | 50 class CPDF_LayoutProvider_TaggedPDF : public IPDF_LayoutProvider |
| 51 { | 51 { |
| 52 public: | 52 public: |
| 53 CPDF_LayoutProvider_TaggedPDF(); | 53 CPDF_LayoutProvider_TaggedPDF(); |
| 54 ~CPDF_LayoutProvider_TaggedPDF(); | 54 ~CPDF_LayoutProvider_TaggedPDF(); |
| 55 void SetLayoutProviderStyle(LAYOUTPROVIDER_STYLE styl
e) {}; | 55 void SetLayoutProviderStyle(LAYOUTPROVIDER_STYLE styl
e) {}; |
| 56 | 56 |
| 57 void Init(CPDF_PageObjects* pPage) | 57 void Init(CPDF_PageObjects* pPage) |
| 58 { | 58 { |
| 59 m_pPage = pPage; | 59 m_pPage = pPage; |
| 60 m_Status = LayoutReady; | 60 m_Status = LayoutReady; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 73 void ProcessElement(CPDF_LayoutElement*pParent, CPDF_StructElement* pTaggedE
lement); | 73 void ProcessElement(CPDF_LayoutElement*pParent, CPDF_StructElement* pTaggedE
lement); |
| 74 LayoutStatus m_Status; | 74 LayoutStatus m_Status; |
| 75 CPDF_StructElement* m_pCurTaggedElement; | 75 CPDF_StructElement* m_pCurTaggedElement; |
| 76 CPDF_LayoutElement* m_pRoot; | 76 CPDF_LayoutElement* m_pRoot; |
| 77 IFX_Pause* m_pPause; | 77 IFX_Pause* m_pPause; |
| 78 CPDF_PageObjects* m_pPage; | 78 CPDF_PageObjects* m_pPage; |
| 79 CPDF_StructTree* m_pPageTree; | 79 CPDF_StructTree* m_pPageTree; |
| 80 int m_TopElementIndex; | 80 int m_TopElementIndex; |
| 81 }; | 81 }; |
| 82 #endif | 82 #endif |
| OLD | NEW |