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 _FWL_LISTBOX_LIGHT_H | 7 #ifndef _FWL_LISTBOX_LIGHT_H |
8 #define _FWL_LISTBOX_LIGHT_H | 8 #define _FWL_LISTBOX_LIGHT_H |
9 class CFWL_Widget; | 9 class CFWL_Widget; |
10 class CFWL_WidgetProperties; | 10 class CFWL_WidgetProperties; |
(...skipping 23 matching lines...) Expand all Loading... |
34 FWL_HLISTITEM GetItem(FX_INT32 nIndex); | 34 FWL_HLISTITEM GetItem(FX_INT32 nIndex); |
35 FWL_ERR SetItemString(FWL_HLISTITEM hItem, FX_WSTR wsText); | 35 FWL_ERR SetItemString(FWL_HLISTITEM hItem, FX_WSTR wsText); |
36 FWL_ERR GetItemString(FWL_HLISTITEM hItem, CFX_WideString &wsTex
t); | 36 FWL_ERR GetItemString(FWL_HLISTITEM hItem, CFX_WideString &wsTex
t); |
37 FWL_ERR SetItemData(FWL_HLISTITEM hItem, FX_LPVOID pData); | 37 FWL_ERR SetItemData(FWL_HLISTITEM hItem, FX_LPVOID pData); |
38 FX_LPVOID GetItemData(FWL_HLISTITEM hItem); | 38 FX_LPVOID GetItemData(FWL_HLISTITEM hItem); |
39 FWL_HLISTITEM GetItemAtPoint(FX_FLOAT fx, FX_FLOAT fy); | 39 FWL_HLISTITEM GetItemAtPoint(FX_FLOAT fx, FX_FLOAT fy); |
40 FX_DWORD GetItemStates(FWL_HLISTITEM hItem); | 40 FX_DWORD GetItemStates(FWL_HLISTITEM hItem); |
41 CFWL_ListBox(); | 41 CFWL_ListBox(); |
42 virtual ~CFWL_ListBox(); | 42 virtual ~CFWL_ListBox(); |
43 protected: | 43 protected: |
44 class CFWL_ListBoxDP : public IFWL_ListBoxDP, public CFX_Object | 44 class CFWL_ListBoxDP : public IFWL_ListBoxDP |
45 { | 45 { |
46 public: | 46 public: |
47 CFWL_ListBoxDP(); | 47 CFWL_ListBoxDP(); |
48 ~CFWL_ListBoxDP(); | 48 ~CFWL_ListBoxDP(); |
49 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCapti
on); | 49 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCapti
on); |
50 | 50 |
51 virtual FX_INT32 CountItems(IFWL_Widget *pWidget); | 51 virtual FX_INT32 CountItems(IFWL_Widget *pWidget); |
52 virtual FWL_HLISTITEM GetItem(IFWL_Widget *pWidget, FX_INT32 nIndex); | 52 virtual FWL_HLISTITEM GetItem(IFWL_Widget *pWidget, FX_INT32 nIndex); |
53 virtual FX_INT32 GetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem); | 53 virtual FX_INT32 GetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem); |
54 virtual FX_BOOL SetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem, FX_INT32 nIndex); | 54 virtual FX_BOOL SetItemIndex(IFWL_Widget *pWidget, FWL_H
LISTITEM hItem, FX_INT32 nIndex); |
(...skipping 12 matching lines...) Expand all Loading... |
67 virtual FWL_ERR SetItemCheckRect(IFWL_Widget *pWidget, F
WL_HLISTITEM hItem, const CFX_RectF& rtCheck); | 67 virtual FWL_ERR SetItemCheckRect(IFWL_Widget *pWidget, F
WL_HLISTITEM hItem, const CFX_RectF& rtCheck); |
68 virtual FX_DWORD GetItemCheckState(IFWL_Widget *pWidget,
FWL_HLISTITEM hItem); | 68 virtual FX_DWORD GetItemCheckState(IFWL_Widget *pWidget,
FWL_HLISTITEM hItem); |
69 virtual FWL_ERR SetItemCheckState(IFWL_Widget *pWidget,
FWL_HLISTITEM hItem, FX_DWORD dwCheckState); | 69 virtual FWL_ERR SetItemCheckState(IFWL_Widget *pWidget,
FWL_HLISTITEM hItem, FX_DWORD dwCheckState); |
70 | 70 |
71 CFX_PtrArray m_arrItem; | 71 CFX_PtrArray m_arrItem; |
72 CFX_WideString m_wsData; | 72 CFX_WideString m_wsData; |
73 FX_FLOAT m_fItemHeight; | 73 FX_FLOAT m_fItemHeight; |
74 }; | 74 }; |
75 CFWL_ListBoxDP m_ListBoxDP; | 75 CFWL_ListBoxDP m_ListBoxDP; |
76 }; | 76 }; |
77 class CFWL_ListItem : public CFX_Object | 77 class CFWL_ListItem |
78 { | 78 { |
79 public: | 79 public: |
80 CFWL_ListItem() | 80 CFWL_ListItem() |
81 { | 81 { |
82 m_rtItem.Reset(); | 82 m_rtItem.Reset(); |
83 m_dwStates = 0; | 83 m_dwStates = 0; |
84 m_wsText = L""; | 84 m_wsText = L""; |
85 m_pDIB = NULL; | 85 m_pDIB = NULL; |
86 m_pData = NULL; | 86 m_pData = NULL; |
87 m_dwCheckState = 0; | 87 m_dwCheckState = 0; |
88 m_rtCheckBox.Reset(); | 88 m_rtCheckBox.Reset(); |
89 } | 89 } |
90 CFX_RectF m_rtItem; | 90 CFX_RectF m_rtItem; |
91 FX_DWORD m_dwStates; | 91 FX_DWORD m_dwStates; |
92 CFX_WideString m_wsText; | 92 CFX_WideString m_wsText; |
93 CFX_DIBitmap *m_pDIB; | 93 CFX_DIBitmap *m_pDIB; |
94 FX_LPVOID m_pData; | 94 FX_LPVOID m_pData; |
95 FX_DWORD m_dwCheckState; | 95 FX_DWORD m_dwCheckState; |
96 CFX_RectF m_rtCheckBox; | 96 CFX_RectF m_rtCheckBox; |
97 }; | 97 }; |
98 #endif | 98 #endif |
OLD | NEW |