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_COMBOBOX_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
9 | 9 |
10 #include "xfa/fwl/basewidget/ifwl_listbox.h" | 10 #include "xfa/fwl/basewidget/ifwl_listbox.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 73 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
74 public: | 74 public: |
75 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 75 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
76 }; | 76 }; |
77 | 77 |
78 class IFWL_ComboBox : public IFWL_Widget { | 78 class IFWL_ComboBox : public IFWL_Widget { |
79 public: | 79 public: |
80 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); | 80 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); |
81 | 81 |
82 int32_t GetCurSel(); | 82 int32_t GetCurSel(); |
83 FWL_ERR SetCurSel(int32_t iSel); | 83 FWL_Error SetCurSel(int32_t iSel); |
84 FWL_ERR SetEditText(const CFX_WideString& wsText); | 84 FWL_Error SetEditText(const CFX_WideString& wsText); |
85 int32_t GetEditTextLength() const; | 85 int32_t GetEditTextLength() const; |
86 FWL_ERR GetEditText(CFX_WideString& wsText, | 86 FWL_Error GetEditText(CFX_WideString& wsText, |
87 int32_t nStart = 0, | 87 int32_t nStart = 0, |
88 int32_t nCount = -1) const; | 88 int32_t nCount = -1) const; |
89 FWL_ERR SetEditSelRange(int32_t nStart, int32_t nCount = -1); | 89 FWL_Error SetEditSelRange(int32_t nStart, int32_t nCount = -1); |
90 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); | 90 int32_t GetEditSelRange(int32_t nIndex, int32_t& nStart); |
91 int32_t GetEditLimit(); | 91 int32_t GetEditLimit(); |
92 FWL_ERR SetEditLimit(int32_t nLimit); | 92 FWL_Error SetEditLimit(int32_t nLimit); |
93 FWL_ERR EditDoClipboard(int32_t iCmd); | 93 FWL_Error EditDoClipboard(int32_t iCmd); |
94 FX_BOOL EditRedo(const CFX_ByteStringC& bsRecord); | 94 FX_BOOL EditRedo(const CFX_ByteStringC& bsRecord); |
95 FX_BOOL EditUndo(const CFX_ByteStringC& bsRecord); | 95 FX_BOOL EditUndo(const CFX_ByteStringC& bsRecord); |
96 IFWL_ListBox* GetListBoxt(); | 96 IFWL_ListBox* GetListBoxt(); |
97 FX_BOOL AfterFocusShowDropList(); | 97 FX_BOOL AfterFocusShowDropList(); |
98 FX_ERR OpenDropDownList(FX_BOOL bActivate); | 98 FWL_Error OpenDropDownList(FX_BOOL bActivate); |
99 FX_BOOL EditCanUndo(); | 99 FX_BOOL EditCanUndo(); |
100 FX_BOOL EditCanRedo(); | 100 FX_BOOL EditCanRedo(); |
101 FX_BOOL EditUndo(); | 101 FX_BOOL EditUndo(); |
102 FX_BOOL EditRedo(); | 102 FX_BOOL EditRedo(); |
103 FX_BOOL EditCanCopy(); | 103 FX_BOOL EditCanCopy(); |
104 FX_BOOL EditCanCut(); | 104 FX_BOOL EditCanCut(); |
105 FX_BOOL EditCanSelectAll(); | 105 FX_BOOL EditCanSelectAll(); |
106 FX_BOOL EditCopy(CFX_WideString& wsCopy); | 106 FX_BOOL EditCopy(CFX_WideString& wsCopy); |
107 FX_BOOL EditCut(CFX_WideString& wsCut); | 107 FX_BOOL EditCut(CFX_WideString& wsCut); |
108 FX_BOOL EditPaste(const CFX_WideString& wsPaste); | 108 FX_BOOL EditPaste(const CFX_WideString& wsPaste); |
109 FX_BOOL EditSelectAll(); | 109 FX_BOOL EditSelectAll(); |
110 FX_BOOL EditDelete(); | 110 FX_BOOL EditDelete(); |
111 FX_BOOL EditDeSelect(); | 111 FX_BOOL EditDeSelect(); |
112 FWL_ERR GetBBox(CFX_RectF& rect); | 112 FWL_Error GetBBox(CFX_RectF& rect); |
113 FWL_ERR EditModifyStylesEx(uint32_t dwStylesExAdded, | 113 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded, |
114 uint32_t dwStylesExRemoved); | 114 uint32_t dwStylesExRemoved); |
115 | 115 |
116 protected: | 116 protected: |
117 IFWL_ComboBox(); | 117 IFWL_ComboBox(); |
118 }; | 118 }; |
119 | 119 |
120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ | 120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ |
OLD | NEW |