diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2023-09-15 14:23:50 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2023-10-28 11:23:12 +0200 |
commit | 97d3d4f371f82704dba907975e6cfdaac456fe4d (patch) | |
tree | fe2b62c4b6cbc28094ef456295844201bb2b9a9d /include/svx/labelitemwindow.hxx | |
parent | 00e02dd832988ec3e7f37569c932ed66e1eb6efd (diff) |
Resolves tdf#156227 - More appealing feedback for find/quickfind
ErrorMessageType removed in favor of an infobar-like label
Accessibility notification added for the quickfind bar
Change-Id: Iec2498d04152392b3e181146005bdb0c9db8ec50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156943
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'include/svx/labelitemwindow.hxx')
-rw-r--r-- | include/svx/labelitemwindow.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/svx/labelitemwindow.hxx b/include/svx/labelitemwindow.hxx index 5271482b11ad..d9aeccbb7bfd 100644 --- a/include/svx/labelitemwindow.hxx +++ b/include/svx/labelitemwindow.hxx @@ -12,14 +12,23 @@ #include <vcl/InterimItemWindow.hxx> #include <svx/svxdllapi.h> +enum class LabelItemWindowType +{ + Text, + Info, +}; + class SVXCORE_DLLPUBLIC LabelItemWindow final : public InterimItemWindow { private: + std::unique_ptr<weld::Box> m_xBox; std::unique_ptr<weld::Label> m_xLabel; + std::unique_ptr<weld::Image> m_xImage; public: LabelItemWindow(vcl::Window* pParent, const OUString& rLabel); - void set_label(const OUString& rLabel); + void set_label(const OUString& rLabel, + const LabelItemWindowType eType = LabelItemWindowType::Text); OUString get_label() const; void SetOptimalSize(); |