LibreOffice Module sw (master) 1
DropDownFormFieldButton.hxx
Go to the documentation of this file.
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 "FormFieldButton.hxx"
13
14class SwEditWin;
15namespace sw::mark
16{
17class DropDownFieldmark;
18}
19
25{
26private:
27 std::unique_ptr<weld::TreeView> m_xTreeView;
28
29 DECL_LINK(MyListBoxHandler, weld::TreeView&, bool);
30
31 void InitDropdown();
32
33public:
35 virtual ~DropDownFormFieldButton() override;
36
37 virtual void LaunchPopup() override;
38 virtual void DestroyPopup() override;
39};
40
41/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
This button is shown when the cursor is on a drop-down form field.
void InitDropdown()
Popup dialog for drop-down form field showing the list items of the field.
DropDownFormFieldButton(SwEditWin *pEditWin, sw::mark::DropDownFieldmark &rFieldMark)
std::unique_ptr< weld::TreeView > m_xTreeView
virtual void LaunchPopup() override
virtual ~DropDownFormFieldButton() override
virtual void DestroyPopup() override
DECL_LINK(MyListBoxHandler, weld::TreeView &, bool)
This button is shown when the cursor is on a form field with drop-down capability.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:61
Fieldmark representing a drop-down form field.