diff options
-rw-r--r-- | sc/source/ui/uitest/uiobject.cxx | 23 |
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); |