LibreOffice Module tools (master) 1
|
#include <o3tl/unit_conversion.hxx>
#include <sal/types.h>
#include <tools/fldunit.hxx>
#include <tools/fract.hxx>
#include <tools/mapunit.hxx>
Go to the source code of this file.
Functions | |
constexpr o3tl::Length | FieldToO3tlLength (FieldUnit eU, o3tl::Length ePixelValue=o3tl::Length::px) |
constexpr o3tl::Length | MapToO3tlLength (MapUnit eU, o3tl::Length ePixelValue=o3tl::Length::px) |
Fraction | conversionFract (o3tl::Length from, o3tl::Length to) |
template<typename N > | |
constexpr auto | convertTwipToMm100 (N n) |
constexpr sal_Int64 | sanitiseMm100ToTwip (sal_Int64 n) |
template<typename N > | |
constexpr auto | convertPointToMm100 (N n) |
template<typename N > | |
constexpr auto | convertMm100ToPoint (N n) |
template<typename N > | |
constexpr auto | convertMasterUnitToMm100 (N n) |
template<typename N > | |
constexpr auto | convertMm100ToMasterUnit (N n) |
|
inline |
Definition at line 87 of file UnitConversion.hxx.
Definition at line 113 of file UnitConversion.hxx.
References o3tl::convert(), o3tl::master, o3tl::mm100, and n.
Definition at line 117 of file UnitConversion.hxx.
References o3tl::convert(), o3tl::master, o3tl::mm100, and n.
Definition at line 107 of file UnitConversion.hxx.
References o3tl::convert(), o3tl::mm100, n, and o3tl::pt.
Definition at line 103 of file UnitConversion.hxx.
References o3tl::convert(), o3tl::mm100, n, and o3tl::pt.
Definition at line 93 of file UnitConversion.hxx.
References o3tl::convert(), o3tl::mm100, n, and o3tl::twip.
|
constexpr |
|
constexpr |
Definition at line 56 of file UnitConversion.hxx.
References o3tl::cm, o3tl::in, o3tl::in10, o3tl::in100, o3tl::in1000, o3tl::invalid, Map1000thInch, Map100thInch, Map100thMM, Map10thInch, Map10thMM, MapCM, MapInch, MapMM, MapPixel, MapPoint, MapTwip, o3tl::mm, o3tl::mm10, o3tl::mm100, o3tl::pt, and o3tl::twip.
|
constexpr |
Definition at line 98 of file UnitConversion.hxx.
References o3tl::convertSaturate(), o3tl::mm100, n, and o3tl::twip.