diff options
-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); } |