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_LISTBOXIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
8 #define XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
| 12 #include "xfa/fwl/basewidget/ifwl_combobox.h" |
| 13 #include "xfa/fwl/basewidget/ifwl_edit.h" |
| 14 #include "xfa/fwl/basewidget/ifwl_listbox.h" |
| 15 #include "xfa/fwl/basewidget/ifwl_scrollbar.h" |
12 #include "xfa/fwl/core/fwl_widgetimp.h" | 16 #include "xfa/fwl/core/fwl_widgetimp.h" |
13 #include "xfa/include/fwl/basewidget/fwl_combobox.h" | |
14 #include "xfa/include/fwl/basewidget/fwl_edit.h" | |
15 #include "xfa/include/fwl/basewidget/fwl_listbox.h" | |
16 #include "xfa/include/fwl/basewidget/fwl_scrollbar.h" | |
17 | 17 |
18 class CFWL_ListBoxImpDelegate; | 18 class CFWL_ListBoxImpDelegate; |
| 19 class CFWL_MsgKillFocus; |
| 20 class CFWL_MsgMouse; |
| 21 class CFWL_MsgMouseWheel; |
19 | 22 |
20 class CFWL_ListBoxImp : public CFWL_WidgetImp { | 23 class CFWL_ListBoxImp : public CFWL_WidgetImp { |
21 public: | 24 public: |
22 CFWL_ListBoxImp(const CFWL_WidgetImpProperties& properties, | 25 CFWL_ListBoxImp(const CFWL_WidgetImpProperties& properties, |
23 IFWL_Widget* pOuter); | 26 IFWL_Widget* pOuter); |
24 ~CFWL_ListBoxImp(); | 27 ~CFWL_ListBoxImp(); |
25 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 28 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
26 virtual FX_DWORD GetClassID() const; | 29 virtual FX_DWORD GetClassID() const; |
27 virtual FWL_ERR Initialize(); | 30 virtual FWL_ERR Initialize(); |
28 virtual FWL_ERR Finalize(); | 31 virtual FWL_ERR Finalize(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 115 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
113 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); | 116 void OnMouseWheel(CFWL_MsgMouseWheel* pMsg); |
114 void OnKeyDown(CFWL_MsgKey* pMsg); | 117 void OnKeyDown(CFWL_MsgKey* pMsg); |
115 void OnVK(FWL_HLISTITEM hItem, FX_BOOL bShift, FX_BOOL bCtrl); | 118 void OnVK(FWL_HLISTITEM hItem, FX_BOOL bShift, FX_BOOL bCtrl); |
116 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, FX_DWORD dwCode, FX_FLOAT fPos); | 119 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, FX_DWORD dwCode, FX_FLOAT fPos); |
117 void DispatchSelChangedEv(); | 120 void DispatchSelChangedEv(); |
118 CFWL_ListBoxImp* m_pOwner; | 121 CFWL_ListBoxImp* m_pOwner; |
119 }; | 122 }; |
120 | 123 |
121 #endif // XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ | 124 #endif // XFA_FWL_BASEWIDGET_FWL_LISTBOXIMP_H_ |
OLD | NEW |