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 (std::u16string_view rStr)
 
static OUString ImplMetricToString (FieldUnit rUnit)
 
static FieldUnit ImplMetricGetUnit (std::u16string_view 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 1652 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 1645 of file field.cxx.

◆ ImplMap2FieldUnit()

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

Definition at line 984 of file field.cxx.

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

◆ ImplMetricGetUnit()

static FieldUnit ImplMetricGetUnit ( std::u16string_view  rStr)
static

Definition at line 978 of file field.cxx.

References aStr, and ImplMetricGetUnitText().

Referenced by vcl::TextToValue().

◆ ImplMetricGetUnitText()

static OUString ImplMetricGetUnitText ( std::u16string_view  rStr)
static

Definition at line 930 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 923 of file field.cxx.

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

◆ ImplMetricToString()

static OUString ImplMetricToString ( FieldUnit  rUnit)
static

Definition at line 950 of file field.cxx.

References ImplGetFieldUnits().

Referenced by MetricFormatter::CreateFieldText().

◆ nonValueDoubleToValueDouble()

static double nonValueDoubleToValueDouble ( double  nValue)
static

Definition at line 1020 of file field.cxx.

References nValue.

Referenced by vcl::ConvertValue().