diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-21 01:22:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:32 +0200 |
commit | b78bd71b8d607e3ff773da1f972fec68934d4840 (patch) | |
tree | f75b071e4263b0e685d1603f415edd9353b8117e /sw/source/uibase/uitest/uiobject.cxx | |
parent | 8b21af2d243bf033f9a9375f48be840e61300fce (diff) |
uitest: provide a way to jump at the beginning of page
Note that page numbers in writer are 1-based
Change-Id: I614ff08927b4cb92d3819b557ec6791199da69a4
Diffstat (limited to 'sw/source/uibase/uitest/uiobject.cxx')
-rw-r--r-- | sw/source/uibase/uitest/uiobject.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx index 555aef43f65a..c6df6e1fe663 100644 --- a/sw/source/uibase/uitest/uiobject.cxx +++ b/sw/source/uibase/uitest/uiobject.cxx @@ -56,6 +56,16 @@ void SwEditWinUIObject::execute(const OUString& rAction, mxEditWin->GetView().SetZoom(SvxZoomType::PERCENT, nVal); } } + else if (rAction == "GOTO") + { + if (rParameters.find("PAGE") != rParameters.end()) + { + auto itr = rParameters.find("PAGE"); + OUString aVal = itr->second; + sal_Int32 nVal = aVal.toInt32(); + getWrtShell(mxEditWin).GotoPage(nVal, false); + } + } else WindowUIObject::execute(rAction, rParameters); } |