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_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
9 | 9 |
10 #include "xfa/fwl/core/ifwl_widget.h" | 10 #include "xfa/fwl/core/ifwl_widget.h" |
11 #include "xfa/fwl/core/ifwl_dataprovider.h" | 11 #include "xfa/fwl/core/ifwl_dataprovider.h" |
12 #include "xfa/fwl/core/cfwl_event.h" | 12 #include "xfa/fwl/core/cfwl_event.h" |
13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
14 | 14 |
15 #define FWL_CLASS_DateTimePicker L"FWL_DATETIMEPICKER" | 15 #define FWL_CLASS_DateTimePicker L"FWL_DATETIMEPICKER" |
16 #define FWL_CLASSHASH_DateTimePicker 3851176257 | |
17 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) | 16 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) |
18 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) | 17 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) |
19 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) | 18 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) |
20 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) | 19 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) |
21 #define FWL_STYLEEXT_DTP_Spin (1L << 3) | 20 #define FWL_STYLEEXT_DTP_Spin (1L << 3) |
22 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) | 21 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) |
23 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) | 22 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) |
24 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) | 23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) |
25 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) | 24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) |
26 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) | 25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 FWL_Error GetBBox(CFX_RectF& rect); | 87 FWL_Error GetBBox(CFX_RectF& rect); |
89 FWL_Error SetEditLimit(int32_t nLimit); | 88 FWL_Error SetEditLimit(int32_t nLimit); |
90 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, | 89 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, |
91 uint32_t dwStylesExRemoved); | 90 uint32_t dwStylesExRemoved); |
92 | 91 |
93 protected: | 92 protected: |
94 IFWL_DateTimePicker(); | 93 IFWL_DateTimePicker(); |
95 }; | 94 }; |
96 | 95 |
97 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 96 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |