LibreOffice Module vcl (master)  1
Macros | Functions | Variables
field.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <comphelper/string.hxx>
#include <vcl/builder.hxx>
#include <vcl/field.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <svdata.hxx>
#include <i18nutil/unicode.hxx>
#include <rtl/math.hxx>
#include <unotools/localedatawrapper.hxx>
#include <boost/property_tree/ptree.hpp>
Include dependency graph for field.cxx:

Go to the source code of this file.

Macros

#define K   *1000L
 
#define M   *1000000LL
 
#define X   *5280L
 

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, long &nDecDigits)
 
static double nonValueDoubleToValueDouble (double nValue)
 
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)
 

Variables

static const sal_Int64 aImplFactor [sal_uInt16(FieldUnit::LINE)+1][sal_uInt16(FieldUnit::LINE)+1]
 
static FieldUnit eDefaultUnit = FieldUnit::NONE
 

Macro Definition Documentation

#define K   *1000L

Definition at line 1092 of file field.cxx.

#define M   *1000000LL

Definition at line 1093 of file field.cxx.

#define X   *5280L

Function Documentation

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

Definition at line 1858 of file field.cxx.

Referenced by CurrencyField::PreNotify(), and CurrencyBox::PreNotify().

static FieldUnit ImplMap2FieldUnit ( MapUnit  meUnit,
long &  nDecDigits 
)
static

Definition at line 1126 of file field.cxx.

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

static FieldUnit ImplMetricGetUnit ( const OUString &  rStr)
static

Definition at line 1086 of file field.cxx.

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

Referenced by MetricFormatter::TextToValue().

static OUString ImplMetricGetUnitText ( const OUString &  rStr)
static

Definition at line 1041 of file field.cxx.

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

Referenced by ImplMetricGetUnit(), and MetricFormatter::Reformat().

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

Definition at line 1034 of file field.cxx.

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

static OUString ImplMetricToString ( FieldUnit  rUnit)
static

Definition at line 1061 of file field.cxx.

References ImplGetFieldUnits().

Referenced by MetricFormatter::CreateFieldText().

static double nonValueDoubleToValueDouble ( double  nValue)
static

Definition at line 1162 of file field.cxx.

Referenced by MetricField::ConvertValue().

Variable Documentation

const sal_Int64 aImplFactor[sal_uInt16(FieldUnit::LINE)+1][sal_uInt16(FieldUnit::LINE)+1]
static
Initial value:
=
{
{ 1, 100, 1 K, 100 K, 100 M, 2540, 2540, 2540, 2540,2540*12,2540*12 X , 53340, 396240},
{ 1, 1, 10, 1 K, 1 M, 2540, 2540, 2540, 2540,2540*12,2540*12 X , 5334, 396240},
{ 1, 1, 1, 100, 100 K, 254, 254, 254, 254, 254*12, 254*12 X , 5334, 39624},
{ 1, 1, 1, 1, 1 K, 254, 254, 254, 254, 254*12, 254*12 X , 533400, 39624},
{ 1, 1, 1, 1, 1, 254, 254, 254, 254, 254*12, 254*12 X ,533400 K, 39624},
{ 1440,144 K,144 K,14400 K,14400LL M, 1, 20, 240, 1440,1440*12,1440*12 X , 210, 3120},
{ 72, 7200, 7200, 720 K, 720 M, 1, 1, 12, 72, 72*12, 72*12 X , 210, 156},
{ 6, 600, 600, 60 K, 60 M, 1, 1, 1, 6, 6*12, 6*12 X , 210, 10},
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 12, 12 X , 210, 45},
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 1, 1 X , 210, 45},
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 1, 1 , 210, 45},
{ 144, 1440,14400, 14400, 14400, 1, 20, 240, 1440,1440*12, 1440*12 X, 1, 156 },
{ 720,72000,72000, 7200 K,7200LL M, 20, 10, 13, 11, 11*12, 11*12 X, 105, 1 }
}
#define X
Definition: field.cxx:1094
#define M
Definition: field.cxx:1093
#define K
Definition: field.cxx:1092

Definition at line 1100 of file field.cxx.

Referenced by MetricField::ConvertDoubleValue().

FieldUnit eDefaultUnit = FieldUnit::NONE
static

Definition at line 1121 of file field.cxx.

Referenced by MetricField::GetDefaultUnit().