LibreOffice Module svl (master) 1
|
#include <config_options.h>
#include <svl/svldllapi.h>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <i18nlangtag/lang.h>
#include <com/sun/star/util/NumberFormat.hpp>
#include <unotools/localedatawrapper.hxx>
#include <map>
#include <unordered_map>
Go to the source code of this file.
Classes | |
struct | o3tl::typed_flags< SvNumFormatType > |
struct | o3tl::typed_flags< SvNumInputOptions > |
Namespaces | |
namespace | com |
namespace | com::sun |
namespace | com::sun::star |
namespace | com::sun::star::i18n |
namespace | o3tl |
Macros | |
#define | SV_COUNTRY_LANGUAGE_OFFSET 10000 |
#define | SV_MAX_COUNT_STANDARD_FORMATS 100 |
Typedefs | |
typedef std::map< sal_uInt32, SvNumberformat * > | SvNumberFormatTable |
This table is std::map because it needs to preserve insertion order, because the formats are roughly ordered from most to least common, and some parts of the UI want to show them in that order. More... | |
typedef std::unordered_map< sal_uInt16, sal_uInt32 > | SvNumberFormatterIndexTable |
typedef std::unordered_map< sal_uInt32, sal_uInt32 > | SvNumberFormatterMergeMap |
typedef std::vector< OUString > | NfWSStringsDtor |
Functions | |
class | UNLESS_MERGELIBS (SVL_DLLPUBLIC) NfCurrencyEntry final |
Language/country dependent currency entries. More... | |
Variables | |
constexpr size_t | NF_MAX_FORMAT_SYMBOLS = 100 |
constexpr sal_uInt32 | NF_STANDARD_FORMAT_TEXT = SV_MAX_COUNT_STANDARD_FORMATS |
The built-in @ Text format, offset within a locale, key in the locale the number formatter was constructed with. More... | |
constexpr sal_uInt32 | NUMBERFORMAT_ENTRY_NOT_FOUND = 0xffffffff |
#define SV_COUNTRY_LANGUAGE_OFFSET 10000 |
Definition at line 38 of file zforlist.hxx.
#define SV_MAX_COUNT_STANDARD_FORMATS 100 |
Definition at line 39 of file zforlist.hxx.
typedef std::vector< OUString > NfWSStringsDtor |
Definition at line 366 of file zforlist.hxx.
typedef std::map<sal_uInt32, SvNumberformat*> SvNumberFormatTable |
This table is std::map because it needs to preserve insertion order, because the formats are roughly ordered from most to least common, and some parts of the UI want to show them in that order.
Definition at line 286 of file zforlist.hxx.
typedef std::unordered_map<sal_uInt16, sal_uInt32> SvNumberFormatterIndexTable |
Definition at line 287 of file zforlist.hxx.
typedef std::unordered_map< sal_uInt32, sal_uInt32> SvNumberFormatterMergeMap |
Definition at line 288 of file zforlist.hxx.
enum NfEvalDateFormat |
enum values for <method>SvNumberFormatter::SetEvalDateFormat</method>
How <method>ImpSvNumberInputScan::GetDateRef</method> shall take the DateFormat order (YMD,DMY,MDY) into account, if called from IsNumberFormat with a date format to match against.
Enumerator | |
---|---|
NF_EVALDATEFORMAT_INTL | DateFormat only from International, default. |
NF_EVALDATEFORMAT_FORMAT | DateFormat only from date format passed to function (if any). If no date format is passed then the DateFormat is taken from International. |
NF_EVALDATEFORMAT_INTL_FORMAT | First try the DateFormat from International. If it doesn't match a valid date try the DateFormat from the date format passed. |
NF_EVALDATEFORMAT_FORMAT_INTL | First try the DateFormat from the date format passed. If it doesn't match a valid date try the DateFormat from International. |
Definition at line 264 of file zforlist.hxx.
enum NfIndexTableOffset |
enum values for <method>SvNumberFormatter::GetFormatIndex</method>
Builtin standard formats, order should be also the arrangement in the dialog list box representation.
Date specials:
Do NOT insert any new values! The values here correspond with those in offapi/com/sun/star/i18n/NumberFormatIndex.idl You may append values though after NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS.
Definition at line 123 of file zforlist.hxx.
|
strong |
MAX_ULONG.
Definition at line 49 of file zforlist.hxx.
|
strong |
Input options to be used with IsNumberFormat()
Enumerator | |
---|---|
NONE | |
LAX_TIME | allow input of minutes or seconds >59 |
Definition at line 369 of file zforlist.hxx.
|
final |
Language/country dependent currency entries.
currency symbol
currency abbreviation
language/country value
position of symbol
position of symbol and type and position of negative sign
count of decimal digits
which character is used for zeros as last decimal digits
Symbols and language identical
Only to resolve system locale for currency list.
[$DM-407] (bBank==false) or [$DEM] (bBank==true) is returned. If bBank==false and bWithoutExtension==true only [$DM]
#,##0.00 [$DM-407] is returned, separators from rLoc, incl. minus sign but without [RED]
[$DM-407] (or [$DEM] if bBank==true) is appended/prepended to rStr, incl. minus sign
rSymStr is appended/prepended to rStr, incl. minus sign
Representation of a currency (symbol position and negative sign) in other language settings
General Unicode Euro symbol
Definition at line 288 of file zforlist.hxx.
|
constexpr |
Definition at line 41 of file zforlist.hxx.
Referenced by ImpSvNumberformatScan::CopyInfo(), ImpSvNumberformatScan::InsertSymbol(), and ImpSvNumberformatScan::Symbol_Division().
|
constexpr |
The built-in @ Text format, offset within a locale, key in the locale the number formatter was constructed with.
Definition at line 45 of file zforlist.hxx.
|
constexpr |
Definition at line 47 of file zforlist.hxx.
Referenced by SvNumberFormatter::GetFormatIndex(), SvNumberFormatter::GetFormatStringForExcel(), SvNumberFormatter::GetIndexPuttingAndConverting(), SvNumberFormatter::GetPreviewString(), SvNumberFormatter::GetPreviewStringGuess(), SvNumberFormatter::ImpConstruct(), SvNumberFormatter::ImpGetDefaultCurrencyFormat(), SvNumberFormatter::ImpGetDefaultFormat(), SvNumberFormatter::ImpGetDefaultSystemCurrencyFormat(), SvNumberFormatter::ImpInsertFormat(), SvNumberFormatter::ImpIsEntry(), SvNumberFormatter::IsUserDefined(), SvNumberFormatter::MergeFormatter(), SvNumberFormatter::PutandConvertEntry(), SvNumberFormatter::PutEntry(), SvNumberFormatsObj::queryKey(), SvNumberFormatter::ResetDefaultSystemCurrency(), and SvNumberFormatter::TestNewString().