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_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ | 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_COMBOBOX_H_ |
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ | 8 #define XFA_FWL_LIGHTWIDGET_CFWL_COMBOBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "xfa/fwl/basewidget/ifwl_combobox.h" | 13 #include "xfa/fwl/basewidget/ifwl_combobox.h" |
14 #include "xfa/include/fwl/lightwidget/widget.h" | 14 #include "xfa/fwl/lightwidget/cfwl_widget.h" |
15 | 15 |
16 class CFWL_WidgetProperties; | 16 class CFWL_WidgetProperties; |
17 class IFWL_ComboBoxDP; | 17 class IFWL_ComboBoxDP; |
18 class CFWL_ComboBoxDP; | 18 class CFWL_ComboBoxDP; |
19 class CFWL_ComboBoxItem; | 19 class CFWL_ComboBoxItem; |
20 | 20 |
21 class CFWL_ComboBox : public CFWL_Widget { | 21 class CFWL_ComboBox : public CFWL_Widget { |
22 public: | 22 public: |
23 static CFWL_ComboBox* Create(); | 23 static CFWL_ComboBox* Create(); |
24 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 24 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
(...skipping 17 matching lines...) Expand all Loading... |
42 FWL_ERR EditDoClipboard(int32_t iCmd); | 42 FWL_ERR EditDoClipboard(int32_t iCmd); |
43 FX_BOOL EditRedo(const CFX_ByteStringC& bsRecord); | 43 FX_BOOL EditRedo(const CFX_ByteStringC& bsRecord); |
44 FX_BOOL EditUndo(const CFX_ByteStringC& bsRecord); | 44 FX_BOOL EditUndo(const CFX_ByteStringC& bsRecord); |
45 FWL_ERR SetMaxListHeight(FX_FLOAT fMaxHeight); | 45 FWL_ERR SetMaxListHeight(FX_FLOAT fMaxHeight); |
46 FWL_ERR SetItemData(int32_t iIndex, void* pData); | 46 FWL_ERR SetItemData(int32_t iIndex, void* pData); |
47 void* GetItemData(int32_t iIndex); | 47 void* GetItemData(int32_t iIndex); |
48 FWL_ERR SetListTheme(IFWL_ThemeProvider* pTheme); | 48 FWL_ERR SetListTheme(IFWL_ThemeProvider* pTheme); |
49 FX_BOOL AfterFocusShowDropList(); | 49 FX_BOOL AfterFocusShowDropList(); |
50 FWL_ERR OpenDropDownList(FX_BOOL bActivate); | 50 FWL_ERR OpenDropDownList(FX_BOOL bActivate); |
51 | 51 |
52 public: | |
53 FX_BOOL EditCanUndo(); | 52 FX_BOOL EditCanUndo(); |
54 FX_BOOL EditCanRedo(); | 53 FX_BOOL EditCanRedo(); |
55 FX_BOOL EditUndo(); | 54 FX_BOOL EditUndo(); |
56 FX_BOOL EditRedo(); | 55 FX_BOOL EditRedo(); |
57 FX_BOOL EditCanCopy(); | 56 FX_BOOL EditCanCopy(); |
58 FX_BOOL EditCanCut(); | 57 FX_BOOL EditCanCut(); |
59 FX_BOOL EditCanSelectAll(); | 58 FX_BOOL EditCanSelectAll(); |
60 FX_BOOL EditCopy(CFX_WideString& wsCopy); | 59 FX_BOOL EditCopy(CFX_WideString& wsCopy); |
61 FX_BOOL EditCut(CFX_WideString& wsCut); | 60 FX_BOOL EditCut(CFX_WideString& wsCut); |
62 FX_BOOL EditPaste(const CFX_WideString& wsPaste); | 61 FX_BOOL EditPaste(const CFX_WideString& wsPaste); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 133 } |
135 CFX_RectF m_rtItem; | 134 CFX_RectF m_rtItem; |
136 uint32_t m_dwStyles; | 135 uint32_t m_dwStyles; |
137 CFX_WideString m_wsText; | 136 CFX_WideString m_wsText; |
138 CFX_DIBitmap* m_pDIB; | 137 CFX_DIBitmap* m_pDIB; |
139 uint32_t m_dwCheckState; | 138 uint32_t m_dwCheckState; |
140 CFX_RectF m_rtCheckBox; | 139 CFX_RectF m_rtCheckBox; |
141 void* m_pData; | 140 void* m_pData; |
142 }; | 141 }; |
143 | 142 |
144 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ | 143 #endif // XFA_FWL_LIGHTWIDGET_CFWL_COMBOBOX_H_ |
OLD | NEW |