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 
14 class SwEditWin;
15 namespace sw::mark
16 {
17 class DropDownFieldmark;
18 }
19 
25 {
26 private:
27  std::unique_ptr<weld::TreeView> m_xTreeView;
28 
29  DECL_LINK(MyListBoxHandler, weld::TreeView&, bool);
30 
31  void InitDropdown();
32 
33 public:
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: */
virtual ~DropDownFormFieldButton() override
void InitDropdown()
Popup dialog for drop-down form field showing the list items of the field.
virtual void LaunchPopup() override
This button is shown when the cursor is on a form field with drop-down capability.
virtual void DestroyPopup() override
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
std::unique_ptr< weld::TreeView > m_xTreeView
DropDownFormFieldButton(SwEditWin *pEditWin, sw::mark::DropDownFieldmark &rFieldMark)
DECL_LINK(MyListBoxHandler, weld::TreeView &, bool)
Fieldmark representing a drop-down form field.
Definition: bookmrk.hxx:284
This button is shown when the cursor is on a drop-down form field.