Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: xfa/include/fwl/basewidget/fwl_listbox.h

Issue 1735833003: Remove include only fwl.h and IWYU. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BASEWIDGET_FWL_LISTBOX_H_ 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
9 9
10 class CFWL_WidgetImpProperties; 10 #include "xfa/include/fwl/core/fwl_note.h"
11 class IFWL_Widget; 11 #include "xfa/include/fwl/core/fwl_widget.h"
12
12 class IFWL_ListBoxDP; 13 class IFWL_ListBoxDP;
13 class IFWL_ListBox; 14
14 #define FWL_CLASS_ListBox L"FWL_LISTBOX" 15 #define FWL_CLASS_ListBox L"FWL_LISTBOX"
15 #define FWL_CLASSHASH_ListBox 1777358317 16 #define FWL_CLASSHASH_ListBox 1777358317
16 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) 17 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0)
17 #define FWL_STYLEEXT_LTB_Sort (1L << 1) 18 #define FWL_STYLEEXT_LTB_Sort (1L << 1)
18 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) 19 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2)
19 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) 20 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3)
20 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4) 21 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4)
21 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4) 22 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4)
22 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4) 23 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4)
23 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6) 24 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6)
(...skipping 18 matching lines...) Expand all
42 #define FWL_PARTSTATE_LTB_UnChecked (0L << 3) 43 #define FWL_PARTSTATE_LTB_UnChecked (0L << 3)
43 #define FWL_PARTSTATE_LTB_Checked (1L << 3) 44 #define FWL_PARTSTATE_LTB_Checked (1L << 3)
44 #define FWL_PARTSTATE_LTB_Mask (3L << 0) 45 #define FWL_PARTSTATE_LTB_Mask (3L << 0)
45 #define FWL_WGTHITTEST_LTB_Item FWL_WGTHITTEST_MAX + 1 46 #define FWL_WGTHITTEST_LTB_Item FWL_WGTHITTEST_MAX + 1
46 #define FWL_WGTHITTEST_LTB_HScrollBar FWL_WGTHITTEST_MAX + 2 47 #define FWL_WGTHITTEST_LTB_HScrollBar FWL_WGTHITTEST_MAX + 2
47 #define FWL_WGTHITTEST_LTB_VScrollBar FWL_WGTHITTEST_MAX + 3 48 #define FWL_WGTHITTEST_LTB_VScrollBar FWL_WGTHITTEST_MAX + 3
48 #define FWL_EVT_LTB_SelChanged L"FWL_EVENT_LTB_SelChanged" 49 #define FWL_EVT_LTB_SelChanged L"FWL_EVENT_LTB_SelChanged"
49 #define FWL_EVT_LTB_DrawItem L"FWL_EVENT_LTB_DrawItem" 50 #define FWL_EVT_LTB_DrawItem L"FWL_EVENT_LTB_DrawItem"
50 #define FWL_EVTHASH_LTB_SelChanged 1701781688 51 #define FWL_EVTHASH_LTB_SelChanged 1701781688
51 #define FWL_EVTHASH_LTB_DrawItem 1050853991 52 #define FWL_EVTHASH_LTB_DrawItem 1050853991
53
52 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged) 54 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged)
53 CFX_Int32Array iarraySels; 55 CFX_Int32Array iarraySels;
54 END_FWL_EVENT_DEF 56 END_FWL_EVENT_DEF
57
55 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, FWL_EVTHASH_LTB_DrawItem) 58 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, FWL_EVTHASH_LTB_DrawItem)
56 CFX_Graphics* m_pGraphics; 59 CFX_Graphics* m_pGraphics;
57 CFX_Matrix m_matrix; 60 CFX_Matrix m_matrix;
58 int32_t m_index; 61 int32_t m_index;
59 CFX_RectF m_rect; 62 CFX_RectF m_rect;
60 END_FWL_EVENT_DEF 63 END_FWL_EVENT_DEF
64
61 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM; 65 typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM;
62 struct FWL_ListBoxItemData { 66 struct FWL_ListBoxItemData {
63 IFWL_ListBoxDP* pDataProvider; 67 IFWL_ListBoxDP* pDataProvider;
64 int32_t iIndex; 68 int32_t iIndex;
65 }; 69 };
70
66 class IFWL_ListBoxDP : public IFWL_DataProvider { 71 class IFWL_ListBoxDP : public IFWL_DataProvider {
67 public: 72 public:
68 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0; 73 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0;
69 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0; 74 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0;
70 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 75 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
71 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 76 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
72 FWL_HLISTITEM hItem, 77 FWL_HLISTITEM hItem,
73 int32_t nIndex) = 0; 78 int32_t nIndex) = 0;
74 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 79 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
75 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget, 80 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); 127 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE);
123 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); 128 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText);
124 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); 129 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE);
125 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); 130 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom);
126 131
127 protected: 132 protected:
128 IFWL_ListBox(); 133 IFWL_ListBox();
129 }; 134 };
130 135
131 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ 136 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_datetimepicker.h ('k') | xfa/include/fwl/basewidget/fwl_monthcalendar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698