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

#include <FieldControls.hxx>

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

Public Member Functions

 OPropNumericEditCtrl (std::unique_ptr< weld::SpinButton > xSpinButton, TranslateId pHelpId, short nPosition)
 
void set_text (const OUString &rText)
 
OUString get_text () const
 
virtual void save_value () override
 
virtual bool get_value_changed_from_saved () const override
 
void set_digits (int nLen)
 
void set_min (int nMin)
 
void set_max (int nMax)
 
void set_range (int nMin, int nMax)
 
int get_value () const
 
short GetPos () const
 
const OUString & GetHelp () const
 
void set_editable (bool bEditable)
 
- 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::SpinButtonm_xSpinButton
 
short m_nPos
 
OUString m_strHelpText
 

Detailed Description

Definition at line 58 of file FieldControls.hxx.

Constructor & Destructor Documentation

◆ OPropNumericEditCtrl()

dbaui::OPropNumericEditCtrl::OPropNumericEditCtrl ( std::unique_ptr< weld::SpinButton xSpinButton,
TranslateId  pHelpId,
short  nPosition 
)

Definition at line 44 of file FieldControls.cxx.

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

Member Function Documentation

◆ get_text()

OUString dbaui::OPropNumericEditCtrl::get_text ( ) const
inline

Definition at line 68 of file FieldControls.hxx.

References m_xSpinButton.

◆ get_value()

int dbaui::OPropNumericEditCtrl::get_value ( ) const
inline

Definition at line 76 of file FieldControls.hxx.

References m_xSpinButton.

◆ get_value_changed_from_saved()

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

Implements dbaui::OWidgetBase.

Definition at line 71 of file FieldControls.hxx.

References m_xSpinButton.

◆ GetHelp()

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

Definition at line 79 of file FieldControls.hxx.

References m_strHelpText.

◆ GetPos()

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

Definition at line 78 of file FieldControls.hxx.

References m_nPos.

◆ save_value()

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

Implements dbaui::OWidgetBase.

Definition at line 70 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_digits()

void dbaui::OPropNumericEditCtrl::set_digits ( int  nLen)
inline

Definition at line 72 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_editable()

void dbaui::OPropNumericEditCtrl::set_editable ( bool  bEditable)
inline

Definition at line 81 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_max()

void dbaui::OPropNumericEditCtrl::set_max ( int  nMax)
inline

Definition at line 74 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_min()

void dbaui::OPropNumericEditCtrl::set_min ( int  nMin)
inline

Definition at line 73 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_range()

void dbaui::OPropNumericEditCtrl::set_range ( int  nMin,
int  nMax 
)
inline

Definition at line 75 of file FieldControls.hxx.

References m_xSpinButton.

◆ set_text()

void dbaui::OPropNumericEditCtrl::set_text ( const OUString &  rText)
inline

Definition at line 67 of file FieldControls.hxx.

References m_xSpinButton.

Member Data Documentation

◆ m_nPos

short dbaui::OPropNumericEditCtrl::m_nPos
private

Definition at line 61 of file FieldControls.hxx.

Referenced by GetPos().

◆ m_strHelpText

OUString dbaui::OPropNumericEditCtrl::m_strHelpText
private

Definition at line 62 of file FieldControls.hxx.

Referenced by GetHelp(), and OPropNumericEditCtrl().

◆ m_xSpinButton

std::unique_ptr<weld::SpinButton> dbaui::OPropNumericEditCtrl::m_xSpinButton
private

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