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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_datetimepicker.h

Issue 2430923006: Move fwl/lightwidget to fwl/core (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/lightwidget/cfwl_combobox.cpp ('k') | xfa/fwl/lightwidget/cfwl_datetimepicker.cpp » ('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_FWL_LIGHTWIDGET_CFWL_DATETIMEPICKER_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_DATETIMEPICKER_H_
9
10 #include "xfa/fwl/core/ifwl_datetimepicker.h"
11 #include "xfa/fwl/lightwidget/cfwl_widget.h"
12
13 class CFWL_DateTimePicker : public CFWL_Widget {
14 public:
15 CFWL_DateTimePicker();
16 ~CFWL_DateTimePicker() override;
17
18 IFWL_DateTimePicker* GetWidget() override;
19 const IFWL_DateTimePicker* GetWidget() const override;
20
21 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
22 FWL_Error SetToday(int32_t iYear, int32_t iMonth, int32_t iDay);
23 FWL_Error GetEditText(CFX_WideString& wsText);
24 FWL_Error SetEditText(const CFX_WideString& wsText);
25 int32_t CountSelRanges();
26 int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
27 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
28 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
29 FX_BOOL CanUndo();
30 FX_BOOL CanRedo();
31 FX_BOOL Undo();
32 FX_BOOL Redo();
33 FX_BOOL CanCopy();
34 FX_BOOL CanCut();
35 FX_BOOL CanSelectAll();
36 FX_BOOL Copy(CFX_WideString& wsCopy);
37 FX_BOOL Cut(CFX_WideString& wsCut);
38 FX_BOOL Paste(const CFX_WideString& wsPaste);
39 FX_BOOL SelectAll();
40 FX_BOOL Delete();
41 FX_BOOL DeSelect();
42 FWL_Error GetBBox(CFX_RectF& rect);
43 FWL_Error SetEditLimit(int32_t nLimit);
44 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded,
45 uint32_t dwStylesExRemoved);
46
47 protected:
48 class CFWL_DateTimePickerDP : public IFWL_DateTimePickerDP {
49 public:
50 CFWL_DateTimePickerDP();
51
52 // IFWL_DataProvider
53 FWL_Error GetCaption(IFWL_Widget* pWidget,
54 CFX_WideString& wsCaption) override;
55
56 // IFWL_DateTimePickerDP
57 FWL_Error GetToday(IFWL_Widget* pWidget,
58 int32_t& iYear,
59 int32_t& iMonth,
60 int32_t& iDay) override;
61 int32_t m_iYear;
62 int32_t m_iMonth;
63 int32_t m_iDay;
64 CFX_WideString m_wsData;
65 };
66
67 CFWL_DateTimePickerDP m_DateTimePickerDP;
68 };
69
70 #endif // XFA_FWL_LIGHTWIDGET_CFWL_DATETIMEPICKER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_combobox.cpp ('k') | xfa/fwl/lightwidget/cfwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698