Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / core / inc / dropdowncontentcontrolbutton.hxx
blob6ca32974e19684e1168c4f617ebf5f1969de5e2c
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.
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 */
10 #pragma once
12 #include "contentcontrolbutton.hxx"
14 class SwEditWin;
15 class SwContentControl;
17 /**
18 * This button is shown when the cursor is inside a drop-down content control.
19 * The user can select a list item using this button while filling in a form.
21 class SwDropDownContentControlButton final : public SwContentControlButton
23 private:
24 std::unique_ptr<weld::TreeView> m_xTreeView;
26 DECL_LINK(ListBoxHandler, weld::TreeView&, bool);
28 void InitDropdown();
30 public:
31 SwDropDownContentControlButton(SwEditWin* pEditWin,
32 const std::shared_ptr<SwContentControl>& pContentControl);
33 virtual ~SwDropDownContentControlButton() override;
35 virtual void LaunchPopup() override;
36 virtual void DestroyPopup() override;
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */