15#include <com/sun/star/lang/XServiceInfo.hpp>
16#include <com/sun/star/lang/XInitialization.hpp>
17#include <com/sun/star/uno/XComponentContext.hpp>
18#include <com/sun/star/container/XNameContainer.hpp>
19#include <com/sun/star/frame/XDispatch.hpp>
20#include <com/sun/star/frame/XInterceptorInfo.hpp>
21#include <com/sun/star/frame/XDispatchProvider.hpp>
22#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
35 css::lang::XInitialization,
36 css::container::XNameContainer,
37 css::frame::XDispatchProviderInterceptor,
38 css::frame::XInterceptorInfo,
39 css::lang::XServiceInfo >
42 css::uno::Reference< css::frame::XDispatchProvider >
mxSlave;
43 css::uno::Reference< css::frame::XDispatchProvider >
mxMaster;
45 DispatchDisabler(
const css::uno::Reference< css::uno::XComponentContext >& rxContext);
48 virtual void SAL_CALL
initialize( const ::css::uno::Sequence< ::css::uno::Any >& aArguments )
override;
51 virtual ::css::uno::Reference< ::css::frame::XDispatch > SAL_CALL
53 const OUString& TargetFrameName,
54 ::sal_Int32 SearchFlags )
override;
55 virtual ::css::uno::Sequence< ::css::uno::Reference< ::css::frame::XDispatch > > SAL_CALL
56 queryDispatches( const ::css::uno::Sequence< ::css::frame::DispatchDescriptor >& Requests )
override;
59 virtual ::css::uno::Reference< ::css::frame::XDispatchProvider > SAL_CALL
62 setSlaveDispatchProvider( const ::css::uno::Reference< ::css::frame::XDispatchProvider >& NewDispatchProvider )
override;
63 virtual ::css::uno::Reference< ::css::frame::XDispatchProvider > SAL_CALL
69 virtual ::css::uno::Sequence< OUString > SAL_CALL
77 virtual ::css::uno::Any SAL_CALL
getByName(
const OUString& aName )
override;
78 virtual ::css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
82 virtual void SAL_CALL
replaceByName(
const OUString& aName, const ::css::uno::Any& aElement )
override;
85 virtual void SAL_CALL
insertByName(
const OUString& aName, const ::css::uno::Any& aElement )
override;
86 virtual void SAL_CALL
removeByName(
const OUString& Name )
override;
Implementation of a service to make it easy to disable a whole suite of UNO commands in a batch - and...
css::uno::Reference< css::frame::XDispatchProvider > mxMaster
virtual void SAL_CALL initialize(const ::css::uno::Sequence< ::css::uno::Any > &aArguments) override
virtual ::css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual ::css::uno::Reference< ::css::frame::XDispatch > SAL_CALL queryDispatch(const ::css::util::URL &URL, const OUString &TargetFrameName, ::sal_Int32 SearchFlags) override
virtual ::css::uno::Any SAL_CALL getByName(const OUString &aName) override
virtual ::css::uno::Sequence< OUString > SAL_CALL getInterceptedURLs() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual void SAL_CALL insertByName(const OUString &aName, const ::css::uno::Any &aElement) override
virtual void SAL_CALL removeByName(const OUString &Name) override
std::set< OUString > maDisabledURLs
virtual ::css::uno::Reference< ::css::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider() override
virtual void SAL_CALL setSlaveDispatchProvider(const ::css::uno::Reference< ::css::frame::XDispatchProvider > &NewDispatchProvider) override
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual void SAL_CALL replaceByName(const OUString &aName, const ::css::uno::Any &aElement) override
DispatchDisabler(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual OUString SAL_CALL getImplementationName() override
virtual ::sal_Bool SAL_CALL hasElements() override
css::uno::Reference< css::frame::XDispatchProvider > mxSlave
virtual ::css::uno::Reference< ::css::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider() override
virtual ::css::uno::Type SAL_CALL getElementType() override
virtual ::css::uno::Sequence< ::css::uno::Reference< ::css::frame::XDispatch > > SAL_CALL queryDispatches(const ::css::uno::Sequence< ::css::frame::DispatchDescriptor > &Requests) override
virtual void SAL_CALL setMasterDispatchProvider(const ::css::uno::Reference< ::css::frame::XDispatchProvider > &NewSupplier) override