| 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* GetCapacity(CFWL_ThemePart* pThemePart, | 35 void* GetCapacity(CFWL_ThemePart* pThemePart, |
| 36 CFWL_WidgetCapacity dwCapacity) override; | 36 CFWL_WidgetCapacity dwCapacity) override; |
| 37 void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; | 37 void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); | 40 CFWL_WidgetTP* GetTheme(CFWL_Widget* pWidget); |
| 41 std::unique_ptr<CFWL_CheckBoxTP> m_pCheckBoxTP; | 41 std::unique_ptr<CFWL_CheckBoxTP> m_pCheckBoxTP; |
| 42 std::unique_ptr<CFWL_ListBoxTP> m_pListBoxTP; | 42 std::unique_ptr<CFWL_ListBoxTP> m_pListBoxTP; |
| 43 std::unique_ptr<CFWL_PictureBoxTP> m_pPictureBoxTP; | 43 std::unique_ptr<CFWL_PictureBoxTP> m_pPictureBoxTP; |
| 44 std::unique_ptr<CFWL_ScrollBarTP> m_pSrollBarTP; | 44 std::unique_ptr<CFWL_ScrollBarTP> m_pSrollBarTP; |
| 45 std::unique_ptr<CFWL_EditTP> m_pEditTP; | 45 std::unique_ptr<CFWL_EditTP> m_pEditTP; |
| 46 std::unique_ptr<CFWL_ComboBoxTP> m_pComboBoxTP; | 46 std::unique_ptr<CFWL_ComboBoxTP> m_pComboBoxTP; |
| 47 std::unique_ptr<CFWL_MonthCalendarTP> m_pMonthCalendarTP; | 47 std::unique_ptr<CFWL_MonthCalendarTP> m_pMonthCalendarTP; |
| 48 std::unique_ptr<CFWL_DateTimePickerTP> m_pDateTimePickerTP; | 48 std::unique_ptr<CFWL_DateTimePickerTP> m_pDateTimePickerTP; |
| 49 std::unique_ptr<CFWL_PushButtonTP> m_pPushButtonTP; | 49 std::unique_ptr<CFWL_PushButtonTP> m_pPushButtonTP; |
| 50 std::unique_ptr<CFWL_CaretTP> m_pCaretTP; | 50 std::unique_ptr<CFWL_CaretTP> m_pCaretTP; |
| 51 std::unique_ptr<CFWL_BarcodeTP> m_pBarcodeTP; | 51 std::unique_ptr<CFWL_BarcodeTP> m_pBarcodeTP; |
| 52 std::unique_ptr<CFDE_TextOut> m_pTextOut; | 52 std::unique_ptr<CFDE_TextOut> m_pTextOut; |
| 53 FX_FLOAT m_fCapacity; | 53 FX_FLOAT m_fCapacity; |
| 54 uint32_t m_dwCapacity; | 54 uint32_t m_dwCapacity; |
| 55 CFGAS_GEFont* m_pCalendarFont; | 55 CFGAS_GEFont* m_pCalendarFont; |
| 56 CFX_WideString m_wsResource; | 56 CFX_WideString m_wsResource; |
| 57 CXFA_FFApp* const m_pApp; | 57 CXFA_FFApp* const m_pApp; |
| 58 CFX_RectF m_Rect; | 58 CFX_RectF m_Rect; |
| 59 CFX_SizeF m_SizeAboveBelow; | 59 CFX_SizeF m_SizeAboveBelow; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget); | 62 CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget); |
| 63 | 63 |
| 64 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ | 64 #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ |
| OLD | NEW |