LibreOffice Module framework (master) 1
|
Implementation of a service to make it easy to disable a whole suite of UNO commands in a batch - and have that act in-process. More...
#include <dispatchdisabler.hxx>
Public Member Functions | |
DispatchDisabler (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual void SAL_CALL | initialize (const ::css::uno::Sequence< ::css::uno::Any > &aArguments) 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::Sequence< ::css::uno::Reference< ::css::frame::XDispatch > > SAL_CALL | queryDispatches (const ::css::uno::Sequence< ::css::frame::DispatchDescriptor > &Requests) override |
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 ::css::uno::Reference< ::css::frame::XDispatchProvider > SAL_CALL | getMasterDispatchProvider () override |
virtual void SAL_CALL | setMasterDispatchProvider (const ::css::uno::Reference< ::css::frame::XDispatchProvider > &NewSupplier) override |
virtual ::css::uno::Sequence< OUString > SAL_CALL | getInterceptedURLs () override |
virtual ::css::uno::Type SAL_CALL | getElementType () override |
virtual ::sal_Bool SAL_CALL | hasElements () override |
virtual ::css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual ::css::uno::Sequence< OUString > SAL_CALL | getElementNames () 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 |
virtual void SAL_CALL | insertByName (const OUString &aName, const ::css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByName (const OUString &Name) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Attributes | |
std::set< OUString > | maDisabledURLs |
css::uno::Reference< css::frame::XDispatchProvider > | mxSlave |
css::uno::Reference< css::frame::XDispatchProvider > | mxMaster |
Implementation of a service to make it easy to disable a whole suite of UNO commands in a batch - and have that act in-process.
Often external re-use of LibreOffice wants a very cut-down set of functionality included, and disabling elements remotely one by one performs poorly.
Definition at line 34 of file dispatchdisabler.hxx.
DispatchDisabler::DispatchDisabler | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Definition at line 21 of file dispatchdisabler.cxx.
|
override |
Definition at line 111 of file dispatchdisabler.cxx.
|
override |
Definition at line 116 of file dispatchdisabler.cxx.
References getInterceptedURLs().
|
override |
Definition at line 99 of file dispatchdisabler.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 148 of file dispatchdisabler.cxx.
|
override |
Definition at line 88 of file dispatchdisabler.cxx.
References maDisabledURLs, and n.
Referenced by getElementNames().
|
override |
Definition at line 76 of file dispatchdisabler.cxx.
References mxMaster.
|
override |
Definition at line 65 of file dispatchdisabler.cxx.
References mxSlave.
|
overridevirtual |
Definition at line 158 of file dispatchdisabler.cxx.
|
overridevirtual |
Definition at line 121 of file dispatchdisabler.cxx.
References maDisabledURLs.
|
override |
Definition at line 105 of file dispatchdisabler.cxx.
References maDisabledURLs.
|
overridevirtual |
Definition at line 26 of file dispatchdisabler.cxx.
References aArguments, and maDisabledURLs.
|
overridevirtual |
Definition at line 134 of file dispatchdisabler.cxx.
References maDisabledURLs.
Referenced by replaceByName().
|
override |
Definition at line 39 of file dispatchdisabler.cxx.
References maDisabledURLs, and mxSlave.
Referenced by queryDispatches().
|
override |
Definition at line 52 of file dispatchdisabler.cxx.
References i, and queryDispatch().
|
overridevirtual |
Definition at line 139 of file dispatchdisabler.cxx.
References maDisabledURLs.
Referenced by replaceByName().
|
overridevirtual |
Definition at line 127 of file dispatchdisabler.cxx.
References insertByName(), and removeByName().
|
overridevirtual |
Definition at line 81 of file dispatchdisabler.cxx.
References mxMaster.
|
overridevirtual |
Definition at line 70 of file dispatchdisabler.cxx.
References mxSlave.
|
overridevirtual |
Definition at line 153 of file dispatchdisabler.cxx.
References sServiceName, and cppu::supportsService().
|
private |
Definition at line 41 of file dispatchdisabler.hxx.
Referenced by getInterceptedURLs(), hasByName(), hasElements(), initialize(), insertByName(), queryDispatch(), and removeByName().
|
private |
Definition at line 43 of file dispatchdisabler.hxx.
Referenced by getMasterDispatchProvider(), and setMasterDispatchProvider().
|
private |
Definition at line 42 of file dispatchdisabler.hxx.
Referenced by getSlaveDispatchProvider(), queryDispatch(), and setSlaveDispatchProvider().