summaryrefslogtreecommitdiff
path: root/include/vcl/uitest/uitest.hxx
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-07-23 14:32:24 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-28 01:10:23 +0200
commitf458dabcaa18d66b054d00f5d9a389c06240f0eb (patch)
tree68f5aa7858c75729f99caddc950ac585f71cb95f /include/vcl/uitest/uitest.hxx
parent0c350906b1d6dc27383619dd3338fe28768f1c2e (diff)
uitest: support parameters when sending UNO commands
This patch introduces a new function to send parameters with UNO commands in UI Tests and adds a test which uses the function to change the color of text in writer. Change-Id: Ic687872ab826b50360e1bd042d9668a9f6ddbf63 Reviewed-on: https://gerrit.libreoffice.org/57857 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include/vcl/uitest/uitest.hxx')
-rw-r--r--include/vcl/uitest/uitest.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/uitest/uitest.hxx b/include/vcl/uitest/uitest.hxx
index 4031402e8fc0..1759ea7656b0 100644
--- a/include/vcl/uitest/uitest.hxx
+++ b/include/vcl/uitest/uitest.hxx
@@ -12,6 +12,11 @@
#include <vcl/dllapi.h>
#include <memory>
+#include <com/sun/star/uno/Sequence.hxx>
+
+namespace com { namespace sun { namespace star {
+ namespace beans { struct PropertyValue; }
+} } }
class UIObject;
@@ -21,6 +26,9 @@ public:
static bool executeCommand(const OUString& rCommand);
+ static bool executeCommandWithParameters(const OUString& rCommand,
+ const css::uno::Sequence< css::beans::PropertyValue >& rArgs);
+
static bool executeDialog(const OUString& rCommand);
static std::unique_ptr<UIObject> getFocusTopWindow();