20#ifndef INCLUDED_FRAMEWORK_INC_SERVICES_DISPATCHHELPER_HXX
21#define INCLUDED_FRAMEWORK_INC_SERVICES_DISPATCHHELPER_HXX
23#include <config_options.h>
24#include <com/sun/star/frame/XDispatchHelper.hpp>
25#include <com/sun/star/frame/XDispatchResultListener.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/uno/Any.hxx>
31#include <condition_variable>
36class XMultiServiceFactory;
40class XSingleServiceFactory;
44class XComponentContext;
57class UNLESS_MERGELIBS(FWK_DLLPUBLIC) DispatchHelper final
58 :
public ::cppu::WeakImplHelper<css::lang::XServiceInfo, css::frame::XDispatchHelper,
59 css::frame::XDispatchResultListener>
65 css::uno::Reference<css::uno::XComponentContext>
m_xContext;
68 std::condition_variable m_aBlock;
73 css::uno::Reference<css::uno::XInterface> m_xBroadcaster;
80 DispatchHelper(css::uno::Reference<css::uno::XComponentContext> xContext);
81 virtual ~DispatchHelper()
override;
89 virtual css::uno::Any SAL_CALL
90 executeDispatch(
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider,
91 const OUString& sURL,
const OUString& sTargetFrameName, sal_Int32 nSearchFlags,
92 const css::uno::Sequence<css::beans::PropertyValue>& lArguments)
override;
97 executeDispatch(
const css::uno::Reference<css::frame::XDispatch>& xDispatch,
98 const css::util::URL& aURL,
bool SyncronFlag,
99 const css::uno::Sequence<css::beans::PropertyValue>& lArguments);
102 virtual void SAL_CALL dispatchFinished(
const css::frame::DispatchResultEvent& aResult)
override;
105 virtual void SAL_CALL disposing(
const css::lang::EventObject& aEvent)
override;
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)