diff options
author | Henry Castro <hcastro@collabora.com> | 2021-10-04 14:14:32 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-02-18 11:29:36 +0100 |
commit | 470448227dc3e26190e68ea6c58551d7e3993dbb (patch) | |
tree | d90068e406dc172e0baebd588e8b168b498d6bb1 /include | |
parent | 62a8580587aec1c1a3070448b063889c01ac5c11 (diff) |
sfx2: introduce SfxBindings::QuerySlotId
In order to invoke QueryState with the slot id,
which it is easier to invoke UNO command states in unit test.
Change-Id: I36d72a4381ff8386b1f1af33284ce674cf26acd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123063
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129464
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/bindings.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index 47b904d6d113..38104105088d 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -144,6 +144,8 @@ public: void QueryControlState ( sal_uInt16 nSID, boost::property_tree::ptree& rState ); + sal_uInt16 QuerySlotId( const css::util::URL& aURL ); + const SfxPoolItem* ExecuteSynchron( sal_uInt16 nSlot, const SfxPoolItem **pArgs = nullptr); bool Execute( sal_uInt16 nSlot, |