22#include <com/sun/star/frame/XFrame.hpp>
23#include <com/sun/star/frame/XStatusbarController.hpp>
24#include <com/sun/star/frame/XUIControllerFactory.hpp>
25#include <com/sun/star/ui/XUIConfigurationListener.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
38class FrameworkStatusBar;
40 css::frame::XFrameActionListener,
41 css::lang::XComponent,
42 css::ui::XUIConfigurationListener >
48 StatusBarManager( css::uno::Reference< css::uno::XComponentContext > xContext,
49 css::uno::Reference< css::frame::XFrame > xFrame,
56 virtual void SAL_CALL
frameAction(
const css::frame::FrameActionEvent&
Action )
override;
59 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
62 virtual void SAL_CALL
elementInserted(
const css::ui::ConfigurationEvent& Event )
override;
63 virtual void SAL_CALL
elementRemoved(
const css::ui::ConfigurationEvent& Event )
override;
64 virtual void SAL_CALL
elementReplaced(
const css::ui::ConfigurationEvent& Event )
override;
67 void SAL_CALL
dispose()
override;
68 void SAL_CALL
addEventListener(
const css::uno::Reference< XEventListener >& xListener )
override;
69 void SAL_CALL
removeEventListener(
const css::uno::Reference< XEventListener >& xListener )
override;
71 void FillStatusBar(
const css::uno::Reference< css::container::XIndexAccess >& rStatusBarData );
94 css::uno::Reference< css::frame::XFrame >
m_xFrame;
98 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &Action) override
css::uno::Reference< css::frame::XUIControllerFactory > m_xStatusbarControllerFactory
void MouseButton(const MouseEvent &rMEvt, sal_Bool(SAL_CALL css::frame::XStatusbarController::*_pMethod)(const css::awt::MouseEvent &))
virtual ~StatusBarManager() override
void DataChanged(const DataChangedEvent &rDCEvt)
VclPtr< StatusBar > m_pStatusBar
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
void UserDraw(const UserDrawEvent &rUDEvt)
css::uno::Reference< css::uno::XComponentContext > m_xContext
bool m_bUpdateControllers
StatusBarControllerMap m_aControllerMap
virtual void SAL_CALL elementRemoved(const css::ui::ConfigurationEvent &Event) override
void Command(const CommandEvent &rEvt)
std::map< sal_uInt16, css::uno::Reference< css::frame::XStatusbarController > > StatusBarControllerMap
DECL_LINK(DoubleClick, StatusBar *, void)
css::uno::Reference< css::frame::XFrame > m_xFrame
void MouseButtonDown(const MouseEvent &rMEvt)
virtual void SAL_CALL elementReplaced(const css::ui::ConfigurationEvent &Event) override
DECL_LINK(Click, StatusBar *, void)
void MouseButtonUp(const MouseEvent &rMEvt)
comphelper::OInterfaceContainerHelper4< XEventListener > m_aListenerContainer
void SAL_CALL addEventListener(const css::uno::Reference< XEventListener > &xListener) override
void MouseMove(const MouseEvent &rMEvt)
void FillStatusBar(const css::uno::Reference< css::container::XIndexAccess > &rStatusBarData)
StatusBarManager(css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Reference< css::frame::XFrame > xFrame, StatusBar *pStatusBar)
bool m_bFrameActionRegistered
void SAL_CALL dispose() override
virtual void SAL_CALL elementInserted(const css::ui::ConfigurationEvent &Event) override
void SAL_CALL removeEventListener(const css::uno::Reference< XEventListener > &xListener) override
StatusBar * GetStatusBar() const