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

Side by Side Diff: xfa/include/fwl/lightwidget/datetimepicker.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/lightwidget/combobox.h ('k') | xfa/include/fwl/lightwidget/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 _FWL_DATETIMEPICKER_LIGHT_H 7 #ifndef _FWL_DATETIMEPICKER_LIGHT_H
8 #define _FWL_DATETIMEPICKER_LIGHT_H 8 #define _FWL_DATETIMEPICKER_LIGHT_H
9 class CFWL_Widget; 9 class CFWL_Widget;
10 class CFWL_WidgetProperties; 10 class CFWL_WidgetProperties;
11 class IFWL_DateTimePickerDP; 11 class IFWL_DateTimePickerDP;
12 class CFWL_DateTimePicker; 12 class CFWL_DateTimePicker;
13 class CFWL_DateTimePickerDP; 13 class CFWL_DateTimePickerDP;
14 class CFWL_DateTimePicker : public CFWL_Widget 14 class CFWL_DateTimePicker : public CFWL_Widget
15 { 15 {
16 public: 16 public:
17 static CFWL_DateTimePicker* Create(); 17 static CFWL_DateTimePicker* Create();
18 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL); 18 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL);
19 FWL_ERR SetToday(FX_INT32 iYear, FX_INT32 iMonth, FX_INT32 iDay); 19 FWL_ERR SetToday(int32_t iYear, int32_t iMonth, int32_t iDay);
20 FWL_ERR GetEditText(CFX_WideString &wsText); 20 FWL_ERR GetEditText(CFX_WideString &wsText);
21 FWL_ERR SetEditText(FX_WSTR wsText); 21 FWL_ERR SetEditText(FX_WSTR wsText);
22 FX_INT32 CountSelRanges(); 22 int32_t CountSelRanges();
23 FX_INT32 GetSelRange(FX_INT32 nIndex, FX_INT32 &nStart); 23 int32_t GetSelRange(int32_t nIndex, int32_t &nStart);
24 FWL_ERR GetCurSel(FX_INT32 &iYear, FX_INT32 &iMonth, FX_INT32 &iDay); 24 FWL_ERR GetCurSel(int32_t &iYear, int32_t &iMonth, int32_t &iDay);
25 FWL_ERR» SetCurSel(FX_INT32 iYear, FX_INT32 iMonth, FX_INT32 iDay); 25 FWL_ERR» SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
26 FX_BOOL CanUndo(); 26 FX_BOOL CanUndo();
27 FX_BOOL CanRedo(); 27 FX_BOOL CanRedo();
28 FX_BOOL Undo(); 28 FX_BOOL Undo();
29 FX_BOOL Redo(); 29 FX_BOOL Redo();
30 FX_BOOL CanCopy(); 30 FX_BOOL CanCopy();
31 FX_BOOL CanCut(); 31 FX_BOOL CanCut();
32 FX_BOOL CanSelectAll(); 32 FX_BOOL CanSelectAll();
33 FX_BOOL Copy(CFX_WideString &wsCopy); 33 FX_BOOL Copy(CFX_WideString &wsCopy);
34 FX_BOOL Cut(CFX_WideString &wsCut); 34 FX_BOOL Cut(CFX_WideString &wsCut);
35 FX_BOOL Paste(const CFX_WideString &wsPaste); 35 FX_BOOL Paste(const CFX_WideString &wsPaste);
36 FX_BOOL SelectAll(); 36 FX_BOOL SelectAll();
37 FX_BOOL Delete(); 37 FX_BOOL Delete();
38 FX_BOOL DeSelect(); 38 FX_BOOL DeSelect();
39 FWL_ERR GetBBox(CFX_RectF &rect); 39 FWL_ERR GetBBox(CFX_RectF &rect);
40 FWL_ERR» » SetEditLimit(FX_INT32 nLimit); 40 FWL_ERR» » SetEditLimit(int32_t nLimit);
41 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, FX_DWORD dw StylesExRemoved); 41 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, FX_DWORD dw StylesExRemoved);
42 protected: 42 protected:
43 CFWL_DateTimePicker(); 43 CFWL_DateTimePicker();
44 virtual ~CFWL_DateTimePicker(); 44 virtual ~CFWL_DateTimePicker();
45 class CFWL_DateTimePickerDP : public IFWL_DateTimePickerDP 45 class CFWL_DateTimePickerDP : public IFWL_DateTimePickerDP
46 { 46 {
47 public: 47 public:
48 CFWL_DateTimePickerDP(); 48 CFWL_DateTimePickerDP();
49 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCapti on); 49 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCapti on);
50 virtual FWL_ERR GetToday(IFWL_Widget *pWidget, FX_INT32 &iYear, FX_INT32 &iMonth, FX_INT32 &iDay); 50 virtual FWL_ERR GetToday(IFWL_Widget *pWidget, int32_t &iYear, int32_t & iMonth, int32_t &iDay);
51 FX_INT32 m_iYear; 51 int32_t m_iYear;
52 FX_INT32 m_iMonth; 52 int32_t m_iMonth;
53 FX_INT32 m_iDay; 53 int32_t m_iDay;
54 CFX_WideString m_wsData; 54 CFX_WideString m_wsData;
55 }; 55 };
56 CFWL_DateTimePickerDP m_DateTimePickerDP; 56 CFWL_DateTimePickerDP m_DateTimePickerDP;
57 }; 57 };
58 #endif 58 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/lightwidget/combobox.h ('k') | xfa/include/fwl/lightwidget/edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698