9#ifndef INCLUDED_SFX2_INFOBAR_HXX
10#define INCLUDED_SFX2_INFOBAR_HXX
78 void SetCloseButtonImage();
83 bool bShowCloseButton);
85 virtual void Layout()
override;
87 virtual void dispose()
override;
89 const OUString&
getId()
const {
return m_sId; }
90 void Update(
const OUString& sPrimaryMessage,
const OUString& sSecondaryMessage,
102 weld::Button& addButton(
const OUString* pCommand =
nullptr);
123 virtual void dispose()
override;
126 const OUString& sSecondaryMessage,
InfobarType ibType,
127 bool bShowCloseButton);
135 virtual void Resize()
override;
OUString msPrimaryMessage
InfobarType maInfobarType
OUString msSecondaryMessage
SfxChildWindow for positioning the InfoBar in the view.
SfxBindings * m_pBindings
SFX_DECL_CHILDWINDOW_WITHID(SfxInfoBarContainerChild)
VclPtr< SfxInfoBarWindow > appendInfoBar(const OUString &sId, const OUString &sPrimaryMessage, const OUString &sSecondaryMessage, InfobarType ibType, bool bShowCloseButton)
std::vector< VclPtr< SfxInfoBarWindow > > m_pInfoBars
void TriggerUpdateLayout()
SfxInfoBarContainerWindow(SfxInfoBarContainerChild *pChildWin)
virtual ~SfxInfoBarContainerWindow() override
SfxInfoBarContainerChild * m_pChildWin
static bool isInfobarEnabled(std::u16string_view sId)
virtual void Resize() override
virtual void dispose() override
bool hasInfoBarWithID(std::u16string_view sId)
DECL_LINK(DoUpdateLayout, Timer *, void)
void removeInfoBar(VclPtr< SfxInfoBarWindow > const &pInfoBar)
VclPtr< SfxInfoBarWindow > getInfoBar(std::u16string_view sId)
Class representing a single InfoBar to be added in a SfxInfoBarContainerWindow.
std::unique_ptr< weld::Image > m_xImage
const OUString & getId() const
DECL_DLLPRIVATE_LINK(CloseHandler, const OUString &, void)
std::unique_ptr< weld::TextView > m_xSecondaryMessage
DECL_DLLPRIVATE_LINK(SizeAllocHdl, const Size &, void)
std::unique_ptr< weld::Toolbar > m_xCloseBtn
void SetCommandHandler(weld::Button &rBtn, const OUString &aCommand)
basegfx::BColor m_aForegroundColor
std::unique_ptr< weld::Label > m_xPrimaryMessage
std::vector< std::unique_ptr< ExtraButton > > m_aActionBtns
std::unique_ptr< weld::Container > m_xButtonBox
basegfx::BColor m_aBackgroundColor