1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include "contentcontrolbutton.hxx"
15 class SwContentControl
;
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
24 std::unique_ptr
<weld::TreeView
> m_xTreeView
;
26 DECL_LINK(ListBoxHandler
, weld::TreeView
&, bool);
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: */