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 <memory> | 10 #include <memory> |
(...skipping 19 matching lines...) Expand all Loading... |
30 ~CXFA_FWLTheme() override; | 30 ~CXFA_FWLTheme() override; |
31 | 31 |
32 // IFWL_ThemeProvider: | 32 // IFWL_ThemeProvider: |
33 void DrawBackground(CFWL_ThemeBackground* pParams) override; | 33 void DrawBackground(CFWL_ThemeBackground* pParams) override; |
34 void DrawText(CFWL_ThemeText* pParams) override; | 34 void DrawText(CFWL_ThemeText* pParams) override; |
35 void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; | 35 void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; |
36 float GetCXBorderSize() const override; | 36 float GetCXBorderSize() const override; |
37 float GetCYBorderSize() const override; | 37 float GetCYBorderSize() const override; |
38 CFX_RectF GetUIMargin(CFWL_ThemePart* pThemePart) const override; | 38 CFX_RectF GetUIMargin(CFWL_ThemePart* pThemePart) const override; |
39 float GetFontSize(CFWL_ThemePart* pThemePart) const override; | 39 float GetFontSize(CFWL_ThemePart* pThemePart) const override; |
40 CFGAS_GEFont* GetFont(CFWL_ThemePart* pThemePart) const override; | 40 CFX_RetainPtr<CFGAS_GEFont> GetFont( |
| 41 CFWL_ThemePart* pThemePart) const override; |
41 float GetLineHeight(CFWL_ThemePart* pThemePart) const override; | 42 float GetLineHeight(CFWL_ThemePart* pThemePart) const override; |
42 float GetScrollBarWidth() const override; | 43 float GetScrollBarWidth() const override; |
43 FX_COLORREF GetTextColor(CFWL_ThemePart* pThemePart) const override; | 44 FX_COLORREF GetTextColor(CFWL_ThemePart* pThemePart) const override; |
44 CFX_SizeF GetSpaceAboveBelow(CFWL_ThemePart* pThemePart) const override; | 45 CFX_SizeF GetSpaceAboveBelow(CFWL_ThemePart* pThemePart) const override; |
45 | 46 |
46 private: | 47 private: |
47 CFWL_WidgetTP* GetTheme(CFWL_Widget* pWidget) const; | 48 CFWL_WidgetTP* GetTheme(CFWL_Widget* pWidget) const; |
48 | 49 |
49 std::unique_ptr<CFWL_CheckBoxTP> m_pCheckBoxTP; | 50 std::unique_ptr<CFWL_CheckBoxTP> m_pCheckBoxTP; |
50 std::unique_ptr<CFWL_ListBoxTP> m_pListBoxTP; | 51 std::unique_ptr<CFWL_ListBoxTP> m_pListBoxTP; |
51 std::unique_ptr<CFWL_PictureBoxTP> m_pPictureBoxTP; | 52 std::unique_ptr<CFWL_PictureBoxTP> m_pPictureBoxTP; |
52 std::unique_ptr<CFWL_ScrollBarTP> m_pSrollBarTP; | 53 std::unique_ptr<CFWL_ScrollBarTP> m_pSrollBarTP; |
53 std::unique_ptr<CFWL_EditTP> m_pEditTP; | 54 std::unique_ptr<CFWL_EditTP> m_pEditTP; |
54 std::unique_ptr<CFWL_ComboBoxTP> m_pComboBoxTP; | 55 std::unique_ptr<CFWL_ComboBoxTP> m_pComboBoxTP; |
55 std::unique_ptr<CFWL_MonthCalendarTP> m_pMonthCalendarTP; | 56 std::unique_ptr<CFWL_MonthCalendarTP> m_pMonthCalendarTP; |
56 std::unique_ptr<CFWL_DateTimePickerTP> m_pDateTimePickerTP; | 57 std::unique_ptr<CFWL_DateTimePickerTP> m_pDateTimePickerTP; |
57 std::unique_ptr<CFWL_PushButtonTP> m_pPushButtonTP; | 58 std::unique_ptr<CFWL_PushButtonTP> m_pPushButtonTP; |
58 std::unique_ptr<CFWL_CaretTP> m_pCaretTP; | 59 std::unique_ptr<CFWL_CaretTP> m_pCaretTP; |
59 std::unique_ptr<CFWL_BarcodeTP> m_pBarcodeTP; | 60 std::unique_ptr<CFWL_BarcodeTP> m_pBarcodeTP; |
60 std::unique_ptr<CFDE_TextOut> m_pTextOut; | 61 std::unique_ptr<CFDE_TextOut> m_pTextOut; |
61 CFGAS_GEFont* m_pCalendarFont; | 62 CFX_RetainPtr<CFGAS_GEFont> m_pCalendarFont; |
62 CFX_WideString m_wsResource; | 63 CFX_WideString m_wsResource; |
63 CXFA_FFApp* const m_pApp; | 64 CXFA_FFApp* const m_pApp; |
64 CFX_RectF m_Rect; | 65 CFX_RectF m_Rect; |
65 }; | 66 }; |
66 | 67 |
67 CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget); | 68 CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget); |
68 | 69 |
69 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ | 70 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ |
OLD | NEW |