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_INCLUDE_FWL_THEME_WIDGETTP_H_ | 7 #ifndef XFA_INCLUDE_FWL_THEME_WIDGETTP_H_ |
8 #define XFA_INCLUDE_FWL_THEME_WIDGETTP_H_ | 8 #define XFA_INCLUDE_FWL_THEME_WIDGETTP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "core/include/fxcrt/fx_coordinates.h" |
| 14 #include "core/include/fxcrt/fx_system.h" |
| 15 #include "xfa/include/fwl/core/fwl_error.h" |
| 16 #include "xfa/include/fwl/core/fwl_theme.h" |
| 17 #include "xfa/include/fwl/core/fwl_widget.h" |
| 18 #include "xfa/include/fwl/theme/utils.h" |
| 19 |
13 class IFWL_ThemeProvider; | 20 class IFWL_ThemeProvider; |
14 class IFWL_Widget; | 21 class IFWL_Widget; |
15 class IFDE_TextOut; | 22 class IFDE_TextOut; |
16 class IFX_Font; | 23 class IFX_Font; |
17 class IFX_FontMgr; | 24 class IFX_FontMgr; |
| 25 class CFWL_ArrowData; |
| 26 |
18 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 27 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
19 class IFX_FontSourceEnum; | 28 class IFX_FontSourceEnum; |
20 #endif | 29 #endif |
21 class CFWL_WidgetTP; | |
22 class CFWL_ArrowData; | |
23 | 30 |
24 class CFWL_WidgetTP { | 31 class CFWL_WidgetTP { |
25 public: | 32 public: |
26 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); | 33 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); |
27 virtual FX_DWORD GetThemeID(IFWL_Widget* pWidget); | 34 virtual FX_DWORD GetThemeID(IFWL_Widget* pWidget); |
28 virtual FX_DWORD SetThemeID(IFWL_Widget* pWidget, | 35 virtual FX_DWORD SetThemeID(IFWL_Widget* pWidget, |
29 FX_DWORD dwThemeID, | 36 FX_DWORD dwThemeID, |
30 FX_BOOL bChildren = TRUE); | 37 FX_BOOL bChildren = TRUE); |
31 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); | 38 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); |
32 virtual FWL_ERR SetThemeMatrix(IFWL_Widget* pWidget, | 39 virtual FWL_ERR SetThemeMatrix(IFWL_Widget* pWidget, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 210 |
204 protected: | 211 protected: |
205 CFWL_FontManager(); | 212 CFWL_FontManager(); |
206 virtual ~CFWL_FontManager(); | 213 virtual ~CFWL_FontManager(); |
207 | 214 |
208 static CFWL_FontManager* s_FontManager; | 215 static CFWL_FontManager* s_FontManager; |
209 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 216 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
210 }; | 217 }; |
211 | 218 |
212 #endif // XFA_INCLUDE_FWL_THEME_WIDGETTP_H_ | 219 #endif // XFA_INCLUDE_FWL_THEME_WIDGETTP_H_ |
OLD | NEW |