LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dbaui::OpenDocumentListBox Class Reference

#include <opendoccontrols.hxx>

Public Member Functions

 OpenDocumentListBox (std::unique_ptr< weld::ComboBox > xControl, const char *_pAsciiModuleName)
 
OUString GetSelectedDocumentURL () const
 
void set_sensitive (bool bSensitive)
 
int get_count () const
 
void set_active (int nPos)
 
void connect_changed (const Link< weld::ComboBox &, void > &rLink)
 

Private Types

typedef std::pair< OUString, OUString > StringPair
 

Private Member Functions

const StringPairimpl_getDocumentAtIndex (sal_uInt16 _nListIndex) const
 
void impl_init (const char *_pAsciiModuleName)
 

Private Attributes

std::vector< StringPairm_aURLs
 
std::unique_ptr< weld::ComboBoxm_xControl
 

Detailed Description

Definition at line 51 of file opendoccontrols.hxx.

Member Typedef Documentation

◆ StringPair

typedef std::pair< OUString, OUString > dbaui::OpenDocumentListBox::StringPair
private

Definition at line 54 of file opendoccontrols.hxx.

Constructor & Destructor Documentation

◆ OpenDocumentListBox()

dbaui::OpenDocumentListBox::OpenDocumentListBox ( std::unique_ptr< weld::ComboBox xControl,
const char *  _pAsciiModuleName 
)

Definition at line 119 of file opendoccontrols.cxx.

References impl_init(), m_xControl, and m_xControl.

Member Function Documentation

◆ connect_changed()

void dbaui::OpenDocumentListBox::connect_changed ( const Link< weld::ComboBox &, void > &  rLink)
inline

Definition at line 68 of file opendoccontrols.hxx.

References m_xControl.

◆ get_count()

int dbaui::OpenDocumentListBox::get_count ( ) const
inline

Definition at line 66 of file opendoccontrols.hxx.

References m_xControl.

◆ GetSelectedDocumentURL()

OUString dbaui::OpenDocumentListBox::GetSelectedDocumentURL ( ) const

Definition at line 178 of file opendoccontrols.cxx.

References impl_getDocumentAtIndex(), and m_xControl.

◆ impl_getDocumentAtIndex()

const OpenDocumentListBox::StringPair & dbaui::OpenDocumentListBox::impl_getDocumentAtIndex ( sal_uInt16  _nListIndex) const
private

Definition at line 187 of file opendoccontrols.cxx.

References m_aURLs.

Referenced by GetSelectedDocumentURL().

◆ impl_init()

void dbaui::OpenDocumentListBox::impl_init ( const char *  _pAsciiModuleName)
private

◆ set_active()

void dbaui::OpenDocumentListBox::set_active ( int  nPos)
inline

Definition at line 67 of file opendoccontrols.hxx.

References m_xControl, and nPos.

◆ set_sensitive()

void dbaui::OpenDocumentListBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 65 of file opendoccontrols.hxx.

References m_xControl.

Member Data Documentation

◆ m_aURLs

std::vector<StringPair> dbaui::OpenDocumentListBox::m_aURLs
private

Definition at line 56 of file opendoccontrols.hxx.

Referenced by impl_getDocumentAtIndex(), and impl_init().

◆ m_xControl

std::unique_ptr<weld::ComboBox> dbaui::OpenDocumentListBox::m_xControl
private

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