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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) | 23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) |
24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) | 24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) |
25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) | 25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) |
26 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) | 26 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) |
27 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) | 27 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) |
28 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) | 28 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) |
29 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) | 29 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) |
30 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) | 30 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) |
31 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) | 31 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) |
32 | 32 |
33 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) | 33 FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) |
34 END_FWL_EVENT_DEF | |
35 | 34 |
36 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) | 35 FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) |
37 END_FWL_EVENT_DEF | |
38 | 36 |
39 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, CFWL_EventType::EditChanged) | 37 FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, |
40 CFX_WideString m_wsText; | 38 CFWL_EventType::EditChanged, |
41 END_FWL_EVENT_DEF | 39 CFX_WideString m_wsText;) |
42 | 40 |
43 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, CFWL_EventType::HoverChanged) | 41 FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, |
44 int32_t hoverday; | 42 CFWL_EventType::HoverChanged, |
45 END_FWL_EVENT_DEF | 43 int32_t hoverday;) |
46 | 44 |
47 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged) | 45 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, |
48 int32_t iYear; | 46 CFWL_EventType::SelectChanged, |
49 int32_t iMonth; | 47 int32_t iYear; |
50 int32_t iDay; | 48 int32_t iMonth; |
51 END_FWL_EVENT_DEF | 49 int32_t iDay;) |
52 | 50 |
53 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 51 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
54 public: | 52 public: |
55 virtual FWL_Error GetToday(IFWL_Widget* pWidget, | 53 virtual FWL_Error GetToday(IFWL_Widget* pWidget, |
56 int32_t& iYear, | 54 int32_t& iYear, |
57 int32_t& iMonth, | 55 int32_t& iMonth, |
58 int32_t& iDay) = 0; | 56 int32_t& iDay) = 0; |
59 }; | 57 }; |
60 | 58 |
61 class IFWL_DateTimePicker : public IFWL_Widget { | 59 class IFWL_DateTimePicker : public IFWL_Widget { |
(...skipping 25 matching lines...) Expand all Loading... |
87 FWL_Error GetBBox(CFX_RectF& rect); | 85 FWL_Error GetBBox(CFX_RectF& rect); |
88 FWL_Error SetEditLimit(int32_t nLimit); | 86 FWL_Error SetEditLimit(int32_t nLimit); |
89 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, | 87 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, |
90 uint32_t dwStylesExRemoved); | 88 uint32_t dwStylesExRemoved); |
91 | 89 |
92 protected: | 90 protected: |
93 IFWL_DateTimePicker(); | 91 IFWL_DateTimePicker(); |
94 }; | 92 }; |
95 | 93 |
96 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 94 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |