| 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 XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ |
| 8 #define XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fgas/localization/fgas_datetime.h" | 10 #include "xfa/fgas/localization/fgas_datetime.h" |
| 11 #include "xfa/fwl/core/fwl_widgetimp.h" | 11 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 12 | 12 |
| 13 class CFWL_MonthCalendarImpDelegate; |
| 14 class CFWL_MsgMouse; |
| 13 class CFWL_WidgetImpProperties; | 15 class CFWL_WidgetImpProperties; |
| 14 class IFWL_Widget; | 16 class IFWL_Widget; |
| 15 class CFWL_MonthCalendarImpDelegate; | |
| 16 | 17 |
| 17 extern uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth); | 18 extern uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth); |
| 18 | 19 |
| 19 class CFWL_MonthCalendarImp : public CFWL_WidgetImp { | 20 class CFWL_MonthCalendarImp : public CFWL_WidgetImp { |
| 20 public: | 21 public: |
| 21 CFWL_MonthCalendarImp(const CFWL_WidgetImpProperties& properties, | 22 CFWL_MonthCalendarImp(const CFWL_WidgetImpProperties& properties, |
| 22 IFWL_Widget* pOuter); | 23 IFWL_Widget* pOuter); |
| 23 ~CFWL_MonthCalendarImp(); | 24 ~CFWL_MonthCalendarImp(); |
| 24 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 25 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
| 25 virtual FX_DWORD GetClassID() const; | 26 virtual FX_DWORD GetClassID() const; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void OnActivate(CFWL_Message* pMsg); | 235 void OnActivate(CFWL_Message* pMsg); |
| 235 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 236 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 236 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 237 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 237 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 238 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 238 void OnMouseMove(CFWL_MsgMouse* pMsg); | 239 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 239 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 240 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 240 CFWL_MonthCalendarImp* m_pOwner; | 241 CFWL_MonthCalendarImp* m_pOwner; |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ | 244 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ |
| OLD | NEW |