summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-19 13:47:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-20 09:56:54 +0200
commit41db073808566641a3c364e6490f33b7f204d0b0 (patch)
tree56748a1212bf2f2f049a47d8815d15224aee34d4 /include/vcl
parentda9a539999fc8ae47a78542ce646005f3a9be868 (diff)
weld SvxHyphenWordDialog
Change-Id: If92d57c5c807a7fc04fe66a748aa385c558be664 Reviewed-on: https://gerrit.libreoffice.org/60774 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/edit.hxx1
-rw-r--r--include/vcl/weld.hxx4
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);