diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-08 22:21:35 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-09 04:27:53 +0200 |
commit | 5a345f714f67594bb9e3f8914e89975a937872cf (patch) | |
tree | 1862a5dcc0d5c8db0c250865d66031fed1c80c32 /sc/source/ui/uitest/uiobject.cxx | |
parent | 42aece949ec96c775b31216bddd723aa5321e966 (diff) |
uitest: add state about currently visible range
Change-Id: Ie07ef2379086f84f9596771bc91683fa3e9bcd32
Reviewed-on: https://gerrit.libreoffice.org/36304
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/uitest/uiobject.cxx')
-rw-r--r-- | sc/source/ui/uitest/uiobject.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx index 96f07bc35743..c3f8b50ec1a9 100644 --- a/sc/source/ui/uitest/uiobject.cxx +++ b/sc/source/ui/uitest/uiobject.cxx @@ -56,6 +56,12 @@ StringMap ScGridWinUIObject::get_state() aMap["CurrentColumn"] = OUString::number(mxGridWindow->getViewData()->GetCurX()); aMap["CurrentRow"] = OUString::number(mxGridWindow->getViewData()->GetCurY()); + ScSplitPos eAlign = mxGridWindow->getViewData()->GetActivePart(); + ScHSplitPos eAlignX = WhichH(eAlign); + ScVSplitPos eAlignY = WhichV(eAlign); + aMap["TopVisibleRow"] = OUString::number(mxGridWindow->getViewData()->GetPosY(eAlignY)); + aMap["TopVisibleColumn"] = OUString::number(mxGridWindow->getViewData()->GetPosX(eAlignX)); + ScRangeList aMarkedArea = mxGridWindow->getViewData()->GetMarkData().GetMarkedRanges(); OUString aMarkedAreaString; ScRangeStringConverter::GetStringFromRangeList(aMarkedAreaString, &aMarkedArea, mxGridWindow->getViewData()->GetDocument(), formula::FormulaGrammar::CONV_OOO); |