LibreOffice Module framework (master) 1
|
#include <statusbarmanager.hxx>
Public Member Functions | |
StatusBarManager (css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::frame::XFrame > xFrame, StatusBar *pStatusBar) | |
virtual | ~StatusBarManager () override |
StatusBar * | GetStatusBar () const |
virtual void SAL_CALL | frameAction (const css::frame::FrameActionEvent &Action) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | elementInserted (const css::ui::ConfigurationEvent &Event) override |
virtual void SAL_CALL | elementRemoved (const css::ui::ConfigurationEvent &Event) override |
virtual void SAL_CALL | elementReplaced (const css::ui::ConfigurationEvent &Event) override |
void SAL_CALL | dispose () override |
void SAL_CALL | addEventListener (const css::uno::Reference< XEventListener > &xListener) override |
void SAL_CALL | removeEventListener (const css::uno::Reference< XEventListener > &xListener) override |
void | FillStatusBar (const css::uno::Reference< css::container::XIndexAccess > &rStatusBarData) |
Private Types | |
typedef std::map< sal_uInt16, css::uno::Reference< css::frame::XStatusbarController > > | StatusBarControllerMap |
Private Member Functions | |
void | DataChanged (const DataChangedEvent &rDCEvt) |
void | UserDraw (const UserDrawEvent &rUDEvt) |
void | Command (const CommandEvent &rEvt) |
void | MouseMove (const MouseEvent &rMEvt) |
void | MouseButtonDown (const MouseEvent &rMEvt) |
void | MouseButtonUp (const MouseEvent &rMEvt) |
DECL_LINK (Click, StatusBar *, void) | |
DECL_LINK (DoubleClick, StatusBar *, void) | |
void | RemoveControllers () |
void | CreateControllers () |
void | UpdateControllers () |
void | MouseButton (const MouseEvent &rMEvt, sal_Bool(SAL_CALL css::frame::XStatusbarController::*_pMethod)(const css::awt::MouseEvent &)) |
Private Attributes | |
bool | m_bDisposed: 1 |
bool | m_bFrameActionRegistered: 1 |
bool | m_bUpdateControllers: 1 |
VclPtr< StatusBar > | m_pStatusBar |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
StatusBarControllerMap | m_aControllerMap |
std::mutex | m_mutex |
comphelper::OInterfaceContainerHelper4< XEventListener > | m_aListenerContainer |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::frame::XUIControllerFactory > | m_xStatusbarControllerFactory |
Friends | |
class | FrameworkStatusBar |
Definition at line 39 of file statusbarmanager.hxx.
|
private |
Definition at line 88 of file statusbarmanager.hxx.
framework::StatusBarManager::StatusBarManager | ( | css::uno::Reference< css::uno::XComponentContext > | xContext, |
css::uno::Reference< css::frame::XFrame > | xFrame, | ||
StatusBar * | pStatusBar | ||
) |
Definition at line 123 of file statusbarmanager.cxx.
References LINK, m_pStatusBar, m_xFrame, and m_xStatusbarControllerFactory.
|
overridevirtual |
Definition at line 143 of file statusbarmanager.cxx.
|
override |
Definition at line 220 of file statusbarmanager.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aListenerContainer, m_bDisposed, and m_mutex.
|
private |
Definition at line 548 of file statusbarmanager.cxx.
References CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), m_aControllerMap, m_bDisposed, m_pStatusBar, nId, Point::X(), xController, and Point::Y().
Referenced by framework::FrameworkStatusBar::Command().
|
private |
Definition at line 286 of file statusbarmanager.cxx.
References comphelper::containerToSequence(), framework::CreateStatusBarController(), VCLUnoHelper::GetInterface(), i, m_aControllerMap, m_bFrameActionRegistered, m_pStatusBar, m_xContext, m_xFrame, m_xStatusbarControllerFactory, nId, and xController.
Referenced by FillStatusBar().
|
private |
Definition at line 500 of file statusbarmanager.cxx.
References DataChangedEvent::GetFlags(), DataChangedEvent::GetType(), and m_xFrame.
Referenced by framework::FrameworkStatusBar::DataChanged().
|
private |
|
private |
|
override |
Definition at line 176 of file statusbarmanager.cxx.
References aEvent, VclPtr< class reference_type >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), m_aListenerContainer, m_bDisposed, m_bFrameActionRegistered, m_mutex, m_pStatusBar, m_xContext, m_xFrame, n, and RemoveControllers().
|
overridevirtual |
Definition at line 160 of file statusbarmanager.cxx.
References m_bDisposed, m_xContext, m_xFrame, RemoveControllers(), and Source.
|
overridevirtual |
Definition at line 239 of file statusbarmanager.cxx.
References m_bDisposed.
|
overridevirtual |
Definition at line 247 of file statusbarmanager.cxx.
References m_bDisposed.
|
overridevirtual |
Definition at line 255 of file statusbarmanager.cxx.
References m_bDisposed.
void framework::StatusBarManager::FillStatusBar | ( | const css::uno::Reference< css::container::XIndexAccess > & | rStatusBarData | ) |
Definition at line 384 of file statusbarmanager.cxx.
References framework::MergeStatusbarInstruction::aMergeCommand, framework::MergeStatusbarInstruction::aMergeCommandParameter, framework::MergeStatusbarInstruction::aMergeContext, framework::MergeStatusbarInstruction::aMergePoint, framework::MergeStatusbarInstruction::aMergeStatusbarItems, aProperties, framework::StatusbarMerger::ConvertSeqSeqToVector(), CreateControllers(), framework::StatusbarMerger::FindReferencePos(), vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetLabelForCommand(), i, framework::StatusbarMerger::IsCorrectContext(), m_aControllerMap, m_bDisposed, m_pStatusBar, n, nCount, nId, nType, framework::StatusbarMerger::ProcessMergeFallback(), framework::StatusbarMerger::ProcessMergeOperation(), RemoveControllers(), STATUSBAR_ITEM_NOTFOUND, and UpdateControllers().
Referenced by framework::StatusBarWrapper::updateSettings().
|
overridevirtual |
Definition at line 153 of file statusbarmanager.cxx.
References Action::Action(), and UpdateControllers().
StatusBar * framework::StatusBarManager::GetStatusBar | ( | ) | const |
Definition at line 147 of file statusbarmanager.cxx.
References m_pStatusBar.
Referenced by framework::StatusBarWrapper::getRealInterface().
|
private |
Definition at line 578 of file statusbarmanager.cxx.
References MouseEvent::GetButtons(), MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), m_aControllerMap, m_bDisposed, m_pStatusBar, nId, Point::X(), xController, and Point::Y().
Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 602 of file statusbarmanager.cxx.
References MouseButton().
Referenced by framework::FrameworkStatusBar::MouseButtonDown().
|
private |
Definition at line 607 of file statusbarmanager.cxx.
References MouseButton().
Referenced by framework::FrameworkStatusBar::MouseButtonUp().
|
private |
Definition at line 573 of file statusbarmanager.cxx.
References MouseButton().
Referenced by framework::FrameworkStatusBar::MouseMove().
|
private |
Definition at line 275 of file statusbarmanager.cxx.
References DBG_TESTSOLARMUTEX, m_aControllerMap, and m_bDisposed.
Referenced by dispose(), disposing(), and FillStatusBar().
|
override |
Definition at line 232 of file statusbarmanager.cxx.
References m_aListenerContainer, m_mutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
private |
Definition at line 263 of file statusbarmanager.cxx.
References m_aControllerMap, and m_bUpdateControllers.
Referenced by FillStatusBar(), and frameAction().
|
private |
Definition at line 522 of file statusbarmanager.cxx.
References OutputDevice::CreateUnoGraphics(), tools::Rectangle::GetHeight(), UserDrawEvent::GetItemId(), UserDrawEvent::GetRect(), UserDrawEvent::GetRenderContext(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aControllerMap, m_bDisposed, nId, tools::Rectangle::Top(), and xController.
Referenced by framework::FrameworkStatusBar::UserDraw().
|
friend |
Definition at line 45 of file statusbarmanager.hxx.
|
private |
Definition at line 95 of file statusbarmanager.hxx.
Referenced by Command(), CreateControllers(), FillStatusBar(), MouseButton(), RemoveControllers(), UpdateControllers(), and UserDraw().
|
private |
Definition at line 97 of file statusbarmanager.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 90 of file statusbarmanager.hxx.
Referenced by addEventListener(), Command(), dispose(), disposing(), elementInserted(), elementRemoved(), elementReplaced(), FillStatusBar(), MouseButton(), RemoveControllers(), and UserDraw().
|
private |
Definition at line 91 of file statusbarmanager.hxx.
Referenced by CreateControllers(), and dispose().
|
private |
Definition at line 92 of file statusbarmanager.hxx.
Referenced by UpdateControllers().
|
private |
Definition at line 96 of file statusbarmanager.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
Definition at line 93 of file statusbarmanager.hxx.
Referenced by Command(), CreateControllers(), dispose(), FillStatusBar(), GetStatusBar(), MouseButton(), and StatusBarManager().
|
private |
Definition at line 98 of file statusbarmanager.hxx.
Referenced by CreateControllers(), dispose(), and disposing().
|
private |
Definition at line 94 of file statusbarmanager.hxx.
Referenced by CreateControllers(), DataChanged(), dispose(), and disposing().
|
private |
Definition at line 99 of file statusbarmanager.hxx.
Referenced by CreateControllers(), and StatusBarManager().