| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 118 | 118 |
| 119 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | |
| 120 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 119 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
| 121 IFWL_Widget* pOuter = NULL); | 120 IFWL_Widget* pOuter); |
| 122 int32_t CountSelect(); | 121 int32_t CountSelect(); |
| 123 FX_BOOL GetSelect(int32_t& iYear, | 122 FX_BOOL GetSelect(int32_t& iYear, |
| 124 int32_t& iMonth, | 123 int32_t& iMonth, |
| 125 int32_t& iDay, | 124 int32_t& iDay, |
| 126 int32_t nIndex = 0); | 125 int32_t nIndex = 0); |
| 127 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); | 126 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); |
| 128 | 127 |
| 129 protected: | 128 protected: |
| 130 IFWL_MonthCalendar(); | 129 IFWL_MonthCalendar(); |
| 131 }; | 130 }; |
| 132 #endif | 131 #endif |
| OLD | NEW |