LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::ListSelectionDialog Class Reference

#include <listselectiondlg.hxx>

Inheritance diagram for pcr::ListSelectionDialog:
[legend]
Collaboration diagram for pcr::ListSelectionDialog:
[legend]

Public Member Functions

 ListSelectionDialog (weld::Window *_pParent, const css::uno::Reference< css::beans::XPropertySet > &_rxListBox, OUString _sPropertyName, const OUString &_rPropertyUIName)
 
virtual ~ListSelectionDialog () 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

void initialize ()
 
void commitSelection ()
 
void fillEntryList (const css::uno::Sequence< OUString > &_rListEntries)
 
void selectEntries (const css::uno::Sequence< sal_Int16 > &_rSelection)
 
void collectSelection (std::vector< sal_Int16 > &_rSelection)
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetm_xListBox
 
OUString m_sPropertyName
 
std::unique_ptr< weld::Framem_xFrame
 
std::unique_ptr< weld::TreeViewm_xEntries
 

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 28 of file listselectiondlg.hxx.

Constructor & Destructor Documentation

◆ ListSelectionDialog()

pcr::ListSelectionDialog::ListSelectionDialog ( weld::Window _pParent,
const css::uno::Reference< css::beans::XPropertySet > &  _rxListBox,
OUString  _sPropertyName,
const OUString &  _rPropertyUIName 
)

◆ ~ListSelectionDialog()

pcr::ListSelectionDialog::~ListSelectionDialog ( )
overridevirtual

Definition at line 50 of file listselectiondlg.cxx.

Member Function Documentation

◆ collectSelection()

void pcr::ListSelectionDialog::collectSelection ( std::vector< sal_Int16 > &  _rSelection)
private

Definition at line 120 of file listselectiondlg.cxx.

References m_xEntries.

Referenced by commitSelection().

◆ commitSelection()

void pcr::ListSelectionDialog::commitSelection ( )
private

◆ fillEntryList()

void pcr::ListSelectionDialog::fillEntryList ( const css::uno::Sequence< OUString > &  _rListEntries)
private

Definition at line 111 of file listselectiondlg.cxx.

References m_xEntries.

Referenced by initialize().

◆ initialize()

void pcr::ListSelectionDialog::initialize ( )
private

◆ run()

short pcr::ListSelectionDialog::run ( )
overridevirtual

◆ selectEntries()

void pcr::ListSelectionDialog::selectEntries ( const css::uno::Sequence< sal_Int16 > &  _rSelection)
private

Definition at line 128 of file listselectiondlg.cxx.

References m_xEntries.

Referenced by initialize().

Member Data Documentation

◆ m_sPropertyName

OUString pcr::ListSelectionDialog::m_sPropertyName
private

Definition at line 32 of file listselectiondlg.hxx.

Referenced by commitSelection(), and initialize().

◆ m_xEntries

std::unique_ptr<weld::TreeView> pcr::ListSelectionDialog::m_xEntries
private

◆ m_xFrame

std::unique_ptr<weld::Frame> pcr::ListSelectionDialog::m_xFrame
private

Definition at line 33 of file listselectiondlg.hxx.

Referenced by ListSelectionDialog().

◆ m_xListBox

css::uno::Reference<css::beans::XPropertySet> pcr::ListSelectionDialog::m_xListBox
private

Definition at line 31 of file listselectiondlg.hxx.

Referenced by commitSelection(), initialize(), and ListSelectionDialog().


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