Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / core / inc / DropDownFormFieldButton.hxx
blob6f8aa42edd1de3ce068a0d03e39898add188fe09
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 "FormFieldButton.hxx"
14 class SwEditWin;
15 namespace sw::mark
17 class DropDownFieldmark;
20 /**
21 * This button is shown when the cursor is on a drop-down form field.
22 * The user can select an item of the field using this button while filling in a form.
24 class DropDownFormFieldButton final : public FormFieldButton
26 private:
27 std::unique_ptr<weld::TreeView> m_xTreeView;
29 DECL_LINK(MyListBoxHandler, weld::TreeView&, bool);
31 void InitDropdown();
33 public:
34 DropDownFormFieldButton(SwEditWin* pEditWin, sw::mark::DropDownFieldmark& rFieldMark);
35 virtual ~DropDownFormFieldButton() override;
37 virtual void LaunchPopup() override;
38 virtual void DestroyPopup() override;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */