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_FWL_CORE_CFWL_LISTBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 CFWL_ListItem* AddString(const CFX_WideStringC& wsAdd, bool bSelect = false); | 58 CFWL_ListItem* AddString(const CFX_WideStringC& wsAdd, bool bSelect = false); |
59 bool DeleteString(CFWL_ListItem* pItem); | 59 bool DeleteString(CFWL_ListItem* pItem); |
60 void DeleteAll(); | 60 void DeleteAll(); |
61 | 61 |
62 int32_t CountSelItems(); | 62 int32_t CountSelItems(); |
63 void SetSelItem(CFWL_ListItem* pItem, bool bSelect = true); | 63 void SetSelItem(CFWL_ListItem* pItem, bool bSelect = true); |
64 CFWL_ListItem* GetSelItem(int32_t nIndexSel); | 64 CFWL_ListItem* GetSelItem(int32_t nIndexSel); |
65 int32_t GetSelIndex(int32_t nIndex); | 65 int32_t GetSelIndex(int32_t nIndex); |
66 | 66 |
67 CFWL_ListItem* GetItem(int32_t nIndex); | |
68 void GetItemText(CFWL_ListItem* pItem, CFX_WideString& wsText); | |
69 uint32_t GetItemStates(CFWL_ListItem* pItem); | 67 uint32_t GetItemStates(CFWL_ListItem* pItem); |
70 | 68 |
71 private: | 69 private: |
72 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 70 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
73 }; | 71 }; |
74 | 72 |
75 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ | 73 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ |
OLD | NEW |