diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-10 13:09:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-11 11:23:30 +0200 |
commit | 8d19e03b17fdd6e6159843249fe0b4f41c526f17 (patch) | |
tree | e2063dd7d112bbf8be18c50b5c3822c849bb919a /include | |
parent | 37aa4f0d64e276c46821ef6122483fb6b4c04781 (diff) |
weld ScSimpleRefDlg
Change-Id: I36fe5a0790b2f7a43b9e4d8def9ef3a224d4d546
Reviewed-on: https://gerrit.libreoffice.org/70549
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/funcutl.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/formula/funcutl.hxx b/include/formula/funcutl.hxx index 5a6c095db77e..d2aec01bf90a 100644 --- a/include/formula/funcutl.hxx +++ b/include/formula/funcutl.hxx @@ -142,6 +142,18 @@ public: xEntry->select_region(0, -1); } + void SetSelection(const Selection& rSelection) + { + xEntry->select_region(rSelection.Min(), rSelection.Max()); + } + + Selection GetSelection() const + { + int nStartPos, nEndPos; + xEntry->get_selection_bounds(nStartPos, nEndPos); + return Selection(nStartPos, nEndPos); + } + weld::Label* GetLabelWidgetForShrinkMode() { return pLabelWidget; |