LibreOffice Module svtools (master) 1
|
#include <statusbarcontroller.hxx>
Classes | |
struct | Listener |
Public Member Functions | |
StatusbarController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &xFrame, OUString aCommandURL, unsigned short nID) | |
StatusbarController () | |
virtual | ~StatusbarController () override |
css::uno::Reference< css::frame::XFrame > | getFrameInterface () const |
css::uno::Reference< css::util::XURLTransformer > | getURLTransformer () const |
::tools::Rectangle | getControlRect () const |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void SAL_CALL | update () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | statusChanged (const css::frame::FeatureStateEvent &Event) override |
virtual sal_Bool SAL_CALL | mouseButtonDown (const css::awt::MouseEvent &aMouseEvent) override |
virtual sal_Bool SAL_CALL | mouseMove (const css::awt::MouseEvent &aMouseEvent) override |
virtual sal_Bool SAL_CALL | mouseButtonUp (const css::awt::MouseEvent &aMouseEvent) override |
virtual void SAL_CALL | command (const css::awt::Point &aPos, ::sal_Int32 nCommand, sal_Bool bMouseEvent, const css::uno::Any &aData) override |
virtual void SAL_CALL | paint (const css::uno::Reference< css::awt::XGraphics > &xGraphics, const css::awt::Rectangle &rOutputRectangle, ::sal_Int32 nStyle) override |
virtual void SAL_CALL | click (const css::awt::Point &aPos) override |
virtual void SAL_CALL | doubleClick (const css::awt::Point &aPos) override |
![]() | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Protected Types | |
typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > | URLToDispatchMap |
Protected Member Functions | |
void | addStatusListener (const OUString &aCommandURL) |
void | bindListener () |
void | execute (const css::uno::Sequence< css::beans::PropertyValue > &aArgs) |
void | execute (const OUString &aCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) |
![]() | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes | |
bool | m_bInitialized: 1 |
bool | m_bDisposed: 1 |
unsigned short | m_nID |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
css::uno::Reference< css::awt::XWindow > | m_xParentWindow |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_aCommandURL |
URLToDispatchMap | m_aListenerMap |
comphelper::OMultiTypeInterfaceContainerHelper2 | m_aListenerContainer |
css::uno::Reference< css::util::XURLTransformer > | m_xURLTransformer |
container for ALL Listener More... | |
css::uno::Reference< css::ui::XStatusbarItem > | m_xStatusbarItem |
![]() | |
mutable::osl::Mutex | m_aMutex |
![]() | |
oslInterlockedCount | m_refCount |
Definition at line 42 of file statusbarcontroller.hxx.
|
protected |
Definition at line 107 of file statusbarcontroller.hxx.
svt::StatusbarController::StatusbarController | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const css::uno::Reference< css::frame::XFrame > & | xFrame, | ||
OUString | aCommandURL, | ||
unsigned short | nID | ||
) |
References queryInterface().
svt::StatusbarController::StatusbarController | ( | ) |
Definition at line 63 of file statusbarcontroller.cxx.
References m_aMutex, and m_bDisposed.
|
overridevirtual |
Definition at line 72 of file statusbarcontroller.cxx.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 111 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 221 of file statusbarcontroller.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), and m_aListenerContainer.
|
protected |
Definition at line 329 of file statusbarcontroller.cxx.
References aTargetURL, Exception, getURLTransformer(), m_aListenerMap, m_bInitialized, m_xContext, m_xFrame, and xDispatch.
|
protected |
Definition at line 395 of file statusbarcontroller.cxx.
References Any, aTargetURL, Exception, getURLTransformer(), m_aCommandURL, m_aListenerMap, m_bInitialized, m_xContext, m_xFrame, and xDispatch.
Referenced by update().
|
overridevirtual |
Definition at line 314 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 299 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 175 of file statusbarcontroller.cxx.
References aEvent, aTargetURL, comphelper::OMultiTypeInterfaceContainerHelper2::disposeAndClear(), Exception, getURLTransformer(), m_aListenerContainer, m_aListenerMap, m_bDisposed, m_xContext, m_xFrame, m_xParentWindow, m_xStatusbarItem, m_xURLTransformer, and xDispatch.
|
overridevirtual |
Definition at line 232 of file statusbarcontroller.cxx.
References m_aListenerMap, m_bDisposed, m_xFrame, Source, xDispatch, and xFrame.
|
overridevirtual |
Definition at line 318 of file statusbarcontroller.cxx.
References execute(), and m_bDisposed.
|
protected |
Definition at line 497 of file statusbarcontroller.cxx.
References aTargetURL, getURLTransformer(), m_aCommandURL, m_aListenerMap, m_bDisposed, m_bInitialized, m_xContext, m_xFrame, and xDispatch.
Referenced by doubleClick().
|
protected |
tools::Rectangle svt::StatusbarController::getControlRect | ( | ) | const |
Definition at line 476 of file statusbarcontroller.cxx.
References VCLUnoHelper::GetWindow(), m_bDisposed, m_nID, and m_xParentWindow.
Reference< XFrame > svt::StatusbarController::getFrameInterface | ( | ) | const |
Definition at line 76 of file statusbarcontroller.cxx.
References m_xFrame.
Reference< XURLTransformer > svt::StatusbarController::getURLTransformer | ( | ) | const |
Definition at line 82 of file statusbarcontroller.cxx.
References m_xContext, and m_xURLTransformer.
Referenced by addStatusListener(), bindListener(), dispose(), and execute().
|
overridevirtual |
Definition at line 121 of file statusbarcontroller.cxx.
References aArguments, comphelper::getComponentContext(), m_aCommandURL, m_aListenerMap, m_bDisposed, m_bInitialized, m_nID, m_xContext, m_xFrame, m_xParentWindow, and m_xStatusbarItem.
|
overridevirtual |
Definition at line 281 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 293 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 287 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 307 of file statusbarcontroller.cxx.
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Definition at line 94 of file statusbarcontroller.cxx.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 116 of file statusbarcontroller.cxx.
|
overridevirtual |
Definition at line 226 of file statusbarcontroller.cxx.
References m_aListenerContainer, and comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface().
|
overridevirtual |
Definition at line 260 of file statusbarcontroller.cxx.
References VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), m_bDisposed, m_nID, m_xParentWindow, and StatusBar::SetItemText().
|
overridevirtual |
Definition at line 162 of file statusbarcontroller.cxx.
References bindListener(), and m_bDisposed.
|
protected |
Definition at line 124 of file statusbarcontroller.hxx.
Referenced by bindListener(), execute(), and initialize().
|
protected |
Definition at line 126 of file statusbarcontroller.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
protected |
Definition at line 125 of file statusbarcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispose(), disposing(), execute(), and initialize().
|
protected |
Definition at line 119 of file statusbarcontroller.hxx.
Referenced by dispose(), disposing(), doubleClick(), execute(), getControlRect(), initialize(), statusChanged(), and update().
|
protected |
Definition at line 118 of file statusbarcontroller.hxx.
Referenced by addStatusListener(), bindListener(), execute(), and initialize().
|
protected |
Definition at line 120 of file statusbarcontroller.hxx.
Referenced by getControlRect(), initialize(), and statusChanged().
|
protected |
Definition at line 123 of file statusbarcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispose(), execute(), getURLTransformer(), and initialize().
|
protected |
Definition at line 121 of file statusbarcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispose(), disposing(), execute(), getFrameInterface(), and initialize().
|
protected |
Definition at line 122 of file statusbarcontroller.hxx.
Referenced by dispose(), getControlRect(), initialize(), and statusChanged().
|
protected |
Definition at line 128 of file statusbarcontroller.hxx.
Referenced by dispose(), and initialize().
|
mutableprotected |
container for ALL Listener
Definition at line 127 of file statusbarcontroller.hxx.
Referenced by dispose(), and getURLTransformer().