OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FWL_CORE_CFWL_WIDGETIMPPROPERTIES_H_ | 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ |
8 #define XFA_FWL_CORE_CFWL_WIDGETIMPPROPERTIES_H_ | 8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
| 11 #include "core/fxcrt/include/fx_string.h" |
11 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
12 #include "xfa/fwl/core/fwl_widgetdef.h" | 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
13 | 14 |
| 15 class CFWL_Widget; |
14 class IFWL_DataProvider; | 16 class IFWL_DataProvider; |
15 class IFWL_ThemeProvider; | |
16 class IFWL_Widget; | |
17 | 17 |
18 class CFWL_WidgetImpProperties { | 18 class CFWL_WidgetProperties { |
19 public: | 19 public: |
20 CFWL_WidgetImpProperties() | 20 CFWL_WidgetProperties() |
21 : m_dwStyles(FWL_WGTSTYLE_Child), | 21 : m_dwStyles(FWL_WGTSTYLE_Child), |
22 m_dwStyleExes(0), | 22 m_dwStyleExes(0), |
23 m_dwStates(0), | 23 m_dwStates(0), |
24 m_pThemeProvider(nullptr), | |
25 m_pDataProvider(nullptr), | |
26 m_pParent(nullptr), | 24 m_pParent(nullptr), |
27 m_pOwner(nullptr) { | 25 m_pOwner(nullptr) { |
28 m_ctmOnParent.SetIdentity(); | |
29 m_rtWidget.Set(0, 0, 0, 0); | 26 m_rtWidget.Set(0, 0, 0, 0); |
30 } | 27 } |
31 | 28 |
| 29 CFWL_WidgetImpProperties MakeWidgetImpProperties( |
| 30 IFWL_DataProvider* pDataProvider) const; |
| 31 |
| 32 CFX_WideString m_wsWindowclass; |
32 CFX_Matrix m_ctmOnParent; | 33 CFX_Matrix m_ctmOnParent; |
33 CFX_RectF m_rtWidget; | 34 CFX_RectF m_rtWidget; |
34 uint32_t m_dwStyles; | 35 uint32_t m_dwStyles; |
35 uint32_t m_dwStyleExes; | 36 uint32_t m_dwStyleExes; |
36 uint32_t m_dwStates; | 37 uint32_t m_dwStates; |
37 IFWL_ThemeProvider* m_pThemeProvider; | 38 CFWL_Widget* m_pParent; |
38 IFWL_DataProvider* m_pDataProvider; | 39 CFWL_Widget* m_pOwner; |
39 IFWL_Widget* m_pParent; | |
40 IFWL_Widget* m_pOwner; | |
41 }; | 40 }; |
42 | 41 |
43 #endif // XFA_FWL_CORE_CFWL_WIDGETIMPPROPERTIES_H_ | 42 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ |
OLD | NEW |