20#ifndef INCLUDED_SVX_SOURCE_DIALOG_DLGUNIT_HXX
21#define INCLUDED_SVX_SOURCE_DIALOG_DLGUNIT_HXX
23#include <rtl/ustrbuf.hxx>
30 = OUString::number(
vcl::ConvertValue(nVal_100, 2, MapUnit::Map100thMM, eFieldUnit));
32 while (aVal.getLength() < 3)
35 aVal.insert(aVal.getLength() - 2, cSep);
37 if (eFieldUnit != FieldUnit::NONE && eFieldUnit != FieldUnit::DEGREE
38 && eFieldUnit != FieldUnit::INCH)
40 if (eFieldUnit == FieldUnit::INCH)
42 OUString sDoublePrime =
u"\u2033";
43 if (aSuffix !=
"\"" && aSuffix != sDoublePrime)
46 aSuffix = sDoublePrime;
50 return aVal.makeStringAndClear();
OUString GetUnitString(tools::Long nVal_100, FieldUnit eFieldUnit, sal_Unicode cSep)
sal_Int64 ConvertValue(sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)