LibreOffice Module vcl (master) 1
|
#include <field.hxx>
Public Member Functions | |
virtual | ~MetricFormatter () override |
virtual void | Reformat () override |
virtual void | SetUnit (FieldUnit meUnit) |
FieldUnit | GetUnit () const |
void | SetCustomUnitText (const OUString &rStr) |
const OUString & | GetCustomUnitText () const |
void | SetMax (sal_Int64 nNewMax, FieldUnit eInUnit) |
sal_Int64 | GetMax (FieldUnit eOutUnit) const |
void | SetMin (sal_Int64 nNewMin, FieldUnit eInUnit) |
sal_Int64 | GetMin (FieldUnit eOutUnit) const |
void | SetValue (sal_Int64 nNewValue, FieldUnit eInUnit) |
virtual void | SetValue (sal_Int64 nValue) override |
void | SetUserValue (sal_Int64 nNewValue, FieldUnit eInUnit) |
sal_Int64 | GetValue (FieldUnit eOutUnit) const |
virtual OUString | CreateFieldText (sal_Int64 nValue) const override |
sal_Int64 | GetCorrectedValue (FieldUnit eOutUnit) const |
Protected Member Functions | |
MetricFormatter (Edit *pEdit) | |
SAL_DLLPRIVATE void | ImplMetricReformat (const OUString &rStr, double &rValue, OUString &rOutStr) |
virtual sal_Int64 | GetValueFromString (const OUString &rStr) const override |
sal_Int64 | GetValueFromStringUnit (const OUString &rStr, FieldUnit eOutUnit) const |
Protected Attributes | |
FieldUnit | meUnit |
Private Attributes | |
OUString | maCustomUnitText |
|
protected |
|
overridevirtual |
Definition at line 1264 of file field.cxx.
References aStr, unicode::formatPercent(), ImplMetricToString(), maCustomUnitText, meUnit, nValue, and u.
Referenced by ImplMetricReformat().
sal_Int64 MetricFormatter::GetCorrectedValue | ( | FieldUnit | eOutUnit | ) | const |
Definition at line 1392 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
|
inline |
sal_Int64 MetricFormatter::GetMax | ( | FieldUnit | eOutUnit | ) | const |
Definition at line 1365 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
Referenced by MetricField::DumpAsPropertyTree(), ImplMetricReformat(), and MetricField::SetUnit().
sal_Int64 MetricFormatter::GetMin | ( | FieldUnit | eOutUnit | ) | const |
Definition at line 1353 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
Referenced by MetricField::DumpAsPropertyTree(), ImplMetricReformat(), and MetricField::SetUnit().
|
inline |
Definition at line 171 of file field.hxx.
Referenced by MetricField::DumpAsPropertyTree().
sal_Int64 MetricFormatter::GetValue | ( | FieldUnit | eOutUnit | ) | const |
Definition at line 1336 of file field.cxx.
References GetValueFromStringUnit().
Referenced by MetricField::DumpAsPropertyTree().
|
overrideprotectedvirtual |
Definition at line 1331 of file field.cxx.
References GetValueFromStringUnit().
|
protected |
Definition at line 1314 of file field.cxx.
References vcl::ConvertValue(), meUnit, and vcl::TextToValue().
Referenced by GetValue(), and GetValueFromString().
|
protected |
Definition at line 1217 of file field.cxx.
References CreateFieldText(), GetMax(), GetMin(), meUnit, and vcl::TextToValue().
Referenced by Reformat(), and MetricBox::ReformatAll().
|
overridevirtual |
Definition at line 1371 of file field.cxx.
References aStr, ImplMetricReformat(), and SetValue().
Referenced by MetricField::EventNotify(), MetricBox::EventNotify(), MetricBox::MetricBox(), MetricField::MetricField(), and MetricBox::ReformatAll().
void MetricFormatter::SetCustomUnitText | ( | const OUString & | rStr | ) |
Definition at line 1253 of file field.cxx.
References maCustomUnitText.
void MetricFormatter::SetMax | ( | sal_Int64 | nNewMax, |
FieldUnit | eInUnit | ||
) |
Definition at line 1359 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
Referenced by MetricField::SetUnit().
void MetricFormatter::SetMin | ( | sal_Int64 | nNewMin, |
FieldUnit | eInUnit | ||
) |
Definition at line 1347 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
Referenced by MetricField::SetUnit().
|
virtual |
Reimplemented in MetricField.
Definition at line 1241 of file field.cxx.
References meUnit.
Referenced by MetricField::SetUnit().
void MetricFormatter::SetUserValue | ( | sal_Int64 | nNewValue, |
FieldUnit | eInUnit | ||
) |
Definition at line 1307 of file field.cxx.
References vcl::ConvertValue(), and meUnit.
Referenced by SetValue().
void MetricFormatter::SetValue | ( | sal_Int64 | nNewValue, |
FieldUnit | eInUnit | ||
) |
Definition at line 1259 of file field.cxx.
References SetUserValue().
Referenced by Reformat(), and SetValue().
|
overridevirtual |
Definition at line 1341 of file field.cxx.
References nValue, and SetValue().
|
private |
Definition at line 204 of file field.hxx.
Referenced by CreateFieldText(), and SetCustomUnitText().
|
protected |
Definition at line 194 of file field.hxx.
Referenced by CreateFieldText(), GetCorrectedValue(), MetricField::GetFirst(), MetricField::GetLast(), GetMax(), GetMin(), GetValueFromStringUnit(), ImplMetricReformat(), MetricField::SetFirst(), MetricField::SetLast(), SetMax(), SetMin(), SetUnit(), and SetUserValue().