LibreOffice Module vcl (master) 1
Namespaces | Functions
field.cxx File Reference
#include <sal/config.h>
#include <cmath>
#include <string_view>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <comphelper/string.hxx>
#include <tools/UnitConversion.hxx>
#include <vcl/builder.hxx>
#include <vcl/fieldvalues.hxx>
#include <vcl/toolkit/field.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/uitest/uiobject.hxx>
#include <vcl/uitest/metricfielduiobject.hxx>
#include <svdata.hxx>
#include <i18nutil/unicode.hxx>
#include <rtl/math.hxx>
#include <unotools/localedatawrapper.hxx>
#include <boost/property_tree/ptree.hpp>
#include <tools/json_writer.hxx>
Include dependency graph for field.cxx:

Go to the source code of this file.

Namespaces

namespace  vcl
 

Functions

static bool ImplMetricProcessKeyInput (const KeyEvent &rKEvt, bool bUseThousandSep, const LocaleDataWrapper &rWrapper)
 
static OUString ImplMetricGetUnitText (const OUString &rStr)
 
static OUString ImplMetricToString (FieldUnit rUnit)
 
static FieldUnit ImplMetricGetUnit (const OUString &rStr)
 
static FieldUnit ImplMap2FieldUnit (MapUnit meUnit, tools::Long &nDecDigits)
 
static double nonValueDoubleToValueDouble (double nValue)
 
sal_Int64 vcl::ConvertValue (sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
 
sal_Int64 vcl::ConvertValue (sal_Int64 nValue, sal_uInt16 nDigits, MapUnit eInUnit, FieldUnit eOutUnit)
 
double vcl::ConvertDoubleValue (double nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
 
double vcl::ConvertDoubleValue (double nValue, sal_uInt16 nDigits, MapUnit eInUnit, FieldUnit eOutUnit)
 
double vcl::ConvertDoubleValue (double nValue, sal_uInt16 nDigits, FieldUnit eInUnit, MapUnit eOutUnit)
 
bool vcl::TextToValue (const OUString &rStr, double &rValue, sal_Int64 nBaseValue, sal_uInt16 nDecDigits, const LocaleDataWrapper &rLocaleDataWrapper, FieldUnit eUnit)
 
static bool ImplCurrencyProcessKeyInput (const KeyEvent &rKEvt, bool bUseThousandSep, const LocaleDataWrapper &rWrapper)
 
static bool ImplCurrencyGetValue (const OUString &rStr, sal_Int64 &rValue, sal_uInt16 nDecDigits, const LocaleDataWrapper &rWrapper)
 

Function Documentation

◆ ImplCurrencyGetValue()

static bool ImplCurrencyGetValue ( const OUString &  rStr,
sal_Int64 &  rValue,
sal_uInt16  nDecDigits,
const LocaleDataWrapper rWrapper 
)
static

Definition at line 1655 of file field.cxx.

Referenced by ImplLongCurrencyGetValue(), and ImplLongCurrencyReformat().

◆ ImplCurrencyProcessKeyInput()

static bool ImplCurrencyProcessKeyInput ( const KeyEvent rKEvt,
bool  bUseThousandSep,
const LocaleDataWrapper rWrapper 
)
static

Definition at line 1648 of file field.cxx.

◆ ImplMap2FieldUnit()

static FieldUnit ImplMap2FieldUnit ( MapUnit  meUnit,
tools::Long nDecDigits 
)
static

Definition at line 987 of file field.cxx.

Referenced by vcl::ConvertDoubleValue(), and vcl::ConvertValue().

◆ ImplMetricGetUnit()

static FieldUnit ImplMetricGetUnit ( const OUString &  rStr)
static

Definition at line 981 of file field.cxx.

References aStr, and ImplMetricGetUnitText().

Referenced by vcl::TextToValue().

◆ ImplMetricGetUnitText()

static OUString ImplMetricGetUnitText ( const OUString &  rStr)
static

Definition at line 933 of file field.cxx.

References aStr, i, unicode::isAlpha(), and unicode::isControl().

Referenced by ImplMetricGetUnit().

◆ ImplMetricProcessKeyInput()

static bool ImplMetricProcessKeyInput ( const KeyEvent rKEvt,
bool  bUseThousandSep,
const LocaleDataWrapper rWrapper 
)
static

Definition at line 926 of file field.cxx.

Referenced by MetricField::PreNotify(), and MetricBox::PreNotify().

◆ ImplMetricToString()

static OUString ImplMetricToString ( FieldUnit  rUnit)
static

Definition at line 953 of file field.cxx.

References ImplGetFieldUnits().

Referenced by MetricFormatter::CreateFieldText().

◆ nonValueDoubleToValueDouble()

static double nonValueDoubleToValueDouble ( double  nValue)
static

Definition at line 1023 of file field.cxx.

References nValue.

Referenced by vcl::ConvertValue().