/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ #ifndef INCLUDED_SFX2_INFOBAR_HXX #define INCLUDED_SFX2_INFOBAR_HXX
/** SfxChildWindow for positioning the InfoBar in the view.
*/ class SFX2_DLLPUBLIC SfxInfoBarContainerChild final : public SfxChildWindow
{ private:
SfxBindings* m_pBindings;
/** Class representing a single InfoBar to be added in a SfxInfoBarContainerWindow.
*/ class SFX2_DLLPUBLIC SfxInfoBarWindow final : public InterimItemWindow
{ private:
OUString m_sId;
InfobarType m_eType;
Size m_aMessageSize;
Size m_aOrigMessageSize; bool m_bLayingOut;
std::unique_ptr<weld::Image> m_xImage;
std::unique_ptr<weld::Label> m_xPrimaryMessage;
std::unique_ptr<weld::TextView> m_xSecondaryMessage;
std::unique_ptr<weld::Container> m_xButtonBox;
std::unique_ptr<weld::Toolbar> m_xCloseBtn;
std::vector<std::unique_ptr<ExtraButton>> m_aActionBtns;
/** Add button to Infobar. * Infobar takes ownership of the button so the button is * destroyed when the infobar gets destroyed. * * The optional "pCommand" is used by extensions, via XInfobarProvider, to * dispatch pCommand on click.
*/
weld::Button& addButton(const OUString* pCommand = nullptr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.