LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
weld::MetricSpinButton Class Reference

#include <weld.hxx>

Collaboration diagram for weld::MetricSpinButton:
[legend]

Public Member Functions

 MetricSpinButton (std::unique_ptr< SpinButton > pSpinButton, FieldUnit eSrcUnit)
 
FieldUnit get_unit () const
 
void set_unit (FieldUnit eUnit)
 
int convert_value_to (int nValue, FieldUnit eValueUnit) const
 
int convert_value_from (int nValue, FieldUnit eValueUnit) const
 
void set_value (int nValue, FieldUnit eValueUnit)
 
int get_value (FieldUnit eDestUnit) const
 
void reformat ()
 
void set_range (int min, int max, FieldUnit eValueUnit)
 
void get_range (int &min, int &max, FieldUnit eDestUnit) const
 
void set_min (int min, FieldUnit eValueUnit)
 
void set_max (int max, FieldUnit eValueUnit)
 
int get_min (FieldUnit eValueUnit) const
 
int get_max (FieldUnit eValueUnit) const
 
void set_increments (int step, int page, FieldUnit eValueUnit)
 
void get_increments (int &step, int &page, FieldUnit eDestUnit) const
 
void connect_value_changed (const Link< MetricSpinButton &, void > &rLink)
 
int normalize (int nValue) const
 
int denormalize (int nValue) const
 
void set_sensitive (bool sensitive)
 
bool get_sensitive () const
 
bool get_visible () const
 
void grab_focus ()
 
bool has_focus () const
 
void show ()
 
void set_visible (bool bShow)
 
void hide ()
 
void set_digits (unsigned int digits)
 
void set_accessible_name (const OUString &rName)
 
unsigned int get_digits () const
 
void save_value ()
 
bool get_value_changed_from_saved () const
 
void set_text (const OUString &rText)
 
OUString get_text () const
 
void set_size_request (int nWidth, int nHeight)
 
Size get_size_request () const
 
Size get_preferred_size () const
 
void connect_focus_in (const Link< Widget &, void > &rLink)
 
void connect_focus_out (const Link< Widget &, void > &rLink)
 
void set_help_id (const OString &rName)
 
void set_position (int nCursorPos)
 
weld::SpinButtonget_widget ()
 

Static Public Member Functions

static OUString MetricToString (FieldUnit rUnit)
 

Protected Member Functions

 DECL_LINK (spin_button_value_changed, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_output, weld::SpinButton &, void)
 
 DECL_LINK (spin_button_input, int *result, bool)
 
void signal_value_changed ()
 
int ConvertValue (int nValue, FieldUnit eInUnit, FieldUnit eOutUnit) const
 
OUString format_number (int nValue) const
 
void update_width_chars ()
 

Protected Attributes

FieldUnit m_eSrcUnit
 
std::unique_ptr< weld::SpinButtonm_xSpinButton
 
Link< MetricSpinButton &, voidm_aValueChangedHdl
 

Detailed Description

Definition at line 1362 of file weld.hxx.

Constructor & Destructor Documentation

weld::MetricSpinButton::MetricSpinButton ( std::unique_ptr< SpinButton pSpinButton,
FieldUnit  eSrcUnit 
)
inline

Definition at line 1380 of file weld.hxx.

References LINK.

Member Function Documentation

void weld::MetricSpinButton::connect_focus_in ( const Link< Widget &, void > &  rLink)
inline

Definition at line 1511 of file weld.hxx.

void weld::MetricSpinButton::connect_focus_out ( const Link< Widget &, void > &  rLink)
inline

Definition at line 1515 of file weld.hxx.

void weld::MetricSpinButton::connect_value_changed ( const Link< MetricSpinButton &, void > &  rLink)
inline

Definition at line 1480 of file weld.hxx.

int weld::MetricSpinButton::convert_value_from ( int  nValue,
FieldUnit  eValueUnit 
) const
inline

Definition at line 1403 of file weld.hxx.

int weld::MetricSpinButton::convert_value_to ( int  nValue,
FieldUnit  eValueUnit 
) const
inline

Definition at line 1398 of file weld.hxx.

int weld::MetricSpinButton::ConvertValue ( int  nValue,
FieldUnit  eInUnit,
FieldUnit  eOutUnit 
) const
protected

Definition at line 280 of file builder.cxx.

References MetricField::ConvertValue(), and m_xSpinButton.

weld::MetricSpinButton::DECL_LINK ( spin_button_value_changed  ,
weld::SpinButton ,
void   
)
protected
weld::MetricSpinButton::DECL_LINK ( spin_button_output  ,
weld::SpinButton ,
void   
)
protected
weld::MetricSpinButton::DECL_LINK ( spin_button_input  ,
int result,
bool   
)
protected
int weld::MetricSpinButton::denormalize ( int  nValue) const
inline

Definition at line 1486 of file weld.hxx.

OUString weld::MetricSpinButton::format_number ( int  nValue) const
protected
unsigned int weld::MetricSpinButton::get_digits ( ) const
inline

Definition at line 1497 of file weld.hxx.

void weld::MetricSpinButton::get_increments ( int step,
int page,
FieldUnit  eDestUnit 
) const
inline

Definition at line 1473 of file weld.hxx.

Referenced by set_digits(), and set_unit().

int weld::MetricSpinButton::get_max ( FieldUnit  eValueUnit) const
inline

Definition at line 1459 of file weld.hxx.

References max.

int weld::MetricSpinButton::get_min ( FieldUnit  eValueUnit) const
inline

Definition at line 1452 of file weld.hxx.

References min.

Size weld::MetricSpinButton::get_preferred_size ( ) const
inline

Definition at line 1510 of file weld.hxx.

void weld::MetricSpinButton::get_range ( int min,
int max,
FieldUnit  eDestUnit 
) const
inline

Definition at line 1431 of file weld.hxx.

bool weld::MetricSpinButton::get_sensitive ( ) const
inline

Definition at line 1488 of file weld.hxx.

Size weld::MetricSpinButton::get_size_request ( ) const
inline

Definition at line 1509 of file weld.hxx.

OUString weld::MetricSpinButton::get_text ( ) const
inline

Definition at line 1504 of file weld.hxx.

FieldUnit weld::MetricSpinButton::get_unit ( ) const
inline

Definition at line 1394 of file weld.hxx.

int weld::MetricSpinButton::get_value ( FieldUnit  eDestUnit) const
inline

Definition at line 1413 of file weld.hxx.

Referenced by set_digits(), and set_unit().

bool weld::MetricSpinButton::get_value_changed_from_saved ( ) const
inline

Definition at line 1499 of file weld.hxx.

bool weld::MetricSpinButton::get_visible ( ) const
inline

Definition at line 1489 of file weld.hxx.

weld::SpinButton& weld::MetricSpinButton::get_widget ( )
inline

Definition at line 1521 of file weld.hxx.

void weld::MetricSpinButton::grab_focus ( )
inline

Definition at line 1490 of file weld.hxx.

bool weld::MetricSpinButton::has_focus ( ) const
inline

Definition at line 1491 of file weld.hxx.

void weld::MetricSpinButton::hide ( )
inline

Definition at line 1494 of file weld.hxx.

OUString weld::MetricSpinButton::MetricToString ( FieldUnit  rUnit)
static

Definition at line 169 of file builder.cxx.

References ImplGetFieldUnits().

Referenced by format_number().

int weld::MetricSpinButton::normalize ( int  nValue) const
inline

Definition at line 1485 of file weld.hxx.

void weld::MetricSpinButton::reformat ( )
inline

Definition at line 1421 of file weld.hxx.

void weld::MetricSpinButton::save_value ( )
inline

Definition at line 1498 of file weld.hxx.

void weld::MetricSpinButton::set_accessible_name ( const OUString &  rName)
inline

Definition at line 1496 of file weld.hxx.

void weld::MetricSpinButton::set_digits ( unsigned int  digits)
void weld::MetricSpinButton::set_help_id ( const OString &  rName)
inline

Definition at line 1519 of file weld.hxx.

void weld::MetricSpinButton::set_increments ( int  step,
int  page,
FieldUnit  eValueUnit 
)
inline

Definition at line 1466 of file weld.hxx.

Referenced by set_digits(), and set_unit().

void weld::MetricSpinButton::set_max ( int  max,
FieldUnit  eValueUnit 
)
inline

Definition at line 1445 of file weld.hxx.

References min.

void weld::MetricSpinButton::set_min ( int  min,
FieldUnit  eValueUnit 
)
inline

Definition at line 1438 of file weld.hxx.

References max.

void weld::MetricSpinButton::set_position ( int  nCursorPos)
inline

Definition at line 1520 of file weld.hxx.

void weld::MetricSpinButton::set_range ( int  min,
int  max,
FieldUnit  eValueUnit 
)
inline

Definition at line 1423 of file weld.hxx.

void weld::MetricSpinButton::set_sensitive ( bool  sensitive)
inline

Definition at line 1487 of file weld.hxx.

void weld::MetricSpinButton::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 1505 of file weld.hxx.

void weld::MetricSpinButton::set_text ( const OUString &  rText)
inline

Definition at line 1503 of file weld.hxx.

void weld::MetricSpinButton::set_unit ( FieldUnit  eUnit)
void weld::MetricSpinButton::set_value ( int  nValue,
FieldUnit  eValueUnit 
)
inline

Definition at line 1408 of file weld.hxx.

Referenced by set_digits(), and set_unit().

void weld::MetricSpinButton::set_visible ( bool  bShow)
inline

Definition at line 1493 of file weld.hxx.

void weld::MetricSpinButton::show ( )
inline

Definition at line 1492 of file weld.hxx.

void weld::MetricSpinButton::signal_value_changed ( )
inlineprotected

Definition at line 1373 of file weld.hxx.

References Link< class, class >::Call().

void weld::MetricSpinButton::update_width_chars ( )
protected

Definition at line 194 of file builder.cxx.

References format_number(), m_xSpinButton, max, and min.

Referenced by set_digits(), and set_unit().

Member Data Documentation

Link<MetricSpinButton&, void> weld::MetricSpinButton::m_aValueChangedHdl
protected

Definition at line 1367 of file weld.hxx.

FieldUnit weld::MetricSpinButton::m_eSrcUnit
protected

Definition at line 1365 of file weld.hxx.

Referenced by format_number(), set_digits(), and set_unit().

std::unique_ptr<weld::SpinButton> weld::MetricSpinButton::m_xSpinButton
protected

Definition at line 1366 of file weld.hxx.

Referenced by ConvertValue(), format_number(), set_digits(), set_unit(), and update_width_chars().


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