/src/libreoffice/include/vcl/weld/Popover.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/Container.hxx> |
14 | | #include <vcl/weld/Placement.hxx> |
15 | | |
16 | | namespace weld |
17 | | { |
18 | | class VCL_DLLPUBLIC Popover : virtual public Container |
19 | | { |
20 | | private: |
21 | | Link<weld::Popover&, void> m_aCloseHdl; |
22 | | |
23 | | protected: |
24 | 0 | void signal_closed() { m_aCloseHdl.Call(*this); } |
25 | | |
26 | | public: |
27 | | virtual void popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect, |
28 | | Placement ePlace = Placement::Under) |
29 | | = 0; |
30 | | virtual void popdown() = 0; |
31 | | |
32 | | virtual void resize_to_request() = 0; |
33 | | |
34 | 0 | void connect_closed(const Link<weld::Popover&, void>& rLink) { m_aCloseHdl = rLink; } |
35 | | }; |
36 | | } |
37 | | |
38 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |