20#ifndef INCLUDED_SFX2_SOURCE_INC_MACROLOADER_HXX
21#define INCLUDED_SFX2_SOURCE_INC_MACROLOADER_HXX
25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/frame/DispatchDescriptor.hpp>
28#include <com/sun/star/frame/XDispatch.hpp>
29#include <com/sun/star/frame/XDispatchProvider.hpp>
30#include <com/sun/star/frame/XFrame.hpp>
31#include <com/sun/star/frame/XNotifyingDispatch.hpp>
32#include <com/sun/star/frame/XDispatchResultListener.hpp>
33#include <com/sun/star/frame/XSynchronousDispatch.hpp>
34#include <com/sun/star/util/URL.hpp>
43 css::frame::XDispatchProvider,
44 css::frame::XNotifyingDispatch,
45 css::frame::XSynchronousDispatch,
46 css::lang::XServiceInfo>
48 css::uno::WeakReference < css::frame::XFrame >
m_xFrame;
54 SfxMacroLoader(
const css::uno::Sequence< css::uno::Any >& aArguments);
66 virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL
queryDispatch(
67 const css::util::URL& aURL,
const OUString& sTargetFrameName,
68 sal_Int32 eSearchFlags )
override;
70 virtual css::uno::Sequence< css::uno::Reference < css::frame::XDispatch > > SAL_CALL
queryDispatches(
71 const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor )
override;
73 virtual void SAL_CALL
dispatchWithNotification(
const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArgs,
const css::uno::Reference< css::frame::XDispatchResultListener >& Listener )
override;
75 virtual void SAL_CALL
dispatch(
const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
override;
77 virtual css::uno::Any SAL_CALL
dispatchWithReturnValue(
const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
override;
79 virtual void SAL_CALL
addStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& xControl,
const css::util::URL& aURL )
override;
81 virtual void SAL_CALL
removeStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& xControl,
const css::util::URL& aURL )
override;
css::uno::WeakReference< css::frame::XFrame > m_xFrame
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
static SfxObjectShell * GetObjectShell(const css::uno::Reference< css::frame::XFrame > &xFrame)
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &seqDescriptor) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SfxObjectShell * GetObjectShell_Impl()
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &sTargetFrameName, sal_Int32 eSearchFlags) override
virtual void SAL_CALL dispatch(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArgs) override
virtual void SAL_CALL dispatchWithNotification(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArgs, const css::uno::Reference< css::frame::XDispatchResultListener > &Listener) override
SfxMacroLoader(const css::uno::Sequence< css::uno::Any > &aArguments)
virtual void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
static ErrCode loadMacro(const OUString &aURL, css::uno::Any &rRetval, SfxObjectShell *pDoc)
virtual css::uno::Any SAL_CALL dispatchWithReturnValue(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArgs) override