LibreOffice Module svtools (master) 1
|
#include <svtools/svtdllapi.h>
#include <tools/mapunit.hxx>
#include <tools/fldunit.hxx>
#include <tools/long.hxx>
Go to the source code of this file.
Namespaces | |
namespace | weld |
Typedefs | |
typedef tools::Long(* | FUNC_CONVERT) (tools::Long) |
Functions | |
SVT_DLLPUBLIC void | SetFieldUnit (weld::MetricSpinButton &rCtrl, FieldUnit eUnit, bool bAll=false) |
SVT_DLLPUBLIC tools::Long | CalcToUnit (float nIn, MapUnit eUnit) |
SVT_DLLPUBLIC tools::Long | CalcToPoint (tools::Long nIn, MapUnit eUnit, sal_uInt16 nFactor) |
SVT_DLLPUBLIC tools::Long | ItemToControl (tools::Long nIn, MapUnit eItem, FieldUnit eCtrl) |
SVT_DLLPUBLIC tools::Long | ControlToItem (tools::Long nIn, FieldUnit eCtrl, MapUnit eItem) |
SVT_DLLPUBLIC FieldUnit | MapToFieldUnit (const MapUnit eUnit) |
SVT_DLLPUBLIC void | SetMetricValue (weld::MetricSpinButton &rField, sal_Int64 nCoreValue, MapUnit eUnit) |
SVT_DLLPUBLIC sal_Int64 | GetCoreValue (const weld::MetricSpinButton &rField, MapUnit eUnit) |
SVT_DLLPUBLIC tools::Long | TransformMetric (tools::Long nVal, FieldUnit aOld, FieldUnit aNew) |
typedef tools::Long(* FUNC_CONVERT) (tools::Long) |
Definition at line 32 of file unitconv.hxx.
SVT_DLLPUBLIC tools::Long CalcToPoint | ( | tools::Long | nIn, |
MapUnit | eUnit, | ||
sal_uInt16 | nFactor | ||
) |
Definition at line 181 of file unitconv.cxx.
References o3tl::convert(), DBG_ASSERT, o3tl::invalid, MapToO3tlLength(), and o3tl::pt.
SVT_DLLPUBLIC tools::Long CalcToUnit | ( | float | nIn, |
MapUnit | eUnit | ||
) |
Definition at line 120 of file unitconv.cxx.
References o3tl::convert(), DBG_ASSERT, o3tl::invalid, MapToO3tlLength(), and o3tl::pt.
SVT_DLLPUBLIC tools::Long ControlToItem | ( | tools::Long | nIn, |
FieldUnit | eCtrl, | ||
MapUnit | eItem | ||
) |
Definition at line 146 of file unitconv.cxx.
References ItemToControl().
SVT_DLLPUBLIC sal_Int64 GetCoreValue | ( | const weld::MetricSpinButton & | rField, |
MapUnit | eUnit | ||
) |
Definition at line 96 of file unitconv.cxx.
References weld::MetricSpinButton::denormalize(), weld::MetricSpinButton::get_value(), and OutputDevice::LogicToLogic().
SVT_DLLPUBLIC tools::Long ItemToControl | ( | tools::Long | nIn, |
MapUnit | eItem, | ||
FieldUnit | eCtrl | ||
) |
Definition at line 137 of file unitconv.cxx.
References o3tl::convert(), FieldToO3tlLength(), o3tl::invalid, and MapToO3tlLength().
Referenced by ControlToItem().
SVT_DLLPUBLIC FieldUnit MapToFieldUnit | ( | const MapUnit | eUnit | ) |
Definition at line 152 of file unitconv.cxx.
SVT_DLLPUBLIC void SetFieldUnit | ( | weld::MetricSpinButton & | rCtrl, |
FieldUnit | eUnit, | ||
bool | bAll = false |
||
) |
Definition at line 27 of file unitconv.cxx.
References weld::MetricSpinButton::denormalize(), weld::MetricSpinButton::get_digits(), weld::MetricSpinButton::get_range(), weld::MetricSpinButton::get_value(), weld::MetricSpinButton::normalize(), nValue, weld::MetricSpinButton::set_digits(), weld::MetricSpinButton::set_increments(), weld::MetricSpinButton::set_range(), weld::MetricSpinButton::set_unit(), and weld::MetricSpinButton::set_value().
SVT_DLLPUBLIC void SetMetricValue | ( | weld::MetricSpinButton & | rField, |
sal_Int64 | nCoreValue, | ||
MapUnit | eUnit | ||
) |
Definition at line 89 of file unitconv.cxx.
References OutputDevice::LogicToLogic(), weld::MetricSpinButton::normalize(), and weld::MetricSpinButton::set_value().
SVT_DLLPUBLIC tools::Long TransformMetric | ( | tools::Long | nVal, |
FieldUnit | aOld, | ||
FieldUnit | aNew | ||
) |
Definition at line 195 of file unitconv.cxx.
References o3tl::convert(), FieldToO3tlLength(), o3tl::invalid, and o3tl::temporary().