| 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" | |
| 11 #include "xfa/fwl/core/ifwl_dataprovider.h" | |
| 12 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
| 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 11 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
| 12 #include "xfa/fwl/core/ifwl_dataprovider.h" |
| 13 #include "xfa/fwl/core/ifwl_widget.h" |
| 14 | 14 |
| 15 #define FWL_CLASS_ListBox L"FWL_LISTBOX" | 15 #define FWL_CLASS_ListBox L"FWL_LISTBOX" |
| 16 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) | 16 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) |
| 17 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) | 17 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) |
| 18 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) | 18 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) |
| 19 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4) | 19 #define FWL_STYLEEXT_LTB_LeftAlign (0L << 4) |
| 20 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4) | 20 #define FWL_STYLEEXT_LTB_CenterAlign (1L << 4) |
| 21 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4) | 21 #define FWL_STYLEEXT_LTB_RightAlign (2L << 4) |
| 22 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6) | 22 #define FWL_STYLEEXT_LTB_MultiLine (1L << 6) |
| 23 #define FWL_STYLEEXT_LTB_OwnerDraw (1L << 7) | 23 #define FWL_STYLEEXT_LTB_OwnerDraw (1L << 7) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int32_t GetSelIndex(int32_t nIndex); | 105 int32_t GetSelIndex(int32_t nIndex); |
| 106 FWL_Error SetSelItem(IFWL_ListItem* pItem, FX_BOOL bSelect = TRUE); | 106 FWL_Error SetSelItem(IFWL_ListItem* pItem, FX_BOOL bSelect = TRUE); |
| 107 FWL_Error GetItemText(IFWL_ListItem* pItem, CFX_WideString& wsText); | 107 FWL_Error GetItemText(IFWL_ListItem* pItem, CFX_WideString& wsText); |
| 108 FWL_Error GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 108 FWL_Error GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
| 109 | 109 |
| 110 protected: | 110 protected: |
| 111 IFWL_ListBox(); | 111 IFWL_ListBox(); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ | 114 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ |
| OLD | NEW |