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

#include <relfld.hxx>

Public Member Functions

 SvxRelativeField (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
 
weld::SpinButtonget_widget ()
 
int GetCoreValue (MapUnit eUnit) const
 
void SetFieldUnit (FieldUnit eUnit, bool bAll=false)
 
void SetMetricValue (int lCoreValue, MapUnit eUnit)
 

Private Member Functions

 DECL_DLLPRIVATE_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 27 of file relfld.hxx.

Constructor & Destructor Documentation

◆ SvxRelativeField()

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

Definition at line 22 of file relfld.cxx.

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

Member Function Documentation

◆ connect_value_changed()

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

Definition at line 56 of file relfld.hxx.

◆ DECL_DLLPRIVATE_LINK()

SvxRelativeField::DECL_DLLPRIVATE_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ denormalize()

int SvxRelativeField::denormalize ( int  nValue) const
inline

Definition at line 55 of file relfld.hxx.

References nValue.

◆ EnableNegativeMode()

void SvxRelativeField::EnableNegativeMode ( )
inline

Definition at line 46 of file relfld.hxx.

◆ EnableRelativeMode()

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

Definition at line 68 of file relfld.cxx.

References bRelativeMode, m_xSpinButton, nRelMax, and nRelMin.

◆ get_min()

int SvxRelativeField::get_min ( FieldUnit  eValueUnit) const
inline

Definition at line 51 of file relfld.hxx.

◆ get_text()

OUString SvxRelativeField::get_text ( ) const
inline

Definition at line 57 of file relfld.hxx.

◆ get_value()

int SvxRelativeField::get_value ( FieldUnit  eDestUnit) const
inline

Definition at line 50 of file relfld.hxx.

◆ get_value_changed_from_saved()

bool SvxRelativeField::get_value_changed_from_saved ( ) const
inline

Definition at line 60 of file relfld.hxx.

◆ get_widget()

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

Definition at line 61 of file relfld.hxx.

Referenced by limitWidthForSidebar().

◆ GetCoreValue()

int SvxRelativeField::GetCoreValue ( MapUnit  eUnit) const
inline

Definition at line 63 of file relfld.hxx.

◆ IsRelative()

bool SvxRelativeField::IsRelative ( ) const
inline

Definition at line 45 of file relfld.hxx.

◆ normalize()

int SvxRelativeField::normalize ( int  nValue) const
inline

Definition at line 54 of file relfld.hxx.

References nValue.

◆ save_value()

void SvxRelativeField::save_value ( )
inline

Definition at line 59 of file relfld.hxx.

◆ set_max()

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

Definition at line 53 of file relfld.hxx.

References max.

◆ set_min()

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

Definition at line 52 of file relfld.hxx.

References min().

◆ set_sensitive()

void SvxRelativeField::set_sensitive ( bool  sensitive)
inline

Definition at line 48 of file relfld.hxx.

◆ set_text()

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

Definition at line 58 of file relfld.hxx.

◆ set_value()

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

Definition at line 49 of file relfld.hxx.

References nValue.

◆ SetFieldUnit()

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

Definition at line 64 of file relfld.hxx.

◆ SetMetricValue()

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

Definition at line 65 of file relfld.hxx.

◆ SetRelative()

void SvxRelativeField::SetRelative ( bool  bRelative)

Member Data Documentation

◆ bNegativeEnabled

bool SvxRelativeField::bNegativeEnabled
private

Definition at line 36 of file relfld.hxx.

Referenced by SetRelative().

◆ bRelative

bool SvxRelativeField::bRelative
private

Definition at line 35 of file relfld.hxx.

Referenced by SetRelative().

◆ bRelativeMode

bool SvxRelativeField::bRelativeMode
private

Definition at line 34 of file relfld.hxx.

Referenced by EnableRelativeMode().

◆ m_xSpinButton

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

Definition at line 30 of file relfld.hxx.

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

◆ nRelMax

sal_uInt16 SvxRelativeField::nRelMax
private

Definition at line 33 of file relfld.hxx.

Referenced by EnableRelativeMode(), and SetRelative().

◆ nRelMin

sal_uInt16 SvxRelativeField::nRelMin
private

Definition at line 32 of file relfld.hxx.

Referenced by EnableRelativeMode(), and SetRelative().


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