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_CSS_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSS_H_ |
8 #define XFA_FDE_CSS_FDE_CSS_H_ | 8 #define XFA_FDE_CSS_FDE_CSS_H_ |
9 | 9 |
10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/include/fx_dib.h" |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 virtual int32_t CountValues() const = 0; | 711 virtual int32_t CountValues() const = 0; |
712 virtual IFDE_CSSValue* GetValue(int32_t index) const = 0; | 712 virtual IFDE_CSSValue* GetValue(int32_t index) const = 0; |
713 }; | 713 }; |
714 | 714 |
715 class IFDE_CSSRule { | 715 class IFDE_CSSRule { |
716 public: | 716 public: |
717 virtual ~IFDE_CSSRule() {} | 717 virtual ~IFDE_CSSRule() {} |
718 virtual FDE_CSSRULETYPE GetType() const = 0; | 718 virtual FDE_CSSRULETYPE GetType() const = 0; |
719 }; | 719 }; |
720 | 720 |
721 typedef CFX_MassArrayTemplate<IFDE_CSSRule*> CFDE_CSSRuleArray; | |
722 | |
723 class IFDE_CSSStyleRule : public IFDE_CSSRule { | 721 class IFDE_CSSStyleRule : public IFDE_CSSRule { |
724 public: | 722 public: |
725 // IFDE_CSSValue | 723 // IFDE_CSSValue |
726 FDE_CSSRULETYPE GetType() const override; | 724 FDE_CSSRULETYPE GetType() const override; |
727 | 725 |
728 virtual int32_t CountSelectorLists() const = 0; | 726 virtual int32_t CountSelectorLists() const = 0; |
729 virtual CFDE_CSSSelector* GetSelectorList(int32_t index) const = 0; | 727 virtual CFDE_CSSSelector* GetSelectorList(int32_t index) const = 0; |
730 virtual CFDE_CSSDeclaration* GetDeclaration() = 0; | 728 virtual CFDE_CSSDeclaration* GetDeclaration() = 0; |
731 }; | 729 }; |
732 | 730 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 virtual void Reset() = 0; | 895 virtual void Reset() = 0; |
898 virtual IFDE_CSSFontStyle* GetFontStyles() = 0; | 896 virtual IFDE_CSSFontStyle* GetFontStyles() = 0; |
899 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0; | 897 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0; |
900 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0; | 898 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0; |
901 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0; | 899 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0; |
902 virtual FX_BOOL GetCustomStyle(const CFX_WideStringC& wsName, | 900 virtual FX_BOOL GetCustomStyle(const CFX_WideStringC& wsName, |
903 CFX_WideString& wsValue) const = 0; | 901 CFX_WideString& wsValue) const = 0; |
904 }; | 902 }; |
905 | 903 |
906 #endif // XFA_FDE_CSS_FDE_CSS_H_ | 904 #endif // XFA_FDE_CSS_FDE_CSS_H_ |
OLD | NEW |