LibreOffice Module svl (master) 1
|
#include <sal/config.h>
#include <sal/log.hxx>
#include <officecfg/Office/Common.hxx>
#include <svl/zforlist.hxx>
#include <svl/currencytable.hxx>
#include <comphelper/string.hxx>
#include <o3tl/string_view.hxx>
#include <tools/debug.hxx>
#include <unotools/charclass.hxx>
#include <unotools/configmgr.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <unotools/localedatawrapper.hxx>
#include <com/sun/star/i18n/KNumberFormatUsage.hpp>
#include <com/sun/star/i18n/KNumberFormatType.hpp>
#include <com/sun/star/i18n/FormatElement.hpp>
#include <com/sun/star/i18n/Currency2.hpp>
#include <com/sun/star/i18n/NumberFormatCode.hpp>
#include <com/sun/star/i18n/XNumberFormatCode.hpp>
#include <com/sun/star/i18n/NumberFormatMapper.hpp>
#include <comphelper/processfactory.hxx>
#include <osl/mutex.hxx>
#include "zforscan.hxx"
#include "zforfind.hxx"
#include <svl/zformat.hxx>
#include <i18npool/reservedconstants.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <unotools/digitgroupingiterator.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/math.hxx>
#include <math.h>
#include <limits>
#include <memory>
#include <set>
Go to the source code of this file.
Classes | |
class | SvNumberFormatterRegistry_Impl |
instead of every number formatter being a listener we have a registry which also handles one instance of the SysLocale options More... | |
Functions | |
static OUString | lcl_buildBooleanStringFormat (SvNumberformat *pEntry) |
IMPL_STATIC_LINK_NOARG (SvNumberFormatter, CurrencyChangeLink, LinkParamNone *, void) | |
static void | lcl_CheckCurrencySymbolPosition (const NfCurrencyEntry &rCurr) |
static std::ptrdiff_t | addToCurrencyFormatsList (NfWSStringsDtor &rStrArr, const OUString &rFormat) |
static sal_uInt16 | lcl_MergeNegativeParenthesisFormat (sal_uInt16 nIntlFormat, sal_uInt16 nCurrFormat) |
Call this only if nCurrFormat is really with parentheses! More... | |
Variables | |
sal_uInt32 const | indexTable [NF_INDEX_TABLE_ENTRIES] |
#define NF_BANKSYMBOL_FIX_POSITION 1 |
Definition at line 270 of file zforlist.cxx.
#define UNKNOWN_SUBSTITUTE LANGUAGE_ENGLISH_US |
Definition at line 107 of file zforlist.cxx.
#define ZF_STANDARD 0 |
Definition at line 66 of file zforlist.cxx.
#define ZF_STANDARD_CURRENCY 20 |
Definition at line 68 of file zforlist.cxx.
#define ZF_STANDARD_DATE 30 |
Definition at line 69 of file zforlist.cxx.
#define ZF_STANDARD_DATE_DIN_DMMMMYYYY (ZF_STANDARD_DATE + 16) |
Definition at line 84 of file zforlist.cxx.
#define ZF_STANDARD_DATE_DIN_DMMMYYYY (ZF_STANDARD_DATE + 15) |
Definition at line 83 of file zforlist.cxx.
#define ZF_STANDARD_DATE_DIN_MMDD (ZF_STANDARD_DATE + 17) |
Definition at line 85 of file zforlist.cxx.
#define ZF_STANDARD_DATE_DIN_YYMMDD (ZF_STANDARD_DATE + 18) |
Definition at line 86 of file zforlist.cxx.
#define ZF_STANDARD_DATE_DIN_YYYYMMDD (ZF_STANDARD_DATE + 19) |
Definition at line 87 of file zforlist.cxx.
#define ZF_STANDARD_DATE_SYS_DMMMMYYYY (ZF_STANDARD_DATE + 11) |
Definition at line 79 of file zforlist.cxx.
#define ZF_STANDARD_DATE_SYS_DMMMYYYY (ZF_STANDARD_DATE + 10) |
Definition at line 78 of file zforlist.cxx.
#define ZF_STANDARD_DATE_SYS_NNDMMMMYYYY (ZF_STANDARD_DATE + 13) |
Definition at line 81 of file zforlist.cxx.
#define ZF_STANDARD_DATE_SYS_NNDMMMYY (ZF_STANDARD_DATE + 12) |
Definition at line 80 of file zforlist.cxx.
#define ZF_STANDARD_DATE_SYS_NNNNDMMMMYYYY (ZF_STANDARD_DATE + 14) |
Definition at line 82 of file zforlist.cxx.
#define ZF_STANDARD_DATE_WW (ZF_STANDARD_DATE + 20) |
Definition at line 88 of file zforlist.cxx.
#define ZF_STANDARD_DATETIME 70 |
Definition at line 72 of file zforlist.cxx.
#define ZF_STANDARD_DURATION (ZF_STANDARD_TIME + 4) |
Definition at line 71 of file zforlist.cxx.
#define ZF_STANDARD_FRACTION 85 |
Definition at line 74 of file zforlist.cxx.
#define ZF_STANDARD_LOGICAL SV_MAX_COUNT_STANDARD_FORMATS-1 |
Definition at line 90 of file zforlist.cxx.
#define ZF_STANDARD_PERCENT 10 |
Definition at line 67 of file zforlist.cxx.
#define ZF_STANDARD_SCIENTIFIC 80 |
Definition at line 73 of file zforlist.cxx.
#define ZF_STANDARD_TEXT SV_MAX_COUNT_STANDARD_FORMATS |
Definition at line 91 of file zforlist.cxx.
#define ZF_STANDARD_TIME 60 |
Definition at line 70 of file zforlist.cxx.
|
static |
Definition at line 4312 of file zforlist.cxx.
Referenced by SvNumberFormatter::GetCurrencyFormatStrings().
IMPL_STATIC_LINK_NOARG | ( | SvNumberFormatter | , |
CurrencyChangeLink | , | ||
LinkParamNone * | , | ||
void | |||
) |
Definition at line 3738 of file zforlist.cxx.
References SvtSysLocaleOptions::GetCurrencyAbbrevAndLanguage(), and LANGUAGE_SYSTEM.
|
static |
Definition at line 885 of file zforlist.cxx.
References SvNumberformat::GetOutputString().
Referenced by SvNumberFormatter::GetFormatStringForExcel().
|
static |
Definition at line 4101 of file zforlist.cxx.
References LocaleDataWrapper::outputCheckMessage().
Referenced by SvNumberFormatter::ImpInitCurrencyTable().
|
static |
Call this only if nCurrFormat is really with parentheses!
Definition at line 4742 of file zforlist.cxx.
References SAL_WARN.
sal_uInt32 const indexTable[NF_INDEX_TABLE_ENTRIES] |
Definition at line 110 of file zforlist.cxx.
Referenced by SvNumberFormatter::GetFormatIndex(), and SvNumberFormatter::GetIndexTableOffset().