From 41db073808566641a3c364e6490f33b7f204d0b0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 19 Sep 2018 13:47:11 +0100 Subject: weld SvxHyphenWordDialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If92d57c5c807a7fc04fe66a748aa385c558be664 Reviewed-on: https://gerrit.libreoffice.org/60774 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/vcl/edit.hxx | 1 + include/vcl/weld.hxx | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include/vcl') 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); -- cgit