summaryrefslogtreecommitdiff
path: root/sc/source/ui/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-25 04:02:28 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 02:55:06 +0000
commita25033fabdf1fccd1b201941cb3b921e2cce81bd (patch)
tree2d2828ac20234a48c2617ec0d7d7e56e6b23800d /sc/source/ui/uitest
parent03c434e5acf8a2288679776076c3fe7718dfb569 (diff)
uitest: add ability to open autofilter dialog
Change-Id: If03b2699975756ab650488abe032aefa8880a6b4 Reviewed-on: https://gerrit.libreoffice.org/35692 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/uitest')
-rw-r--r--sc/source/ui/uitest/uiobject.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index 0db6744ed9c3..96f07bc35743 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -172,6 +172,29 @@ void ScGridWinUIObject::execute(const OUString& rAction,
else
SAL_WARN("sc.uitest", "can't activate the current selection");
}
+ else if (rAction == "LAUNCH")
+ {
+ auto itr = rParameters.find("AUTOFILTER");
+ if (itr != rParameters.end())
+ {
+ auto itrCol = rParameters.find("COL");
+ if (itrCol == rParameters.end())
+ {
+ SAL_WARN("sc.uitest", "missing COL parameter");
+ return;
+ }
+
+ auto itrRow = rParameters.find("ROW");
+ if (itrRow == rParameters.end())
+ {
+ SAL_WARN("sc.uitest", "missing ROW parameter");
+ return;
+ }
+ SCROW nRow = itrRow->second.toUInt32();
+ SCCOL nCol = itrCol->second.toUInt32();
+ mxGridWindow->LaunchAutoFilterMenu(nCol, nRow);
+ }
+ }
else
{
WindowUIObject::execute(rAction, rParameters);