diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-14 12:41:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-14 17:11:56 +0200 |
commit | 430b3f4db745dfe08b989745e340e0503dd0ac34 (patch) | |
tree | 8c66cfd8fa3c9e90786d1e14f38cc84a05b2f7a3 /include/comphelper | |
parent | CppunitTest_sw_tiledrendering: avoid stack-use-after-return in ... (diff) | |
download | core-430b3f4db745dfe08b989745e340e0503dd0ac34.tar.gz core-430b3f4db745dfe08b989745e340e0503dd0ac34.zip |
Resolves: tdf#120423 dispatch against the correct Frame
Change-Id: I5ea2e5d7b79efbd2b14d0b528e5a5c3e44e643bc
Reviewed-on: https://gerrit.libreoffice.org/72284
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/dispatchcommand.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/comphelper/dispatchcommand.hxx b/include/comphelper/dispatchcommand.hxx index 475317742157..f0b67eda70eb 100644 --- a/include/comphelper/dispatchcommand.hxx +++ b/include/comphelper/dispatchcommand.hxx @@ -15,7 +15,7 @@ #include <com/sun/star/uno/Reference.hxx> namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } } } } -namespace com { namespace sun { namespace star { namespace frame { class XDispatchResultListener; } } } } +namespace com { namespace sun { namespace star { namespace frame { class XDispatchResultListener; class XFrame; } } } } namespace com { namespace sun { namespace star { namespace uno { template <typename > class Sequence; } } } } namespace comphelper @@ -29,7 +29,12 @@ namespace comphelper */ COMPHELPER_DLLPUBLIC bool dispatchCommand(const OUString& rCommand, const css::uno::Sequence<css::beans::PropertyValue>& rArguments, - const css::uno::Reference<css::frame::XDispatchResultListener>& aListener = css::uno::Reference<css::frame::XDispatchResultListener>()); + const css::uno::Reference<css::frame::XDispatchResultListener>& rListener = css::uno::Reference<css::frame::XDispatchResultListener>()); + +COMPHELPER_DLLPUBLIC bool dispatchCommand(const OUString& rCommand, + const css::uno::Reference<css::frame::XFrame>& rFrame, + const css::uno::Sequence<css::beans::PropertyValue>& rArguments, + const css::uno::Reference<css::frame::XDispatchResultListener>& rListener = css::uno::Reference<css::frame::XDispatchResultListener>()); } |