| 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_FXFA_APP_XFA_FWLTHEME_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FWLTHEME_H_ |
| 8 #define XFA_FXFA_APP_XFA_FWLTHEME_H_ | 8 #define XFA_FXFA_APP_XFA_FWLTHEME_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_target.h" | 10 #include "xfa/fwl/core/ifwl_target.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 CXFA_FWLTheme(CXFA_FFApp* pApp); | 28 CXFA_FWLTheme(CXFA_FFApp* pApp); |
| 29 virtual ~CXFA_FWLTheme(); | 29 virtual ~CXFA_FWLTheme(); |
| 30 virtual FWL_ERR Release() { | 30 virtual FWL_ERR Release() { |
| 31 delete this; | 31 delete this; |
| 32 return FWL_ERR_Succeeded; | 32 return FWL_ERR_Succeeded; |
| 33 } | 33 } |
| 34 virtual IFWL_Target* Retain() { return NULL; } | 34 virtual IFWL_Target* Retain() { return NULL; } |
| 35 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { | 35 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const { |
| 36 return FWL_ERR_Succeeded; | 36 return FWL_ERR_Succeeded; |
| 37 } | 37 } |
| 38 virtual FX_DWORD GetHashCode() const { return 0; } | 38 virtual uint32_t GetHashCode() const { return 0; } |
| 39 virtual FWL_ERR Initialize(); | 39 virtual FWL_ERR Initialize(); |
| 40 virtual FWL_ERR Finalize(); | 40 virtual FWL_ERR Finalize(); |
| 41 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); | 41 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); |
| 42 virtual FX_DWORD GetThemeID(IFWL_Widget* pWidget); | 42 virtual uint32_t GetThemeID(IFWL_Widget* pWidget); |
| 43 virtual FX_DWORD SetThemeID(IFWL_Widget* pWidget, | 43 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, |
| 44 FX_DWORD dwThemeID, | 44 uint32_t dwThemeID, |
| 45 FX_BOOL bChildren = TRUE); | 45 FX_BOOL bChildren = TRUE); |
| 46 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); | 46 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); |
| 47 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); | 47 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); |
| 48 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, FX_DWORD dwCapacity); | 48 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, uint32_t dwCapacity); |
| 49 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget); | 49 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget); |
| 50 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart); | 50 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart); |
| 51 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, | 51 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, |
| 52 FX_FLOAT fx, | 52 FX_FLOAT fx, |
| 53 FX_FLOAT fy); | 53 FX_FLOAT fy); |
| 54 | 54 |
| 55 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect); | 55 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect); |
| 56 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) { | 56 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) { |
| 57 return FWL_ERR_Succeeded; | 57 return FWL_ERR_Succeeded; |
| 58 } | 58 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 72 CFWL_ScrollBarTP* m_pSrollBarTP; | 72 CFWL_ScrollBarTP* m_pSrollBarTP; |
| 73 CFWL_EditTP* m_pEditTP; | 73 CFWL_EditTP* m_pEditTP; |
| 74 CFWL_ComboBoxTP* m_pComboBoxTP; | 74 CFWL_ComboBoxTP* m_pComboBoxTP; |
| 75 CFWL_MonthCalendarTP* m_pMonthCalendarTP; | 75 CFWL_MonthCalendarTP* m_pMonthCalendarTP; |
| 76 CFWL_DateTimePickerTP* m_pDateTimePickerTP; | 76 CFWL_DateTimePickerTP* m_pDateTimePickerTP; |
| 77 CFWL_PushButtonTP* m_pPushButtonTP; | 77 CFWL_PushButtonTP* m_pPushButtonTP; |
| 78 CFWL_CaretTP* m_pCaretTP; | 78 CFWL_CaretTP* m_pCaretTP; |
| 79 CFWL_BarcodeTP* m_pBarcodeTP; | 79 CFWL_BarcodeTP* m_pBarcodeTP; |
| 80 IFDE_TextOut* m_pTextOut; | 80 IFDE_TextOut* m_pTextOut; |
| 81 FX_FLOAT m_fCapacity; | 81 FX_FLOAT m_fCapacity; |
| 82 FX_DWORD m_dwCapacity; | 82 uint32_t m_dwCapacity; |
| 83 IFX_Font* m_pCalendarFont; | 83 IFX_Font* m_pCalendarFont; |
| 84 CFX_WideString m_wsResource; | 84 CFX_WideString m_wsResource; |
| 85 CXFA_FFApp* m_pApp; | 85 CXFA_FFApp* m_pApp; |
| 86 CFX_RectF m_Rect; | 86 CFX_RectF m_Rect; |
| 87 CFX_SizeF m_SizeAboveBelow; | 87 CFX_SizeF m_SizeAboveBelow; |
| 88 }; | 88 }; |
| 89 class CXFA_FWLCheckBoxTP : public CFWL_CheckBoxTP { | 89 class CXFA_FWLCheckBoxTP : public CFWL_CheckBoxTP { |
| 90 public: | 90 public: |
| 91 CXFA_FWLCheckBoxTP(); | 91 CXFA_FWLCheckBoxTP(); |
| 92 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); | 92 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); |
| 93 | 93 |
| 94 protected: | 94 protected: |
| 95 void DrawCheckSign(IFWL_Widget* pWidget, | 95 void DrawCheckSign(IFWL_Widget* pWidget, |
| 96 CFX_Graphics* pGraphics, | 96 CFX_Graphics* pGraphics, |
| 97 const CFX_RectF* pRtBox, | 97 const CFX_RectF* pRtBox, |
| 98 int32_t iState, | 98 int32_t iState, |
| 99 CFX_Matrix* pMatrix); | 99 CFX_Matrix* pMatrix); |
| 100 }; | 100 }; |
| 101 class CXFA_FWLEditTP : public CFWL_EditTP { | 101 class CXFA_FWLEditTP : public CFWL_EditTP { |
| 102 public: | 102 public: |
| 103 CXFA_FWLEditTP(); | 103 CXFA_FWLEditTP(); |
| 104 virtual ~CXFA_FWLEditTP(); | 104 virtual ~CXFA_FWLEditTP(); |
| 105 | 105 |
| 106 public: | 106 public: |
| 107 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); | 107 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ | 110 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ |
| OLD | NEW |