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