Index: xfa/include/fwl/basewidget/fwl_listbox.h |
diff --git a/xfa/include/fwl/basewidget/fwl_listbox.h b/xfa/include/fwl/basewidget/fwl_listbox.h |
index 7645c2526be0f3984240e8cde24b2f1c5c89c4de..4cf5c654d40891f8f9cfc5d2b5d8f8d3c19494b0 100644 |
--- a/xfa/include/fwl/basewidget/fwl_listbox.h |
+++ b/xfa/include/fwl/basewidget/fwl_listbox.h |
@@ -7,10 +7,11 @@ |
#ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ |
#define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ |
-class CFWL_WidgetImpProperties; |
-class IFWL_Widget; |
+#include "xfa/include/fwl/core/fwl_note.h" |
+#include "xfa/include/fwl/core/fwl_widget.h" |
+ |
class IFWL_ListBoxDP; |
-class IFWL_ListBox; |
+ |
#define FWL_CLASS_ListBox L"FWL_LISTBOX" |
#define FWL_CLASSHASH_ListBox 1777358317 |
#define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) |
@@ -49,20 +50,24 @@ class IFWL_ListBox; |
#define FWL_EVT_LTB_DrawItem L"FWL_EVENT_LTB_DrawItem" |
#define FWL_EVTHASH_LTB_SelChanged 1701781688 |
#define FWL_EVTHASH_LTB_DrawItem 1050853991 |
+ |
BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged) |
CFX_Int32Array iarraySels; |
END_FWL_EVENT_DEF |
+ |
BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, FWL_EVTHASH_LTB_DrawItem) |
CFX_Graphics* m_pGraphics; |
CFX_Matrix m_matrix; |
int32_t m_index; |
CFX_RectF m_rect; |
END_FWL_EVENT_DEF |
+ |
typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; |
struct FWL_ListBoxItemData { |
IFWL_ListBoxDP* pDataProvider; |
int32_t iIndex; |
}; |
+ |
class IFWL_ListBoxDP : public IFWL_DataProvider { |
public: |
virtual int32_t CountItems(IFWL_Widget* pWidget) = 0; |