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