diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_combobox.h')
-rw-r--r-- | xfa/fwl/core/ifwl_combobox.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xfa/fwl/core/ifwl_combobox.h b/xfa/fwl/core/ifwl_combobox.h index b2fc23de7d..7ad7420c9b 100644 --- a/xfa/fwl/core/ifwl_combobox.h +++ b/xfa/fwl/core/ifwl_combobox.h @@ -49,7 +49,7 @@ class IFWL_Widget; class IFWL_ComboBox : public IFWL_Widget { public: - class DataProvider : public IFWL_ListBox::DataProvider { + class DataProvider : public IFWL_Widget::DataProvider { public: virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; }; @@ -74,9 +74,14 @@ class IFWL_ComboBox : public IFWL_Widget { void OnDrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; + void GetTextByIndex(int32_t iIndex, CFX_WideString& wsText) const; int32_t GetCurSel() const { return m_iCurSel; } void SetCurSel(int32_t iSel); + void AddString(const CFX_WideStringC& wsText); + bool RemoveAt(int32_t iIndex); // Returns false iff |iIndex| out of range. + void RemoveAll(); + void SetEditText(const CFX_WideString& wsText); void GetEditText(CFX_WideString& wsText, int32_t nStart = 0, |