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 _FWL_COMBOBOX_H | 7 #ifndef _FWL_COMBOBOX_H |
8 #define _FWL_COMBOBOX_H | 8 #define _FWL_COMBOBOX_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 CFX_Matrix m_matrix; | 90 CFX_Matrix m_matrix; |
91 int32_t m_index; | 91 int32_t m_index; |
92 CFX_RectF m_rtItem; | 92 CFX_RectF m_rtItem; |
93 END_FWL_EVENT_DEF | 93 END_FWL_EVENT_DEF |
94 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 94 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
95 public: | 95 public: |
96 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 96 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
97 }; | 97 }; |
98 class IFWL_ComboBox : public IFWL_Widget { | 98 class IFWL_ComboBox : public IFWL_Widget { |
99 public: | 99 public: |
100 static IFWL_ComboBox* Create(); | 100 IFWL_ComboBox(); |
101 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 101 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
102 IFWL_Widget* pOuter); | 102 IFWL_Widget* pOuter); |
103 int32_t GetCurSel(); | 103 int32_t GetCurSel(); |
104 FWL_ERR SetCurSel(int32_t iSel); | 104 FWL_ERR SetCurSel(int32_t iSel); |
105 FWL_ERR SetEditText(const CFX_WideString& wsText); | 105 FWL_ERR SetEditText(const CFX_WideString& wsText); |
106 int32_t GetEditTextLength() const; | 106 int32_t GetEditTextLength() const; |
107 FWL_ERR GetEditText(CFX_WideString& wsText, | 107 FWL_ERR GetEditText(CFX_WideString& wsText, |
108 int32_t nStart = 0, | 108 int32_t nStart = 0, |
109 int32_t nCount = -1) const; | 109 int32_t nCount = -1) const; |
110 FWL_ERR SetEditSelRange(int32_t nStart, int32_t nCount = -1); | 110 FWL_ERR SetEditSelRange(int32_t nStart, int32_t nCount = -1); |
(...skipping 15 matching lines...) Expand all Loading... |
126 FX_BOOL EditCanSelectAll(); | 126 FX_BOOL EditCanSelectAll(); |
127 FX_BOOL EditCopy(CFX_WideString& wsCopy); | 127 FX_BOOL EditCopy(CFX_WideString& wsCopy); |
128 FX_BOOL EditCut(CFX_WideString& wsCut); | 128 FX_BOOL EditCut(CFX_WideString& wsCut); |
129 FX_BOOL EditPaste(const CFX_WideString& wsPaste); | 129 FX_BOOL EditPaste(const CFX_WideString& wsPaste); |
130 FX_BOOL EditSelectAll(); | 130 FX_BOOL EditSelectAll(); |
131 FX_BOOL EditDelete(); | 131 FX_BOOL EditDelete(); |
132 FX_BOOL EditDeSelect(); | 132 FX_BOOL EditDeSelect(); |
133 FWL_ERR GetBBox(CFX_RectF& rect); | 133 FWL_ERR GetBBox(CFX_RectF& rect); |
134 FWL_ERR EditModifyStylesEx(FX_DWORD dwStylesExAdded, | 134 FWL_ERR EditModifyStylesEx(FX_DWORD dwStylesExAdded, |
135 FX_DWORD dwStylesExRemoved); | 135 FX_DWORD dwStylesExRemoved); |
136 | |
137 protected: | |
138 IFWL_ComboBox(); | |
139 }; | 136 }; |
140 #endif | 137 #endif |
OLD | NEW |