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_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 19 matching lines...) Expand all Loading... |
30 FWL_Error SetCurSel(int32_t iSel); | 30 FWL_Error SetCurSel(int32_t iSel); |
31 void SetEditText(const CFX_WideString& wsText); | 31 void SetEditText(const CFX_WideString& wsText); |
32 int32_t GetEditTextLength() const; | 32 int32_t GetEditTextLength() const; |
33 FWL_Error GetEditText(CFX_WideString& wsText, | 33 FWL_Error GetEditText(CFX_WideString& wsText, |
34 int32_t nStart = 0, | 34 int32_t nStart = 0, |
35 int32_t nCount = -1) const; | 35 int32_t nCount = -1) const; |
36 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1); | 36 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1); |
37 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); | 37 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); |
38 int32_t GetEditLimit(); | 38 int32_t GetEditLimit(); |
39 FWL_Error SetEditLimit(int32_t nLimit); | 39 FWL_Error SetEditLimit(int32_t nLimit); |
40 FWL_Error EditDoClipboard(int32_t iCmd); | |
41 bool EditRedo(const IFDE_TxtEdtDoRecord* pRecord); | 40 bool EditRedo(const IFDE_TxtEdtDoRecord* pRecord); |
42 bool EditUndo(const IFDE_TxtEdtDoRecord* pRecord); | 41 bool EditUndo(const IFDE_TxtEdtDoRecord* pRecord); |
43 FWL_Error SetMaxListHeight(FX_FLOAT fMaxHeight); | 42 FWL_Error SetMaxListHeight(FX_FLOAT fMaxHeight); |
44 FWL_Error SetItemData(int32_t iIndex, void* pData); | 43 FWL_Error SetItemData(int32_t iIndex, void* pData); |
45 void* GetItemData(int32_t iIndex); | 44 void* GetItemData(int32_t iIndex); |
46 void SetListTheme(IFWL_ThemeProvider* pTheme); | 45 void SetListTheme(IFWL_ThemeProvider* pTheme); |
47 bool AfterFocusShowDropList(); | 46 bool AfterFocusShowDropList(); |
48 FWL_Error OpenDropDownList(bool bActivate); | 47 FWL_Error OpenDropDownList(bool bActivate); |
49 | 48 |
50 bool EditCanUndo(); | 49 bool EditCanUndo(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // IFWL_ComboBoxDP | 109 // IFWL_ComboBoxDP |
111 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; | 110 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; |
112 | 111 |
113 private: | 112 private: |
114 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 113 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
115 FX_FLOAT m_fMaxListHeight; | 114 FX_FLOAT m_fMaxListHeight; |
116 FX_FLOAT m_fItemHeight; | 115 FX_FLOAT m_fItemHeight; |
117 }; | 116 }; |
118 | 117 |
119 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 118 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
OLD | NEW |