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

Side by Side Diff: xfa/include/fwl/core/fwl_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/include/fwl/core/fwl_error.h ('k') | xfa/include/fwl/core/fwl_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
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_FORM_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_FORM_H_
9
10 #include "xfa/include/fwl/core/fwl_panel.h"
11
12 class IFWL_Widget;
13 class IFWL_Form;
14
15 #define FWL_CLASS_Form L"FWL_FORM"
16 #define FWL_CLASSHASH_Form 881567292
17 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY"
18 #define FWL_CLASSHASH_FormProxy 881567291
19 #define FWL_STYLEEXT_FRM_Resize (1L << 0)
20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1)
21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1)
22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1)
23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3)
24 #define FWL_STYLEEXT_FRM_BorderCornerMask (3L << 1)
25 #define FWL_STYLEEXT_FRM_Max (3)
26 #if (_FX_OS_ == _FX_MACOSX_)
27 #define FWL_UseMacSystemBorder
28 #endif
29 #define FWL_WGTCAPACITY_FRM_CYCaption (FWL_WGTCAPACITY_MAX + 1)
30 #define FWL_WGTCAPACITY_FRM_CYNarrowCaption (FWL_WGTCAPACITY_MAX + 2)
31 #define FWL_WGTCAPACITY_FRM_BigIcon (FWL_WGTCAPACITY_MAX + 3)
32 #define FWL_WGTCAPACITY_FRM_SmallIcon (FWL_WGTCAPACITY_MAX + 4)
33 #define FWL_PART_FRM_Border 1
34 #define FWL_PART_FRM_Edge 2
35 #define FWL_PART_FRM_Background 3
36 #define FWL_PART_FRM_Caption 4
37 #define FWL_PART_FRM_NarrowCaption 5
38 #define FWL_PART_FRM_CloseBox 6
39 #define FWL_PART_FRM_MinimizeBox 7
40 #define FWL_PART_FRM_MaximizeBox 8
41 #define FWL_PART_FRM_HeadText 9
42 #define FWL_PART_FRM_Icon 10
43 #define FWL_PARTSTATE_FRM_Normal 1
44 #define FWL_PARTSTATE_FRM_Hover 2
45 #define FWL_PARTSTATE_FRM_Pressed 3
46 #define FWL_PARTSTATE_FRM_Inactive 4
47 #define FWL_PARTSTATE_FRM_Disabled 5
48
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 {
54 FWL_FORMSIZE_Manual = 0,
55 FWL_FORMSIZE_Width,
56 FWL_FORMSIZE_Height,
57 FWL_FORMSIZE_All,
58 };
59 enum FWL_COMMANDID {
60 FWL_COMMANDID_Close = 0,
61 FWL_COMMANDID_Ok,
62 FWL_COMMANDID_Cancel,
63 FWL_COMMANDID_Abort,
64 FWL_COMMANDID_Retry,
65 FWL_COMMANDID_Ignore,
66 FWL_COMMANDID_Yes,
67 FWL_COMMANDID_No,
68 };
69
70 class IFWL_Form : public IFWL_Panel {
71 public:
72 static IFWL_Form* CreateFormProxy(CFWL_WidgetImpProperties& properties,
73 CFX_WideString* classname,
74 IFWL_Widget* pOuter);
75
76 FWL_FORMSIZE GetFormSize();
77 FWL_ERR SetFormSize(FWL_FORMSIZE eFormSize);
78 IFWL_Widget* DoModal();
79 IFWL_Widget* DoModal(FX_DWORD& dwCommandID);
80 FWL_ERR EndDoModal();
81 FWL_ERR SetBorderRegion(CFX_Path* pPath);
82
83 protected:
84 IFWL_Form();
85 };
86
87 #endif // XFA_INCLUDE_FWL_CORE_FWL_FORM_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_error.h ('k') | xfa/include/fwl/core/fwl_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698