diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-01-17 14:32:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-01-17 16:09:49 +0100 |
commit | c7f3ac890526306804ec2bdf1256ba15a4247f13 (patch) | |
tree | 44b5563a31d1147c425ebdccf72e4be83a08b595 /include/unotest | |
parent | bee9f15317d8a9ac909f54791e86f29fdf6a679d (diff) |
Clean up duplicated command dispatch test functionality
Used in both Writer and Calc at 5 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
Diffstat (limited to 'include/unotest')
-rw-r--r-- | include/unotest/macros_test.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/unotest/macros_test.hxx b/include/unotest/macros_test.hxx index 4dcf9427fbf9..c60ea1fe97ce 100644 --- a/include/unotest/macros_test.hxx +++ b/include/unotest/macros_test.hxx @@ -38,6 +38,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; |