LibreOffice Module basic (master) 1
Macros | Functions | Variables
sbxform.cxx File Reference
#include <stdlib.h>
#include <sbxform.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/character.hxx>
#include <o3tl/sprintf.hxx>
#include <o3tl/string_view.hxx>
#include <string_view>
#include <utility>
#include <stdio.h>
#include <float.h>
#include <math.h>
Include dependency graph for sbxform.cxx:

Go to the source code of this file.

Macros

#define NO_DIGIT_   -1
 
#define MAX_NO_OF_DIGITS   DBL_DIG
 
#define MAX_DOUBLE_BUFFER_LENGTH   MAX_NO_OF_DIGITS + 9
 
#define CREATE_1000SEP_CHAR   '@'
 
#define FORMAT_SEPARATOR   ';'
 

Functions

static double get_number_of_digits (double dNumber)
 

Variables

constexpr OUStringLiteral BASICFORMAT_GENERALNUMBER = u"General Number"
 
constexpr OUStringLiteral BASICFORMAT_CURRENCY = u"Currency"
 
constexpr OUStringLiteral BASICFORMAT_FIXED = u"Fixed"
 
constexpr OUStringLiteral BASICFORMAT_STANDARD = u"Standard"
 
constexpr OUStringLiteral BASICFORMAT_PERCENT = u"Percent"
 
constexpr OUStringLiteral BASICFORMAT_SCIENTIFIC = u"Scientific"
 
constexpr OUStringLiteral BASICFORMAT_YESNO = u"Yes/No"
 
constexpr OUStringLiteral BASICFORMAT_TRUEFALSE = u"True/False"
 
constexpr OUStringLiteral BASICFORMAT_ONOFF = u"On/Off"
 
constexpr OUStringLiteral GENERALNUMBER_FORMAT = u"0.############"
 
constexpr OUStringLiteral FIXED_FORMAT = u"0.00"
 
constexpr OUStringLiteral STANDARD_FORMAT = u"@0.00"
 
constexpr OUStringLiteral PERCENT_FORMAT = u"0.00%"
 
constexpr OUStringLiteral SCIENTIFIC_FORMAT = u"#.00E+00"
 

Macro Definition Documentation

◆ CREATE_1000SEP_CHAR

#define CREATE_1000SEP_CHAR   '@'

Definition at line 60 of file sbxform.cxx.

◆ FORMAT_SEPARATOR

#define FORMAT_SEPARATOR   ';'

Definition at line 62 of file sbxform.cxx.

◆ MAX_DOUBLE_BUFFER_LENGTH

#define MAX_DOUBLE_BUFFER_LENGTH   MAX_NO_OF_DIGITS + 9

Definition at line 52 of file sbxform.cxx.

◆ MAX_NO_OF_DIGITS

#define MAX_NO_OF_DIGITS   DBL_DIG

Definition at line 51 of file sbxform.cxx.

◆ NO_DIGIT_

#define NO_DIGIT_   -1

Definition at line 49 of file sbxform.cxx.

Function Documentation

◆ get_number_of_digits()

static double get_number_of_digits ( double  dNumber)
static

Variable Documentation

◆ BASICFORMAT_CURRENCY

constexpr OUStringLiteral BASICFORMAT_CURRENCY = u"Currency"
constexpr

Definition at line 66 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_FIXED

constexpr OUStringLiteral BASICFORMAT_FIXED = u"Fixed"
constexpr

Definition at line 67 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_GENERALNUMBER

constexpr OUStringLiteral BASICFORMAT_GENERALNUMBER = u"General Number"
constexpr

Definition at line 65 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_ONOFF

constexpr OUStringLiteral BASICFORMAT_ONOFF = u"On/Off"
constexpr

Definition at line 73 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_PERCENT

constexpr OUStringLiteral BASICFORMAT_PERCENT = u"Percent"
constexpr

Definition at line 69 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_SCIENTIFIC

constexpr OUStringLiteral BASICFORMAT_SCIENTIFIC = u"Scientific"
constexpr

Definition at line 70 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_STANDARD

constexpr OUStringLiteral BASICFORMAT_STANDARD = u"Standard"
constexpr

Definition at line 68 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_TRUEFALSE

constexpr OUStringLiteral BASICFORMAT_TRUEFALSE = u"True/False"
constexpr

Definition at line 72 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ BASICFORMAT_YESNO

constexpr OUStringLiteral BASICFORMAT_YESNO = u"Yes/No"
constexpr

Definition at line 71 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat(), and SbxBasicFormater::isBasicFormat().

◆ FIXED_FORMAT

constexpr OUStringLiteral FIXED_FORMAT = u"0.00"
constexpr

Definition at line 79 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat().

◆ GENERALNUMBER_FORMAT

constexpr OUStringLiteral GENERALNUMBER_FORMAT = u"0.############"
constexpr

Definition at line 78 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat().

◆ PERCENT_FORMAT

constexpr OUStringLiteral PERCENT_FORMAT = u"0.00%"
constexpr

Definition at line 81 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat().

◆ SCIENTIFIC_FORMAT

constexpr OUStringLiteral SCIENTIFIC_FORMAT = u"#.00E+00"
constexpr

Definition at line 82 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat().

◆ STANDARD_FORMAT

constexpr OUStringLiteral STANDARD_FORMAT = u"@0.00"
constexpr

Definition at line 80 of file sbxform.cxx.

Referenced by SbxBasicFormater::BasicFormat().