LibreOffice Module framework (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
framework::StatusBarManager Class Referencefinal

#include <statusbarmanager.hxx>

Inheritance diagram for framework::StatusBarManager:
[legend]
Collaboration diagram for framework::StatusBarManager:
[legend]

Public Member Functions

 StatusBarManager (css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::frame::XFrame > xFrame, StatusBar *pStatusBar)
 
virtual ~StatusBarManager () override
 
StatusBarGetStatusBar () 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< StatusBarm_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
 

Detailed Description

Definition at line 39 of file statusbarmanager.hxx.

Member Typedef Documentation

◆ StatusBarControllerMap

typedef std::map< sal_uInt16, css::uno::Reference< css::frame::XStatusbarController > > framework::StatusBarManager::StatusBarControllerMap
private

Definition at line 88 of file statusbarmanager.hxx.

Constructor & Destructor Documentation

◆ StatusBarManager()

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.

◆ ~StatusBarManager()

framework::StatusBarManager::~StatusBarManager ( )
overridevirtual

Definition at line 143 of file statusbarmanager.cxx.

Member Function Documentation

◆ addEventListener()

void SAL_CALL framework::StatusBarManager::addEventListener ( const css::uno::Reference< XEventListener > &  xListener)
override

◆ Command()

void framework::StatusBarManager::Command ( const CommandEvent rEvt)
private

◆ CreateControllers()

void framework::StatusBarManager::CreateControllers ( )
private

◆ DataChanged()

void framework::StatusBarManager::DataChanged ( const DataChangedEvent rDCEvt)
private

◆ DECL_LINK() [1/2]

framework::StatusBarManager::DECL_LINK ( Click  ,
StatusBar ,
void   
)
private

◆ DECL_LINK() [2/2]

framework::StatusBarManager::DECL_LINK ( DoubleClick  ,
StatusBar ,
void   
)
private

◆ dispose()

void SAL_CALL framework::StatusBarManager::dispose ( void  )
override

◆ disposing()

void SAL_CALL framework::StatusBarManager::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 160 of file statusbarmanager.cxx.

References m_bDisposed, m_xContext, m_xFrame, RemoveControllers(), and Source.

◆ elementInserted()

void SAL_CALL framework::StatusBarManager::elementInserted ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

Definition at line 239 of file statusbarmanager.cxx.

References m_bDisposed.

◆ elementRemoved()

void SAL_CALL framework::StatusBarManager::elementRemoved ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

Definition at line 247 of file statusbarmanager.cxx.

References m_bDisposed.

◆ elementReplaced()

void SAL_CALL framework::StatusBarManager::elementReplaced ( const css::ui::ConfigurationEvent &  Event)
overridevirtual

Definition at line 255 of file statusbarmanager.cxx.

References m_bDisposed.

◆ FillStatusBar()

void framework::StatusBarManager::FillStatusBar ( const css::uno::Reference< css::container::XIndexAccess > &  rStatusBarData)

◆ frameAction()

void framework::StatusBarManager::frameAction ( const css::frame::FrameActionEvent &  Action)
overridevirtual

Definition at line 153 of file statusbarmanager.cxx.

References Action::Action(), and UpdateControllers().

◆ GetStatusBar()

StatusBar * framework::StatusBarManager::GetStatusBar ( ) const

Definition at line 147 of file statusbarmanager.cxx.

References m_pStatusBar.

Referenced by framework::StatusBarWrapper::getRealInterface().

◆ MouseButton()

void framework::StatusBarManager::MouseButton ( const MouseEvent rMEvt,
sal_Bool(SAL_CALL css::frame::XStatusbarController::*)(const css::awt::MouseEvent &)  _pMethod 
)
private

◆ MouseButtonDown()

void framework::StatusBarManager::MouseButtonDown ( const MouseEvent rMEvt)
private

Definition at line 602 of file statusbarmanager.cxx.

References MouseButton().

Referenced by framework::FrameworkStatusBar::MouseButtonDown().

◆ MouseButtonUp()

void framework::StatusBarManager::MouseButtonUp ( const MouseEvent rMEvt)
private

Definition at line 607 of file statusbarmanager.cxx.

References MouseButton().

Referenced by framework::FrameworkStatusBar::MouseButtonUp().

◆ MouseMove()

void framework::StatusBarManager::MouseMove ( const MouseEvent rMEvt)
private

Definition at line 573 of file statusbarmanager.cxx.

References MouseButton().

Referenced by framework::FrameworkStatusBar::MouseMove().

◆ RemoveControllers()

void framework::StatusBarManager::RemoveControllers ( )
private

Definition at line 275 of file statusbarmanager.cxx.

References DBG_TESTSOLARMUTEX, m_aControllerMap, and m_bDisposed.

Referenced by dispose(), disposing(), and FillStatusBar().

◆ removeEventListener()

void SAL_CALL framework::StatusBarManager::removeEventListener ( const css::uno::Reference< XEventListener > &  xListener)
override

◆ UpdateControllers()

void framework::StatusBarManager::UpdateControllers ( )
private

Definition at line 263 of file statusbarmanager.cxx.

References m_aControllerMap, and m_bUpdateControllers.

Referenced by FillStatusBar(), and frameAction().

◆ UserDraw()

void framework::StatusBarManager::UserDraw ( const UserDrawEvent rUDEvt)
private

Friends And Related Function Documentation

◆ FrameworkStatusBar

friend class FrameworkStatusBar
friend

Definition at line 45 of file statusbarmanager.hxx.

Member Data Documentation

◆ m_aControllerMap

StatusBarControllerMap framework::StatusBarManager::m_aControllerMap
private

◆ m_aListenerContainer

comphelper::OInterfaceContainerHelper4<XEventListener> framework::StatusBarManager::m_aListenerContainer
private

Definition at line 97 of file statusbarmanager.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_bDisposed

bool framework::StatusBarManager::m_bDisposed
private

◆ m_bFrameActionRegistered

bool framework::StatusBarManager::m_bFrameActionRegistered
private

Definition at line 91 of file statusbarmanager.hxx.

Referenced by CreateControllers(), and dispose().

◆ m_bUpdateControllers

bool framework::StatusBarManager::m_bUpdateControllers
private

Definition at line 92 of file statusbarmanager.hxx.

Referenced by UpdateControllers().

◆ m_mutex

std::mutex framework::StatusBarManager::m_mutex
private

Definition at line 96 of file statusbarmanager.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_pStatusBar

VclPtr<StatusBar> framework::StatusBarManager::m_pStatusBar
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::StatusBarManager::m_xContext
private

Definition at line 98 of file statusbarmanager.hxx.

Referenced by CreateControllers(), dispose(), and disposing().

◆ m_xFrame

css::uno::Reference< css::frame::XFrame > framework::StatusBarManager::m_xFrame
private

Definition at line 94 of file statusbarmanager.hxx.

Referenced by CreateControllers(), DataChanged(), dispose(), and disposing().

◆ m_xStatusbarControllerFactory

css::uno::Reference< css::frame::XUIControllerFactory > framework::StatusBarManager::m_xStatusbarControllerFactory
private

Definition at line 99 of file statusbarmanager.hxx.

Referenced by CreateControllers(), and StatusBarManager().


The documentation for this class was generated from the following files: