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/fx_dib.h" | 10 #include "core/fxge/fx_dib.h" |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 FDE_CSSRULETYPE GetType() const override; | 744 FDE_CSSRULETYPE GetType() const override; |
745 | 745 |
746 virtual CFDE_CSSDeclaration* GetDeclaration() = 0; | 746 virtual CFDE_CSSDeclaration* GetDeclaration() = 0; |
747 }; | 747 }; |
748 | 748 |
749 class IFDE_CSSStyleSheet : public IFX_Retainable { | 749 class IFDE_CSSStyleSheet : public IFX_Retainable { |
750 public: | 750 public: |
751 static IFDE_CSSStyleSheet* LoadHTMLStandardStyleSheet(); | 751 static IFDE_CSSStyleSheet* LoadHTMLStandardStyleSheet(); |
752 static IFDE_CSSStyleSheet* LoadFromStream( | 752 static IFDE_CSSStyleSheet* LoadFromStream( |
753 const CFX_WideString& szUrl, | 753 const CFX_WideString& szUrl, |
754 IFGAS_Stream* pStream, | 754 const CFX_RetainPtr<IFGAS_Stream>& pStream, |
755 uint16_t wCodePage, | 755 uint16_t wCodePage, |
756 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL); | 756 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL); |
757 static IFDE_CSSStyleSheet* LoadFromBuffer( | 757 static IFDE_CSSStyleSheet* LoadFromBuffer( |
758 const CFX_WideString& szUrl, | 758 const CFX_WideString& szUrl, |
759 const FX_WCHAR* pBuffer, | 759 const FX_WCHAR* pBuffer, |
760 int32_t iBufSize, | 760 int32_t iBufSize, |
761 uint16_t wCodePage, | 761 uint16_t wCodePage, |
762 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL); | 762 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL); |
763 virtual bool GetUrl(CFX_WideString& szUrl) = 0; | 763 virtual bool GetUrl(CFX_WideString& szUrl) = 0; |
764 virtual uint32_t GetMediaList() const = 0; | 764 virtual uint32_t GetMediaList() const = 0; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 virtual void Reset() = 0; | 895 virtual void Reset() = 0; |
896 virtual IFDE_CSSFontStyle* GetFontStyles() = 0; | 896 virtual IFDE_CSSFontStyle* GetFontStyles() = 0; |
897 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0; | 897 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0; |
898 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0; | 898 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0; |
899 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0; | 899 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0; |
900 virtual bool GetCustomStyle(const CFX_WideStringC& wsName, | 900 virtual bool GetCustomStyle(const CFX_WideStringC& wsName, |
901 CFX_WideString& wsValue) const = 0; | 901 CFX_WideString& wsValue) const = 0; |
902 }; | 902 }; |
903 | 903 |
904 #endif // XFA_FDE_CSS_FDE_CSS_H_ | 904 #endif // XFA_FDE_CSS_FDE_CSS_H_ |
OLD | NEW |