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

#include <FieldControls.hxx>

Inheritance diagram for dbaui::OPropListBoxCtrl:
[legend]
Collaboration diagram for dbaui::OPropListBoxCtrl:
[legend]

Public Member Functions

 OPropListBoxCtrl (std::unique_ptr< weld::ComboBox > xComboBox, TranslateId pHelpId, short nPosition)
 
virtual ~OPropListBoxCtrl () override
 
virtual void save_value () override
 
virtual bool get_value_changed_from_saved () const override
 
weld::ComboBoxGetComboBox ()
 
OUString get_active_text () const
 
void set_active_text (const OUString &rText)
 
int get_active () const
 
void set_active (int nPos)
 
int get_count () const
 
void append_text (const OUString &rText)
 
void remove_text (const OUString &rText)
 
int find_text (const OUString &rText) const
 
short GetPos () const
 
const OUString & GetHelp () const
 
- Public Member Functions inherited from dbaui::OWidgetBase
 OWidgetBase (weld::Widget *pWidget)
 
void hide ()
 
void show ()
 
void set_sensitive (bool bSensitive)
 
weld::WidgetGetWidget ()
 
virtual bool get_value_changed_from_saved () const =0
 
virtual void save_value ()=0
 
virtual ~OWidgetBase ()
 

Private Attributes

std::unique_ptr< weld::ComboBoxm_xComboBox
 
short m_nPos
 
OUString m_strHelpText
 

Detailed Description

Definition at line 84 of file FieldControls.hxx.

Constructor & Destructor Documentation

◆ OPropListBoxCtrl()

dbaui::OPropListBoxCtrl::OPropListBoxCtrl ( std::unique_ptr< weld::ComboBox xComboBox,
TranslateId  pHelpId,
short  nPosition 
)

Definition at line 52 of file FieldControls.cxx.

References DBA_RES, get(), m_nPos, and m_strHelpText.

◆ ~OPropListBoxCtrl()

virtual dbaui::OPropListBoxCtrl::~OPropListBoxCtrl ( )
inlineoverridevirtual

Definition at line 92 of file FieldControls.hxx.

References m_xComboBox.

Member Function Documentation

◆ append_text()

void dbaui::OPropListBoxCtrl::append_text ( const OUString &  rText)
inline

Definition at line 110 of file FieldControls.hxx.

References m_xComboBox.

◆ find_text()

int dbaui::OPropListBoxCtrl::find_text ( const OUString &  rText) const
inline

Definition at line 112 of file FieldControls.hxx.

References m_xComboBox.

◆ get_active()

int dbaui::OPropListBoxCtrl::get_active ( ) const
inline

Definition at line 105 of file FieldControls.hxx.

References m_xComboBox.

◆ get_active_text()

OUString dbaui::OPropListBoxCtrl::get_active_text ( ) const
inline

Definition at line 102 of file FieldControls.hxx.

References m_xComboBox.

◆ get_count()

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

Definition at line 108 of file FieldControls.hxx.

References m_xComboBox.

◆ get_value_changed_from_saved()

virtual bool dbaui::OPropListBoxCtrl::get_value_changed_from_saved ( ) const
inlineoverridevirtual

Implements dbaui::OWidgetBase.

Definition at line 98 of file FieldControls.hxx.

References m_xComboBox.

◆ GetComboBox()

weld::ComboBox & dbaui::OPropListBoxCtrl::GetComboBox ( )
inline

Definition at line 100 of file FieldControls.hxx.

References m_xComboBox.

Referenced by dbaui::OFieldDescControl::InitializeControl().

◆ GetHelp()

const OUString & dbaui::OPropListBoxCtrl::GetHelp ( ) const
inline

Definition at line 115 of file FieldControls.hxx.

References m_strHelpText.

◆ GetPos()

short dbaui::OPropListBoxCtrl::GetPos ( ) const
inline

Definition at line 114 of file FieldControls.hxx.

References m_nPos.

◆ remove_text()

void dbaui::OPropListBoxCtrl::remove_text ( const OUString &  rText)
inline

Definition at line 111 of file FieldControls.hxx.

References m_xComboBox.

◆ save_value()

virtual void dbaui::OPropListBoxCtrl::save_value ( )
inlineoverridevirtual

Implements dbaui::OWidgetBase.

Definition at line 97 of file FieldControls.hxx.

References m_xComboBox.

◆ set_active()

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

Definition at line 106 of file FieldControls.hxx.

References m_xComboBox, and nPos.

◆ set_active_text()

void dbaui::OPropListBoxCtrl::set_active_text ( const OUString &  rText)
inline

Definition at line 103 of file FieldControls.hxx.

References m_xComboBox.

Member Data Documentation

◆ m_nPos

short dbaui::OPropListBoxCtrl::m_nPos
private

Definition at line 87 of file FieldControls.hxx.

Referenced by GetPos().

◆ m_strHelpText

OUString dbaui::OPropListBoxCtrl::m_strHelpText
private

Definition at line 88 of file FieldControls.hxx.

Referenced by GetHelp(), and OPropListBoxCtrl().

◆ m_xComboBox

std::unique_ptr<weld::ComboBox> dbaui::OPropListBoxCtrl::m_xComboBox
private

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