22#include <com/sun/star/uno/XComponentContext.hpp>
23#include <com/sun/star/lang/XInitialization.hpp>
24#include <com/sun/star/frame/XFrame.hpp>
25#include <com/sun/star/frame/XFrameActionListener.hpp>
26#include <com/sun/star/frame/XTitleChangeListener.hpp>
39 css::lang::XInitialization
40 , css::frame::XTitleChangeListener
41 , css::frame::XFrameActionListener >
61 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
64 css::uno::WeakReference< css::frame::XFrame >
m_xFrame;
71 TitleBarUpdate(css::uno::Reference< css::uno::XComponentContext > xContext);
77 virtual void SAL_CALL
initialize(
const css::uno::Sequence< css::uno::Any >& lArguments)
override;
80 virtual void SAL_CALL
frameAction(
const css::frame::FrameActionEvent& aEvent)
override;
83 virtual void SAL_CALL
titleChanged(
const css::frame::TitleChangedEvent& aEvent)
override;
86 virtual void SAL_CALL
disposing(
const css::lang::EventObject& aEvent)
override;
124 void impl_updateIcon(
const css::uno::Reference< css::frame::XFrame >& xFrame);
132 void impl_updateTitle(
const css::uno::Reference< css::frame::XFrame >& xFrame);
css::uno::WeakReference< css::frame::XFrame > m_xFrame
reference to the frame which was created by the office himself
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &lArguments) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
may we need a uno service manager to create own services
void impl_updateTitle(const css::uno::Reference< css::frame::XFrame > &xFrame)
gets the current title from the frame and set it on the window.
virtual void SAL_CALL titleChanged(const css::frame::TitleChangedEvent &aEvent) override
virtual ~TitleBarUpdate() override
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &aEvent) override
virtual void SAL_CALL disposing(const css::lang::EventObject &aEvent) override
void impl_updateApplicationID(const css::uno::Reference< css::frame::XFrame > &xFrame)
void impl_forceUpdate()
set a new icon and title on the title bar of our connected frame window.
bool implst_getModuleInfo(const css::uno::Reference< css::frame::XFrame > &xFrame, TModuleInfo &rInfo)
identify the application module, which is used behind the component of our frame.
void impl_updateIcon(const css::uno::Reference< css::frame::XFrame > &xFrame)
identify the current component (inside the connected frame) and set the right module icon on the titl...
TitleBarUpdate(css::uno::Reference< css::uno::XComponentContext > xContext)
::sal_Int32 nIcon
configured icon for this module
OUString sID
internal id of this module