[Libreoffice-commits] core.git: sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Mar 26 02:55:35 UTC 2017


 sc/source/ui/uitest/uiobject.cxx |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

New commits:
commit a25033fabdf1fccd1b201941cb3b921e2cce81bd
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Mar 25 04:02:28 2017 +0100

    uitest: add ability to open autofilter dialog
    
    Change-Id: If03b2699975756ab650488abe032aefa8880a6b4
    Reviewed-on: https://gerrit.libreoffice.org/35692
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-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 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);


More information about the Libreoffice-commits mailing list