Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: xfa/fwl/core/ifwl_form.h

Issue 1827923002: Move xfa/include/fwl/{core,basewidget} to xfa/fwl/{core,basewidget}. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_dataprovider.h ('k') | xfa/fwl/core/ifwl_grid.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CORE_FWL_FORM_H_ 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_FORM_H_ 8 #define XFA_FWL_CORE_IFWL_FORM_H_
9 9
10 #include "xfa/include/fwl/core/fwl_panel.h" 10 #include "xfa/fwl/core/ifwl_panel.h"
11 11 #include "xfa/fwl/core/ifwl_dataprovider.h"
12 class IFWL_Widget; 12 #include "core/fxcrt/include/fx_system.h"
13 class IFWL_Form; 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h"
14 14
15 #define FWL_CLASS_Form L"FWL_FORM" 15 #define FWL_CLASS_Form L"FWL_FORM"
16 #define FWL_CLASSHASH_Form 881567292 16 #define FWL_CLASSHASH_Form 881567292
17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" 17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY"
18 #define FWL_CLASSHASH_FormProxy 881567291 18 #define FWL_CLASSHASH_FormProxy 881567291
19 #define FWL_STYLEEXT_FRM_Resize (1L << 0) 19 #define FWL_STYLEEXT_FRM_Resize (1L << 0)
20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) 20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1)
21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1)
22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) 22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1)
23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) 23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3)
24 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1) 24 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1)
25 #define FWL_STYLEEXT_FRM_Max (3) 25 #define FWL_STYLEEXT_FRM_Max (3)
26
26 #if (_FX_OS_ == _FX_MACOSX_) 27 #if (_FX_OS_ == _FX_MACOSX_)
27 #define FWL_UseMacSystemBorder 28 #define FWL_UseMacSystemBorder
28 #endif 29 #endif
30
29 #define FWL_WGTCAPACITY_FRM_CYCaption (FWL_WGTCAPACITY_MAX + 1) 31 #define FWL_WGTCAPACITY_FRM_CYCaption (FWL_WGTCAPACITY_MAX + 1)
30 #define FWL_WGTCAPACITY_FRM_CYNarrowCaption (FWL_WGTCAPACITY_MAX + 2) 32 #define FWL_WGTCAPACITY_FRM_CYNarrowCaption (FWL_WGTCAPACITY_MAX + 2)
31 #define FWL_WGTCAPACITY_FRM_BigIcon (FWL_WGTCAPACITY_MAX + 3) 33 #define FWL_WGTCAPACITY_FRM_BigIcon (FWL_WGTCAPACITY_MAX + 3)
32 #define FWL_WGTCAPACITY_FRM_SmallIcon (FWL_WGTCAPACITY_MAX + 4) 34 #define FWL_WGTCAPACITY_FRM_SmallIcon (FWL_WGTCAPACITY_MAX + 4)
33 #define FWL_PART_FRM_Border 1 35 #define FWL_PART_FRM_Border 1
34 #define FWL_PART_FRM_Edge 2 36 #define FWL_PART_FRM_Edge 2
35 #define FWL_PART_FRM_Background 3 37 #define FWL_PART_FRM_Background 3
36 #define FWL_PART_FRM_Caption 4 38 #define FWL_PART_FRM_Caption 4
37 #define FWL_PART_FRM_NarrowCaption 5 39 #define FWL_PART_FRM_NarrowCaption 5
38 #define FWL_PART_FRM_CloseBox 6 40 #define FWL_PART_FRM_CloseBox 6
39 #define FWL_PART_FRM_MinimizeBox 7 41 #define FWL_PART_FRM_MinimizeBox 7
40 #define FWL_PART_FRM_MaximizeBox 8 42 #define FWL_PART_FRM_MaximizeBox 8
41 #define FWL_PART_FRM_HeadText 9 43 #define FWL_PART_FRM_HeadText 9
42 #define FWL_PART_FRM_Icon 10 44 #define FWL_PART_FRM_Icon 10
43 #define FWL_PARTSTATE_FRM_Normal 1 45 #define FWL_PARTSTATE_FRM_Normal 1
44 #define FWL_PARTSTATE_FRM_Hover 2 46 #define FWL_PARTSTATE_FRM_Hover 2
45 #define FWL_PARTSTATE_FRM_Pressed 3 47 #define FWL_PARTSTATE_FRM_Pressed 3
46 #define FWL_PARTSTATE_FRM_Inactive 4 48 #define FWL_PARTSTATE_FRM_Inactive 4
47 #define FWL_PARTSTATE_FRM_Disabled 5 49 #define FWL_PARTSTATE_FRM_Disabled 5
48 50
49 class IFWL_FormDP : public IFWL_DataProvider {
50 public:
51 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0;
52 };
53 enum FWL_FORMSIZE { 51 enum FWL_FORMSIZE {
54 FWL_FORMSIZE_Manual = 0, 52 FWL_FORMSIZE_Manual = 0,
55 FWL_FORMSIZE_Width, 53 FWL_FORMSIZE_Width,
56 FWL_FORMSIZE_Height, 54 FWL_FORMSIZE_Height,
57 FWL_FORMSIZE_All, 55 FWL_FORMSIZE_All,
58 }; 56 };
57
59 enum FWL_COMMANDID { 58 enum FWL_COMMANDID {
60 FWL_COMMANDID_Close = 0, 59 FWL_COMMANDID_Close = 0,
61 FWL_COMMANDID_Ok, 60 FWL_COMMANDID_Ok,
62 FWL_COMMANDID_Cancel, 61 FWL_COMMANDID_Cancel,
63 FWL_COMMANDID_Abort, 62 FWL_COMMANDID_Abort,
64 FWL_COMMANDID_Retry, 63 FWL_COMMANDID_Retry,
65 FWL_COMMANDID_Ignore, 64 FWL_COMMANDID_Ignore,
66 FWL_COMMANDID_Yes, 65 FWL_COMMANDID_Yes,
67 FWL_COMMANDID_No, 66 FWL_COMMANDID_No,
68 }; 67 };
69 68
69 class CFX_DIBitmap;
70 class CFX_WideString;
71 class CFX_Path;
72 class IFWL_Widget;
73 class IFWL_Form;
74
75 class IFWL_FormDP : public IFWL_DataProvider {
76 public:
77 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0;
78 };
79
70 class IFWL_Form : public IFWL_Panel { 80 class IFWL_Form : public IFWL_Panel {
71 public: 81 public:
72 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties, 82 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties,
73 CFX_WideString* classname, 83 CFX_WideString* classname,
74 IFWL_Widget* pOuter); 84 IFWL_Widget* pOuter);
75 85
76 FWL_FORMSIZE GetFormSize(); 86 FWL_FORMSIZE GetFormSize();
77 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize); 87 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize);
78 IFWL_Widget* DoModal(); 88 IFWL_Widget* DoModal();
79 IFWL_Widget* DoModal(FX_DWORD& dwCommandID); 89 IFWL_Widget* DoModal(FX_DWORD& dwCommandID);
80 FWL_ERR EndDoModal(); 90 FWL_ERR EndDoModal();
81 FWL_ERR SetBorderRegion(CFX_Path* pPath); 91 FWL_ERR SetBorderRegion(CFX_Path* pPath);
82 92
83 protected: 93 protected:
84 IFWL_Form(); 94 IFWL_Form();
85 }; 95 };
86 96
87 #endif // XFA_INCLUDE_FWL_CORE_FWL_FORM_H_ 97 #endif // XFA_FWL_CORE_IFWL_FORM_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_dataprovider.h ('k') | xfa/fwl/core/ifwl_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698