diff options
author | Henry Castro <hcastro@collabora.com> | 2021-10-04 14:14:32 -0400 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-10-08 08:07:22 +0200 |
commit | 3d5cd0cf6019972a3eb7a0a38791023d29a8d20b (patch) | |
tree | b2f033f6204f3b17598ac5d38194e9b7d2fc7aff /include | |
parent | 51dc26375e00e380eea5f8c53f35f21dbf8f8166 (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>
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 3eb756ebb18d..058755d35a30 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -143,6 +143,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, |