diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-25 17:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-26 20:57:31 +0100 |
commit | a5a71c7bb58a16a64c586c3ea142e0dd88cf7104 (patch) | |
tree | be9545002fd9b32441b14f04505f0f4c1f05171d /include | |
parent | bbb3f36877807a5f6106956d7497f281169d9421 (diff) |
drop intermediate vcl container for these welded floating toplevels
Change-Id: I4a528485de62a0e0acabd41abf6872e2f0e1710e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111567
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/weld.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 14c7e77b33ea..eda93398b8d6 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -2264,6 +2264,21 @@ public: virtual ~Menu() {} }; +class VCL_DLLPUBLIC Popover : virtual public Container +{ +private: + Link<weld::Popover&, void> m_aCloseHdl; + +protected: + void signal_closed() { m_aCloseHdl.Call(*this); } + +public: + virtual void popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect) = 0; + virtual void popdown() = 0; + + void connect_closed(const Link<weld::Popover&, void>& rLink) { m_aCloseHdl = rLink; } +}; + class VCL_DLLPUBLIC Toolbar : virtual public Widget { protected: @@ -2383,6 +2398,7 @@ public: const OString& treeviewid) = 0; virtual std::unique_ptr<Menu> weld_menu(const OString& id) = 0; + virtual std::unique_ptr<Popover> weld_popover(const OString& id) = 0; virtual std::unique_ptr<Toolbar> weld_toolbar(const OString& id) = 0; virtual std::unique_ptr<SizeGroup> create_size_group() = 0; /* return a Dialog suitable to take a screenshot of containing the contents of the .ui file. |