LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RelativeField Class Reference

#include <relfld.hxx>

Public Member Functions

 RelativeField (std::unique_ptr< weld::MetricSpinButton > pControl)
 
void EnableRelativeMode (sal_uInt16 nMin, sal_uInt16 nMax)
 
void SetRelative (bool bRelative)
 
bool IsRelative () const
 
void EnableNegativeMode ()
 
void set_sensitive (bool sensitive)
 
void set_value (int nValue, FieldUnit eValueUnit)
 
int get_value (FieldUnit eDestUnit) const
 
int get_min (FieldUnit eValueUnit) const
 
void set_min (int min, FieldUnit eValueUnit)
 
void set_max (int max, FieldUnit eValueUnit)
 
int normalize (int nValue) const
 
int denormalize (int nValue) const
 
void connect_value_changed (const Link< weld::MetricSpinButton &, void > &rLink)
 
OUString get_text () const
 
void set_text (const OUString &rText)
 
void save_value ()
 
bool get_value_changed_from_saved () const
 
int GetCoreValue (MapUnit eUnit) const
 
void SetFieldUnit (FieldUnit eUnit, bool bAll=false)
 
void SetMetricValue (int lCoreValue, MapUnit eUnit)
 

Private Member Functions

 DECL_LINK (ModifyHdl, weld::Entry &, void)
 

Private Attributes

std::unique_ptr< weld::MetricSpinButtonm_xSpinButton
 
sal_uInt16 nRelMin
 
sal_uInt16 nRelMax
 
bool bRelativeMode
 
bool bRelative
 
bool bNegativeEnabled
 

Detailed Description

Definition at line 34 of file relfld.hxx.

Constructor & Destructor Documentation

RelativeField::RelativeField ( std::unique_ptr< weld::MetricSpinButton pControl)

Definition at line 45 of file relfld.cxx.

References weld::Entry::connect_changed(), LINK, and m_xSpinButton.

Member Function Documentation

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

Definition at line 63 of file relfld.hxx.

RelativeField::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private
int RelativeField::denormalize ( int  nValue) const
inline

Definition at line 62 of file relfld.hxx.

void RelativeField::EnableNegativeMode ( )
inline

Definition at line 53 of file relfld.hxx.

void RelativeField::EnableRelativeMode ( sal_uInt16  nMin,
sal_uInt16  nMax 
)

Definition at line 91 of file relfld.cxx.

References bRelativeMode, m_xSpinButton, nRelMax, and nRelMin.

int RelativeField::get_min ( FieldUnit  eValueUnit) const
inline

Definition at line 58 of file relfld.hxx.

OUString RelativeField::get_text ( ) const
inline

Definition at line 64 of file relfld.hxx.

int RelativeField::get_value ( FieldUnit  eDestUnit) const
inline

Definition at line 57 of file relfld.hxx.

bool RelativeField::get_value_changed_from_saved ( ) const
inline

Definition at line 67 of file relfld.hxx.

int RelativeField::GetCoreValue ( MapUnit  eUnit) const
inline

Definition at line 69 of file relfld.hxx.

bool RelativeField::IsRelative ( ) const
inline

Definition at line 52 of file relfld.hxx.

int RelativeField::normalize ( int  nValue) const
inline

Definition at line 61 of file relfld.hxx.

void RelativeField::save_value ( )
inline

Definition at line 66 of file relfld.hxx.

void RelativeField::set_max ( int  max,
FieldUnit  eValueUnit 
)
inline

Definition at line 60 of file relfld.hxx.

void RelativeField::set_min ( int  min,
FieldUnit  eValueUnit 
)
inline

Definition at line 59 of file relfld.hxx.

void RelativeField::set_sensitive ( bool  sensitive)
inline

Definition at line 55 of file relfld.hxx.

void RelativeField::set_text ( const OUString &  rText)
inline

Definition at line 65 of file relfld.hxx.

void RelativeField::set_value ( int  nValue,
FieldUnit  eValueUnit 
)
inline

Definition at line 56 of file relfld.hxx.

void RelativeField::SetFieldUnit ( FieldUnit  eUnit,
bool  bAll = false 
)
inline

Definition at line 70 of file relfld.hxx.

void RelativeField::SetMetricValue ( int  lCoreValue,
MapUnit  eUnit 
)
inline

Definition at line 71 of file relfld.hxx.

void RelativeField::SetRelative ( bool  bRelative)

Member Data Documentation

bool RelativeField::bNegativeEnabled
private

Definition at line 43 of file relfld.hxx.

Referenced by SetRelative().

bool RelativeField::bRelative
private

Definition at line 42 of file relfld.hxx.

Referenced by SetRelative().

bool RelativeField::bRelativeMode
private

Definition at line 41 of file relfld.hxx.

Referenced by EnableRelativeMode().

std::unique_ptr<weld::MetricSpinButton> RelativeField::m_xSpinButton
private

Definition at line 37 of file relfld.hxx.

Referenced by EnableRelativeMode(), RelativeField(), and SetRelative().

sal_uInt16 RelativeField::nRelMax
private

Definition at line 40 of file relfld.hxx.

Referenced by EnableRelativeMode(), and SetRelative().

sal_uInt16 RelativeField::nRelMin
private

Definition at line 39 of file relfld.hxx.

Referenced by EnableRelativeMode(), and SetRelative().


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