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 XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ |
8 #define XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ | 8 #define XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 CFX_MapPtrToPtr m_TagRules; | 86 CFX_MapPtrToPtr m_TagRules; |
87 CFX_MapPtrToPtr m_ClassRules; | 87 CFX_MapPtrToPtr m_ClassRules; |
88 FDE_CSSRuleData* m_pUniversalRules; | 88 FDE_CSSRuleData* m_pUniversalRules; |
89 FDE_CSSRuleData* m_pPersudoRules; | 89 FDE_CSSRuleData* m_pPersudoRules; |
90 int32_t m_iSelectors; | 90 int32_t m_iSelectors; |
91 }; | 91 }; |
92 | 92 |
93 class CFDE_CSSStyleSelector : public CFX_Target { | 93 class CFDE_CSSStyleSelector : public CFX_Target { |
94 public: | 94 public: |
95 CFDE_CSSStyleSelector(); | 95 CFDE_CSSStyleSelector(); |
96 ~CFDE_CSSStyleSelector(); | 96 ~CFDE_CSSStyleSelector() override; |
97 | |
98 void Release() { delete this; } | |
99 | 97 |
100 void SetFontMgr(IFX_FontMgr* pFontMgr); | 98 void SetFontMgr(IFX_FontMgr* pFontMgr); |
101 void SetDefFontSize(FX_FLOAT fFontSize); | 99 void SetDefFontSize(FX_FLOAT fFontSize); |
102 | 100 |
103 FX_BOOL SetStyleSheet(FDE_CSSSTYLESHEETGROUP eType, | 101 FX_BOOL SetStyleSheet(FDE_CSSSTYLESHEETGROUP eType, |
104 IFDE_CSSStyleSheet* pSheet); | 102 IFDE_CSSStyleSheet* pSheet); |
105 FX_BOOL SetStyleSheets(FDE_CSSSTYLESHEETGROUP eType, | 103 FX_BOOL SetStyleSheets(FDE_CSSSTYLESHEETGROUP eType, |
106 const CFDE_CSSStyleSheetArray* pArray); | 104 const CFDE_CSSStyleSheetArray* pArray); |
107 void SetStylePriority(FDE_CSSSTYLESHEETGROUP eType, | 105 void SetStylePriority(FDE_CSSSTYLESHEETGROUP eType, |
108 FDE_CSSSTYLESHEETPRIORITY ePriority); | 106 FDE_CSSSTYLESHEETPRIORITY ePriority); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 } | 578 } |
581 | 579 |
582 uint32_t m_dwRefCount; | 580 uint32_t m_dwRefCount; |
583 IFX_MemoryAllocator* m_pAllocator; | 581 IFX_MemoryAllocator* m_pAllocator; |
584 CFDE_CSSInheritedData m_InheritedData; | 582 CFDE_CSSInheritedData m_InheritedData; |
585 CFDE_CSSNonInheritedData m_NonInheritedData; | 583 CFDE_CSSNonInheritedData m_NonInheritedData; |
586 CFX_WideStringArray m_CustomProperties; | 584 CFX_WideStringArray m_CustomProperties; |
587 }; | 585 }; |
588 | 586 |
589 #endif // XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ | 587 #endif // XFA_FDE_CSS_FDE_CSSSTYLESELECTOR_H_ |
OLD | NEW |