diff options
Diffstat (limited to 'include/formula/funcutl.hxx')
-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; |