LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::DropDownFormFieldDialog Class Referencefinal

#include <DropDownFormFieldDialog.hxx>

Inheritance diagram for sw::DropDownFormFieldDialog:
[legend]
Collaboration diagram for sw::DropDownFormFieldDialog:
[legend]

Public Member Functions

 DropDownFormFieldDialog (weld::Widget *pParent, mark::IFieldmark *pDropDownField)
 
virtual ~DropDownFormFieldDialog () override
 
virtual short run () override
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (ListChangedHdl, weld::TreeView &, void)
 
 DECL_LINK (KeyPressedHdl, const KeyEvent &, bool)
 
 DECL_LINK (EntryChangedHdl, weld::Entry &, void)
 
 DECL_LINK (ButtonPushedHdl, weld::Button &, void)
 
void InitControls ()
 
void AppendItemToList ()
 
void UpdateButtons ()
 
void Apply ()
 

Private Attributes

mark::IFieldmark * m_pDropDownField
 
bool m_bListHasChanged
 
std::unique_ptr< weld::Entrym_xListItemEntry
 
std::unique_ptr< weld::Buttonm_xListAddButton
 
std::unique_ptr< weld::TreeViewm_xListItemsTreeView
 
std::unique_ptr< weld::Buttonm_xListRemoveButton
 
std::unique_ptr< weld::Buttonm_xListUpButton
 
std::unique_ptr< weld::Buttonm_xListDownButton
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 23 of file DropDownFormFieldDialog.hxx.

Constructor & Destructor Documentation

◆ DropDownFormFieldDialog()

sw::DropDownFormFieldDialog::DropDownFormFieldDialog ( weld::Widget pParent,
mark::IFieldmark *  pDropDownField 
)

◆ ~DropDownFormFieldDialog()

sw::DropDownFormFieldDialog::~DropDownFormFieldDialog ( )
overridevirtual

Definition at line 49 of file DropDownFormFieldDialog.cxx.

Member Function Documentation

◆ AppendItemToList()

void sw::DropDownFormFieldDialog::AppendItemToList ( )
private

◆ Apply()

void sw::DropDownFormFieldDialog::Apply ( )
private

◆ DECL_LINK() [1/4]

sw::DropDownFormFieldDialog::DECL_LINK ( ButtonPushedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/4]

sw::DropDownFormFieldDialog::DECL_LINK ( EntryChangedHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [3/4]

sw::DropDownFormFieldDialog::DECL_LINK ( KeyPressedHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_LINK() [4/4]

sw::DropDownFormFieldDialog::DECL_LINK ( ListChangedHdl  ,
weld::TreeView ,
void   
)
private

◆ InitControls()

void sw::DropDownFormFieldDialog::InitControls ( )
private

◆ run()

virtual short sw::DropDownFormFieldDialog::run ( )
inlineoverridevirtual

Reimplemented from weld::DialogController.

Definition at line 52 of file DropDownFormFieldDialog.hxx.

References Apply(), and RET_OK.

◆ UpdateButtons()

void sw::DropDownFormFieldDialog::UpdateButtons ( )
private

Member Data Documentation

◆ m_bListHasChanged

bool sw::DropDownFormFieldDialog::m_bListHasChanged
private

Definition at line 27 of file DropDownFormFieldDialog.hxx.

Referenced by AppendItemToList(), and Apply().

◆ m_pDropDownField

mark::IFieldmark* sw::DropDownFormFieldDialog::m_pDropDownField
private

Definition at line 26 of file DropDownFormFieldDialog.hxx.

Referenced by Apply(), and InitControls().

◆ m_xListAddButton

std::unique_ptr<weld::Button> sw::DropDownFormFieldDialog::m_xListAddButton
private

◆ m_xListDownButton

std::unique_ptr<weld::Button> sw::DropDownFormFieldDialog::m_xListDownButton
private

Definition at line 36 of file DropDownFormFieldDialog.hxx.

Referenced by DropDownFormFieldDialog(), and UpdateButtons().

◆ m_xListItemEntry

std::unique_ptr<weld::Entry> sw::DropDownFormFieldDialog::m_xListItemEntry
private

◆ m_xListItemsTreeView

std::unique_ptr<weld::TreeView> sw::DropDownFormFieldDialog::m_xListItemsTreeView
private

◆ m_xListRemoveButton

std::unique_ptr<weld::Button> sw::DropDownFormFieldDialog::m_xListRemoveButton
private

Definition at line 34 of file DropDownFormFieldDialog.hxx.

Referenced by DropDownFormFieldDialog(), and UpdateButtons().

◆ m_xListUpButton

std::unique_ptr<weld::Button> sw::DropDownFormFieldDialog::m_xListUpButton
private

Definition at line 35 of file DropDownFormFieldDialog.hxx.

Referenced by DropDownFormFieldDialog(), and UpdateButtons().


The documentation for this class was generated from the following files: