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 <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

 vcl
 

Functions

static bool ImplMetricProcessKeyInput (const KeyEvent &rKEvt, bool bUseThousandSep, const LocaleDataWrapper &rWrapper)
 
static OUString ImplMetricGetUnitText (const OUString &rStr)
 
static OUString ImplMetricToString (FieldUnit rUnit)
 
FieldUnit vcl::StringToMetric (const OUString &rMetricString)
 
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

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

Definition at line 1645 of file field.cxx.

Referenced by ImplLongCurrencyGetValue(), and ImplLongCurrencyReformat().

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

Definition at line 1638 of file field.cxx.

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

Definition at line 977 of file field.cxx.

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

static FieldUnit ImplMetricGetUnit ( const OUString &  rStr)
static

Definition at line 971 of file field.cxx.

References ImplMetricGetUnitText(), and vcl::StringToMetric().

Referenced by vcl::TextToValue().

static OUString ImplMetricGetUnitText ( const OUString &  rStr)
static

Definition at line 923 of file field.cxx.

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

Referenced by ImplMetricGetUnit().

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

Definition at line 916 of file field.cxx.

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

static OUString ImplMetricToString ( FieldUnit  rUnit)
static

Definition at line 943 of file field.cxx.

References ImplGetFieldUnits().

Referenced by MetricFormatter::CreateFieldText().

static double nonValueDoubleToValueDouble ( double  nValue)
static

Definition at line 1013 of file field.cxx.

Referenced by vcl::ConvertValue().