LibreOffice Module forms (master) 1
|
helper class for controls which allow some of their features to be intercepted by external instances More...
#include <controlfeatureinterception.hxx>
Public Member Functions | |
const UrlTransformer & | getTransformer () const |
retrieves our URL transformer, so our clients may use it, too More... | |
ControlFeatureInterception (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
void | registerDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) |
void | releaseDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) |
void | dispose () |
css::uno::Reference< css::frame::XDispatch > | queryDispatch (const css::util::URL &_rURL) |
queries the interceptor chain for the given dispatch, with a blank target frame and no frame search flags More... | |
css::uno::Reference< css::frame::XDispatch > | queryDispatch (const char *_pAsciiURL) |
queries the interceptor chain for the URL given as ASCII string, with a blank target frame and no frame search flags More... | |
Private Attributes | |
css::uno::Reference< css::frame::XDispatchProviderInterceptor > | m_xFirstDispatchInterceptor |
::std::unique_ptr< UrlTransformer > | m_pUrlTransformer |
helper class for controls which allow some of their features to be intercepted by external instances
For using this class, instantiate it as member, derive yourself from <type scope="css::frame">XDispatchProviderInterception</type>, and forward all respective methods to this member.
Additionally, don't forget to call <member>dispose</member> when your class is disposed itself.
Definition at line 47 of file controlfeatureinterception.hxx.
frm::ControlFeatureInterception::ControlFeatureInterception | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxORB | ) |
Definition at line 34 of file controlfeatureinterception.cxx.
void frm::ControlFeatureInterception::dispose | ( | void | ) |
Definition at line 109 of file controlfeatureinterception.cxx.
References m_xFirstDispatchInterceptor.
Referenced by frm::OFormNavigationHelper::dispose(), and frm::OClickableImageBaseControl::disposing().
|
inline |
retrieves our URL transformer, so our clients may use it, too
Definition at line 57 of file controlfeatureinterception.hxx.
References m_pUrlTransformer.
Reference< XDispatch > frm::ControlFeatureInterception::queryDispatch | ( | const char * | _pAsciiURL | ) |
queries the interceptor chain for the URL given as ASCII string, with a blank target frame and no frame search flags
Definition at line 138 of file controlfeatureinterception.cxx.
References m_pUrlTransformer, and queryDispatch().
css::uno::Reference< css::frame::XDispatch > frm::ControlFeatureInterception::queryDispatch | ( | const css::util::URL & | _rURL | ) |
queries the interceptor chain for the given dispatch, with a blank target frame and no frame search flags
Referenced by queryDispatch(), and frm::OFormNavigationHelper::queryDispatch().
void frm::ControlFeatureInterception::registerDispatchProviderInterceptor | ( | const css::uno::Reference< css::frame::XDispatchProviderInterceptor > & | Interceptor | ) |
css::uno::RuntimeException |
Definition at line 40 of file controlfeatureinterception.cxx.
References m_xFirstDispatchInterceptor.
Referenced by frm::OClickableImageBaseControl::registerDispatchProviderInterceptor(), and frm::OFormNavigationHelper::registerDispatchProviderInterceptor().
void frm::ControlFeatureInterception::releaseDispatchProviderInterceptor | ( | const css::uno::Reference< css::frame::XDispatchProviderInterceptor > & | Interceptor | ) |
css::uno::RuntimeException |
Definition at line 62 of file controlfeatureinterception.cxx.
References m_xFirstDispatchInterceptor.
Referenced by frm::OClickableImageBaseControl::releaseDispatchProviderInterceptor(), and frm::OFormNavigationHelper::releaseDispatchProviderInterceptor().
|
private |
Definition at line 52 of file controlfeatureinterception.hxx.
Referenced by getTransformer(), and queryDispatch().
|
private |
Definition at line 51 of file controlfeatureinterception.hxx.
Referenced by dispose(), registerDispatchProviderInterceptor(), and releaseDispatchProviderInterceptor().