/src/libreoffice/include/vcl/weld/Expander.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
5 | | * This Source Code Form is subject to the terms of the Mozilla Public |
6 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 | | */ |
9 | | |
10 | | #pragma once |
11 | | |
12 | | #include <vcl/dllapi.h> |
13 | | #include <vcl/weld/Widget.hxx> |
14 | | |
15 | | namespace weld |
16 | | { |
17 | | class VCL_DLLPUBLIC Expander : virtual public Widget |
18 | | { |
19 | | Link<Expander&, void> m_aExpandedHdl; |
20 | | |
21 | | protected: |
22 | 0 | void signal_expanded() { m_aExpandedHdl.Call(*this); } |
23 | | |
24 | | public: |
25 | | virtual void set_label(const OUString& rText) = 0; |
26 | | virtual OUString get_label() const = 0; |
27 | | virtual bool get_expanded() const = 0; |
28 | | virtual void set_expanded(bool bExpand) = 0; |
29 | | |
30 | 0 | void connect_expanded(const Link<Expander&, void>& rLink) { m_aExpandedHdl = rLink; } |
31 | | }; |
32 | | } |
33 | | |
34 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |