[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Dec 21 15:57:40 UTC 2016
sc/source/ui/uitest/uiobject.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit af29560992f56bc24507c2025ee73ea473a43540
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Dec 21 14:34:11 2016 +0100
uitest: add selected area to gridwin state
Change-Id: I27e17640cc426dc3a63c605e6a294c3f90f5350c
Reviewed-on: https://gerrit.libreoffice.org/32279
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index 9fcf218..0db6744 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -55,6 +55,12 @@ StringMap ScGridWinUIObject::get_state()
aMap["SelectedTable"] = OUString::number(mxGridWindow->getViewData()->GetTabNo());
aMap["CurrentColumn"] = OUString::number(mxGridWindow->getViewData()->GetCurX());
aMap["CurrentRow"] = OUString::number(mxGridWindow->getViewData()->GetCurY());
+
+ ScRangeList aMarkedArea = mxGridWindow->getViewData()->GetMarkData().GetMarkedRanges();
+ OUString aMarkedAreaString;
+ ScRangeStringConverter::GetStringFromRangeList(aMarkedAreaString, &aMarkedArea, mxGridWindow->getViewData()->GetDocument(), formula::FormulaGrammar::CONV_OOO);
+
+ aMap["MarkedArea"] = aMarkedAreaString;
return aMap;
}
More information about the Libreoffice-commits
mailing list