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_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ | 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ |
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ | 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "xfa/include/fwl/basewidget/fwl_listbox.h" |
| 14 #include "xfa/include/fwl/core/fwl_error.h" |
| 15 #include "xfa/include/fwl/core/fwl_widget.h" |
13 #include "xfa/include/fwl/lightwidget/widget.h" | 16 #include "xfa/include/fwl/lightwidget/widget.h" |
14 | 17 |
15 class CFWL_Widget; | |
16 class CFWL_WidgetProperties; | |
17 class IFWL_ListBoxDP; | |
18 class CFWL_ListBox; | |
19 class CFWL_ListItem; | 18 class CFWL_ListItem; |
20 | 19 |
21 class CFWL_ListBox : public CFWL_Widget { | 20 class CFWL_ListBox : public CFWL_Widget { |
22 public: | 21 public: |
23 static CFWL_ListBox* Create(); | 22 static CFWL_ListBox* Create(); |
24 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 23 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
25 FWL_ERR AddDIBitmap(CFX_DIBitmap* pDIB, FWL_HLISTITEM hItem); | 24 FWL_ERR AddDIBitmap(CFX_DIBitmap* pDIB, FWL_HLISTITEM hItem); |
26 FWL_HLISTITEM AddString(const CFX_WideStringC& wsAdd, | 25 FWL_HLISTITEM AddString(const CFX_WideStringC& wsAdd, |
27 FX_BOOL bSelect = FALSE); | 26 FX_BOOL bSelect = FALSE); |
28 FX_BOOL DeleteString(FWL_HLISTITEM hItem); | 27 FX_BOOL DeleteString(FWL_HLISTITEM hItem); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 CFX_RectF m_rtItem; | 118 CFX_RectF m_rtItem; |
120 FX_DWORD m_dwStates; | 119 FX_DWORD m_dwStates; |
121 CFX_WideString m_wsText; | 120 CFX_WideString m_wsText; |
122 CFX_DIBitmap* m_pDIB; | 121 CFX_DIBitmap* m_pDIB; |
123 void* m_pData; | 122 void* m_pData; |
124 FX_DWORD m_dwCheckState; | 123 FX_DWORD m_dwCheckState; |
125 CFX_RectF m_rtCheckBox; | 124 CFX_RectF m_rtCheckBox; |
126 }; | 125 }; |
127 | 126 |
128 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ | 127 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_LISTBOX_H_ |
OLD | NEW |