diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/edit.hxx | 1 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index bee63aae0488..bc05f65bbf2a 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -212,6 +212,7 @@ public: virtual sal_Int32 GetMaxTextLen() const { return mnMaxTextLen; } void SetWidthInChars(sal_Int32 nWidthInChars); + sal_Int32 GetWidthInChars() const { return mnWidthInChars; } void setMaxWidthChars(sal_Int32 nWidth); diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index dc69721bb66e..f2ec98049023 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -505,11 +505,13 @@ public: virtual void set_text(const OUString& rText) = 0; virtual OUString get_text() const = 0; virtual void set_width_chars(int nChars) = 0; + virtual int get_width_chars() const = 0; virtual void set_max_length(int nChars) = 0; // nEndPos can be -1 in order to select all text virtual void select_region(int nStartPos, int nEndPos) = 0; virtual bool get_selection_bounds(int& rStartPos, int& rEndPos) = 0; virtual void set_position(int nCursorPos) = 0; + virtual int get_position() const = 0; virtual void set_editable(bool bEditable) = 0; virtual bool get_editable() const = 0; virtual void set_error(bool bShowError) = 0; @@ -670,6 +672,8 @@ public: { m_xEntry->select_region(nStartPos, nEndPos); } + //if not text was selected, both rStartPos and rEndPos will be identical + //and false will be returned virtual bool get_entry_selection_bounds(int& rStartPos, int& rEndPos) override { return m_xEntry->get_selection_bounds(rStartPos, rEndPos); |