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 _FWL_MONTHCALENDAR_H | 7 #ifndef _FWL_MONTHCALENDAR_H |
8 #define _FWL_MONTHCALENDAR_H | 8 #define _FWL_MONTHCALENDAR_H |
9 class IFWL_MonthCalendarDP; | 9 class IFWL_MonthCalendarDP; |
10 class IFWL_MonthCalendar; | 10 class IFWL_MonthCalendar; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int32_t m_iEndDay; | 107 int32_t m_iEndDay; |
108 END_FWL_EVENT_DEF | 108 END_FWL_EVENT_DEF |
109 class IFWL_MonthCalendarDP : public IFWL_DataProvider { | 109 class IFWL_MonthCalendarDP : public IFWL_DataProvider { |
110 public: | 110 public: |
111 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; | 111 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; |
112 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; | 112 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; |
113 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; | 113 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; |
114 }; | 114 }; |
115 class IFWL_MonthCalendar : public IFWL_Widget { | 115 class IFWL_MonthCalendar : public IFWL_Widget { |
116 public: | 116 public: |
117 static IFWL_MonthCalendar* Create(); | 117 static IFWL_MonthCalendar* Create(const CFWL_WidgetImpProperties& properties, |
| 118 IFWL_Widget* pOuter); |
118 | 119 |
119 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | |
120 IFWL_Widget* pOuter); | |
121 int32_t CountSelect(); | 120 int32_t CountSelect(); |
122 FX_BOOL GetSelect(int32_t& iYear, | 121 FX_BOOL GetSelect(int32_t& iYear, |
123 int32_t& iMonth, | 122 int32_t& iMonth, |
124 int32_t& iDay, | 123 int32_t& iDay, |
125 int32_t nIndex = 0); | 124 int32_t nIndex = 0); |
126 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); | 125 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); |
127 | 126 |
128 protected: | 127 protected: |
129 IFWL_MonthCalendar(); | 128 IFWL_MonthCalendar(); |
130 }; | 129 }; |
131 #endif | 130 #endif |
OLD | NEW |