summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-08 16:01:23 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:22 +0200
commit6c0f510e884dc7d97beb657f59835863f1592102 (patch)
treeabcd3e965bf744df390066a60f7f90b474c6614b
parent401d3bcf8b0aa4bdea4f83baa495241a4d4b7029 (diff)
uitest: initial work on executing dispatcher commands in ui tests
Change-Id: Ib46ef5ea31e77d54786c0d732845984ce3c9c07f
-rw-r--r--include/vcl/uitest/uitest.hxx4
-rw-r--r--vcl/source/uitest/uitest.cxx7
2 files changed, 11 insertions, 0 deletions
diff --git a/include/vcl/uitest/uitest.hxx b/include/vcl/uitest/uitest.hxx
index 3262aa953d63..1d0385e0bf74 100644
--- a/include/vcl/uitest/uitest.hxx
+++ b/include/vcl/uitest/uitest.hxx
@@ -7,11 +7,15 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <rtl/ustring.hxx>
+
#include <vcl/dllapi.h>
class UITEST_DLLPUBLIC UITest
{
public:
+
+ void executeCommand(const OUString& rCommand);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx
index 6d8e1e093b60..05a4e827e782 100644
--- a/vcl/source/uitest/uitest.cxx
+++ b/vcl/source/uitest/uitest.cxx
@@ -9,4 +9,11 @@
#include <vcl/uitest/uitest.hxx>
+#include <comphelper/dispatchcommand.hxx>
+
+void UITest::executeCommand(const OUString& rCommand)
+{
+ comphelper::dispatchCommand(rCommand, css::uno::Sequence<css::beans::PropertyValue>());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */