summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-10 13:09:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-11 11:23:30 +0200
commit8d19e03b17fdd6e6159843249fe0b4f41c526f17 (patch)
treee2063dd7d112bbf8be18c50b5c3822c849bb919a /include/formula
parent37aa4f0d64e276c46821ef6122483fb6b4c04781 (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/formula')
-rw-r--r--include/formula/funcutl.hxx12
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;