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_FWL_CFWL_FORM_H_ | 7 #ifndef XFA_FWL_CFWL_FORM_H_ |
8 #define XFA_FWL_CFWL_FORM_H_ | 8 #define XFA_FWL_CFWL_FORM_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 #include "xfa/fwl/cfwl_widget.h" | 13 #include "xfa/fwl/cfwl_widget.h" |
14 #include "xfa/fwl/cfwl_widgetproperties.h" | 14 #include "xfa/fwl/cfwl_widgetproperties.h" |
15 | 15 |
16 #define FWL_CLASS_Form L"FWL_FORM" | 16 #define FWL_CLASS_Form L"FWL_FORM" |
17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" | 17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" |
18 #define FWL_STYLEEXT_FRM_Resize (1L << 0) | |
19 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) | |
20 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) | |
21 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) | |
22 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) | |
23 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1) | |
24 #define FWL_STYLEEXT_FRM_Max (3) | |
25 | 18 |
26 #if (_FX_OS_ == _FX_MACOSX_) | 19 #if (_FX_OS_ == _FX_MACOSX_) |
27 #define FWL_UseMacSystemBorder | 20 #define FWL_UseMacSystemBorder |
28 #endif | 21 #endif |
29 | 22 |
30 class CFWL_MessageMouse; | 23 class CFWL_MessageMouse; |
31 class CFWL_NoteLoop; | 24 class CFWL_NoteLoop; |
32 class CFWL_Widget; | 25 class CFWL_Widget; |
33 class IFWL_ThemeProvider; | 26 class IFWL_ThemeProvider; |
34 class CFWL_SysBtn; | 27 class CFWL_SysBtn; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 CFX_RectF GetEdgeRect(); | 60 CFX_RectF GetEdgeRect(); |
68 void SetWorkAreaRect(); | 61 void SetWorkAreaRect(); |
69 void Layout(); | 62 void Layout(); |
70 void ResetSysBtn(); | 63 void ResetSysBtn(); |
71 void RegisterForm(); | 64 void RegisterForm(); |
72 void UnRegisterForm(); | 65 void UnRegisterForm(); |
73 void OnLButtonDown(CFWL_MessageMouse* pMsg); | 66 void OnLButtonDown(CFWL_MessageMouse* pMsg); |
74 void OnLButtonUp(CFWL_MessageMouse* pMsg); | 67 void OnLButtonUp(CFWL_MessageMouse* pMsg); |
75 void OnMouseMove(CFWL_MessageMouse* pMsg); | 68 void OnMouseMove(CFWL_MessageMouse* pMsg); |
76 void OnMouseLeave(CFWL_MessageMouse* pMsg); | 69 void OnMouseLeave(CFWL_MessageMouse* pMsg); |
77 void OnLButtonDblClk(CFWL_MessageMouse* pMsg); | |
78 | 70 |
79 #if (_FX_OS_ == _FX_MACOSX_) | 71 #if (_FX_OS_ == _FX_MACOSX_) |
80 bool m_bMouseIn; | 72 bool m_bMouseIn; |
81 #endif | 73 #endif |
82 CFX_RectF m_rtRestore; | 74 CFX_RectF m_rtRestore; |
83 CFX_RectF m_rtRelative; | 75 CFX_RectF m_rtRelative; |
84 CFWL_SysBtn* m_pCloseBox; | 76 CFWL_SysBtn* m_pCloseBox; |
85 CFWL_SysBtn* m_pMinBox; | 77 CFWL_SysBtn* m_pMinBox; |
86 CFWL_SysBtn* m_pMaxBox; | 78 CFWL_SysBtn* m_pMaxBox; |
87 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; | 79 std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop; |
88 CFWL_Widget* m_pSubFocus; | 80 CFWL_Widget* m_pSubFocus; |
89 FX_FLOAT m_fCXBorder; | 81 FX_FLOAT m_fCXBorder; |
90 FX_FLOAT m_fCYBorder; | 82 FX_FLOAT m_fCYBorder; |
91 int32_t m_iCaptureBtn; | 83 int32_t m_iCaptureBtn; |
92 int32_t m_iSysBox; | 84 int32_t m_iSysBox; |
93 bool m_bLButtonDown; | 85 bool m_bLButtonDown; |
94 bool m_bMaximized; | 86 bool m_bMaximized; |
95 bool m_bSetMaximize; | 87 bool m_bSetMaximize; |
96 bool m_bDoModalFlag; | 88 bool m_bDoModalFlag; |
97 }; | 89 }; |
98 | 90 |
99 #endif // XFA_FWL_CFWL_FORM_H_ | 91 #endif // XFA_FWL_CFWL_FORM_H_ |
OLD | NEW |