diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-21 01:49:19 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:34 +0200 |
commit | 3ba10adaa853da547aa90d69b666ada4e683fe32 (patch) | |
tree | 66e781f7c0b12121bdf185f5bdb782c2a981f174 /sw/source/uibase/uitest/uiobject.cxx | |
parent | d2dc8ded7008908e9290cff3db4d14682e7cbe71 (diff) |
uitest: support selecting writer text
Change-Id: I6d1c4e5a05bdcb3299af86a9044d912239659fb9
Diffstat (limited to 'sw/source/uibase/uitest/uiobject.cxx')
-rw-r--r-- | sw/source/uibase/uitest/uiobject.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx index 0102c984c4b9..9f4529d80b46 100644 --- a/sw/source/uibase/uitest/uiobject.cxx +++ b/sw/source/uibase/uitest/uiobject.cxx @@ -79,6 +79,22 @@ void SwEditWinUIObject::execute(const OUString& rAction, getWrtShell(mxEditWin).GotoPage(nVal, false); } } + else if (rAction == "SELECT") + { + if (rParameters.find("START_POS") != rParameters.end()) + { + auto itr = rParameters.find("START_POS"); + OUString aStartPos = itr->second; + sal_Int32 nStartPos = aStartPos.toInt32(); + + itr = rParameters.find("END_POS"); + assert(itr != rParameters.end()); + OUString aEndPos = itr->second; + sal_Int32 nEndPos = aEndPos.toInt32(); + + getWrtShell(mxEditWin).SelectText(nStartPos, nEndPos); + } + } else WindowUIObject::execute(rAction, rParameters); } |