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

Side by Side Diff: xfa/fwl/basewidget/ifwl_datetimepicker.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/basewidget/ifwl_combobox.h ('k') | xfa/fwl/basewidget/ifwl_edit.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_BASEWIDGET_FWL_DATETIMEPICKER_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_DATETIMEPICKER_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
9 9
10 #include "xfa/include/fwl/core/fwl_note.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
11 #include "xfa/include/fwl/core/fwl_widget.h" 11 #include "xfa/fwl/core/ifwl_dataprovider.h"
12 #include "xfa/fwl/core/cfwl_event.h"
13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h"
12 14
13 #define FWL_CLASS_DateTimePicker L"FWL_DATETIMEPICKER" 15 #define FWL_CLASS_DateTimePicker L"FWL_DATETIMEPICKER"
14 #define FWL_CLASSHASH_DateTimePicker 3851176257 16 #define FWL_CLASSHASH_DateTimePicker 3851176257
15 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) 17 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0)
16 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) 18 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1)
17 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) 19 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1)
18 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) 20 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1)
19 #define FWL_STYLEEXT_DTP_Spin (1L << 3) 21 #define FWL_STYLEEXT_DTP_Spin (1L << 3)
20 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) 22 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4)
21 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) 23 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 int32_t iDay; 69 int32_t iDay;
68 END_FWL_EVENT_DEF 70 END_FWL_EVENT_DEF
69 71
70 class IFWL_DateTimePickerDP : public IFWL_DataProvider { 72 class IFWL_DateTimePickerDP : public IFWL_DataProvider {
71 public: 73 public:
72 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, 74 virtual FWL_ERR GetToday(IFWL_Widget* pWidget,
73 int32_t& iYear, 75 int32_t& iYear,
74 int32_t& iMonth, 76 int32_t& iMonth,
75 int32_t& iDay) = 0; 77 int32_t& iDay) = 0;
76 }; 78 };
79
77 class IFWL_DateTimePicker : public IFWL_Widget { 80 class IFWL_DateTimePicker : public IFWL_Widget {
78 public: 81 public:
79 static IFWL_DateTimePicker* Create(const CFWL_WidgetImpProperties& properties, 82 static IFWL_DateTimePicker* Create(const CFWL_WidgetImpProperties& properties,
80 IFWL_Widget* pOuter); 83 IFWL_Widget* pOuter);
81 84
82 FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); 85 FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
83 FWL_ERR SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); 86 FWL_ERR SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
84 FWL_ERR SetEditText(const CFX_WideString& wsText); 87 FWL_ERR SetEditText(const CFX_WideString& wsText);
85 FWL_ERR GetEditText(CFX_WideString& wsText, 88 FWL_ERR GetEditText(CFX_WideString& wsText,
86 int32_t nStart = 0, 89 int32_t nStart = 0,
(...skipping 15 matching lines...) Expand all
102 FX_BOOL DeSelect(); 105 FX_BOOL DeSelect();
103 FWL_ERR GetBBox(CFX_RectF& rect); 106 FWL_ERR GetBBox(CFX_RectF& rect);
104 FWL_ERR SetEditLimit(int32_t nLimit); 107 FWL_ERR SetEditLimit(int32_t nLimit);
105 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, 108 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded,
106 FX_DWORD dwStylesExRemoved); 109 FX_DWORD dwStylesExRemoved);
107 110
108 protected: 111 protected:
109 IFWL_DateTimePicker(); 112 IFWL_DateTimePicker();
110 }; 113 };
111 114
112 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_DATETIMEPICKER_H_ 115 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_combobox.h ('k') | xfa/fwl/basewidget/ifwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698