| 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_BASEWIDGET_IFWL_LISTBOX_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_widget.h" | 10 #include "xfa/fwl/core/ifwl_widget.h" |
| 11 #include "xfa/fwl/core/ifwl_dataprovider.h" | 11 #include "xfa/fwl/core/ifwl_dataprovider.h" |
| 12 #include "xfa/fwl/core/cfwl_event.h" | 12 #include "xfa/fwl/core/cfwl_event.h" |
| 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
| 14 | 14 |
| 15 #define FWL_CLASS_ListBox L"FWL_LISTBOX" | 15 #define FWL_CLASS_ListBox L"FWL_LISTBOX" |
| 16 #define FWL_CLASSHASH_ListBox 1777358317 | |
| 17 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) | 16 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) |
| 18 #define FWL_STYLEEXT_LTB_Sort (1L << 1) | 17 #define FWL_STYLEEXT_LTB_Sort (1L << 1) |
| 19 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) | 18 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) |
| 20 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) | 19 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) |
| 21 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4) | 20 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4) |
| 22 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4) | 21 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4) |
| 23 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4) | 22 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4) |
| 24 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6) | 23 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6) |
| 25 #define FWL_STYLEEXT_LTB_OwnerDraw (1L << 7) | 24 #define FWL_STYLEEXT_LTB_OwnerDraw (1L << 7) |
| 26 #define FWL_STYLEEXT_LTB_Icon (1L << 8) | 25 #define FWL_STYLEEXT_LTB_Icon (1L << 8) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); | 112 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); |
| 114 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); | 113 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); |
| 115 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 114 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
| 116 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); | 115 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); |
| 117 | 116 |
| 118 protected: | 117 protected: |
| 119 IFWL_ListBox(); | 118 IFWL_ListBox(); |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 121 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| OLD | NEW |