OLD | NEW |
(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_CORE_IFWL_DATETIMECALENDAR_H_ |
| 8 #define XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ |
| 9 |
| 10 #include "xfa/fwl/core/ifwl_monthcalendar.h" |
| 11 |
| 12 class IFWL_DateTimeCalendar : public IFWL_MonthCalendar { |
| 13 public: |
| 14 static IFWL_DateTimeCalendar* Create( |
| 15 const CFWL_WidgetImpProperties& properties, |
| 16 IFWL_Widget* pOuter); |
| 17 |
| 18 IFWL_DateTimeCalendar(const CFWL_WidgetImpProperties& properties, |
| 19 IFWL_Widget* pOuter); |
| 20 |
| 21 // IFWL_MonthCalendar |
| 22 FWL_Error Initialize() override; |
| 23 FWL_Error Finalize() override; |
| 24 |
| 25 protected: |
| 26 friend class CFWL_DateTimeCalendarImpDelegate; |
| 27 }; |
| 28 |
| 29 class CFWL_DateTimeCalendarImpDelegate : public CFWL_MonthCalendarImpDelegate { |
| 30 public: |
| 31 CFWL_DateTimeCalendarImpDelegate(IFWL_DateTimeCalendar* pOwner); |
| 32 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 33 |
| 34 void OnLButtonDownEx(CFWL_MsgMouse* pMsg); |
| 35 void OnLButtonUpEx(CFWL_MsgMouse* pMsg); |
| 36 void OnMouseMoveEx(CFWL_MsgMouse* pMsg); |
| 37 |
| 38 protected: |
| 39 IFWL_DateTimeCalendar* m_pOwner; |
| 40 FX_BOOL m_bFlag; |
| 41 |
| 42 private: |
| 43 void DisForm_OnProcessMessage(CFWL_Message* pMessage); |
| 44 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg); |
| 45 }; |
| 46 |
| 47 #endif // XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ |
OLD | NEW |