summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-01-17 14:32:49 +0100
committerPranam Lashkari <lpranam@collabora.com>2021-03-16 05:46:15 +0100
commit8ff147f200e6514bbc7e7d7b5ca91694b9234bfc (patch)
treebf19842568df4965ddf8aef4a88bc722d35255fa /include
parentd7dcecb76b15e1df9a1f3afaf56164a8bf597b71 (diff)
Clean up duplicated command dispatch test functionality
Used in both Writer and Calc at few different places, so host it in unotest/. Change-Id: I013e6df471deb8693cf4ae62f0958b12e16fda7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86972 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112395 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/unotest/macros_test.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/unotest/macros_test.hxx b/include/unotest/macros_test.hxx
index aa098d6a2178..b62526faf9f5 100644
--- a/include/unotest/macros_test.hxx
+++ b/include/unotest/macros_test.hxx
@@ -36,6 +36,11 @@ public:
css::uno::Reference< css::lang::XComponent > loadFromDesktop(const OUString& rURL, const OUString& rDocService = OUString(),
const css::uno::Sequence<css::beans::PropertyValue>& rExtra_args = css::uno::Sequence<css::beans::PropertyValue>() );
+ static void
+ dispatchCommand(const css::uno::Reference<css::lang::XComponent>& xComponent,
+ const OUString& rCommand,
+ const css::uno::Sequence<css::beans::PropertyValue>& rPropertyValues);
+
protected:
css::uno::Reference< css::frame::XDesktop2> mxDesktop;
void setUpNssGpg(const test::Directories& rDirectories, const OUString& rTestName);