LibreOffice Module xmloff (master) 1
Classes | Macros | Functions | Variables
xmlnumfi.cxx File Reference
#include <svl/zforlist.hxx>
#include <svl/numformat.hxx>
#include <svl/zformat.hxx>
#include <svl/numuno.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <tools/color.hxx>
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <sax/tools/converter.hxx>
#include <utility>
#include <xmloff/xmlement.hxx>
#include <xmloff/xmlnumfi.hxx>
#include <xmloff/xmltkmap.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmlictxt.hxx>
#include <xmloff/xmlimp.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/families.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/languagetagodf.hxx>
#include <memory>
#include <string_view>
#include <vector>
Include dependency graph for xmlnumfi.cxx:

Go to the source code of this file.

Classes

class  SvXMLNumImpData
 
struct  SvXMLNumberInfo
 

Macros

#define XML_NUMF_COLORCOUNT   10
 

Functions

static bool lcl_ValidChar (sal_Unicode cChar, const SvXMLNumFormatContext &rParent)
 
static void lcl_EnquoteIfNecessary (OUStringBuffer &rContent, const SvXMLNumFormatContext &rParent)
 
static bool lcl_IsAtEnd (OUStringBuffer &rBuffer, std::u16string_view rToken)
 

Variables

const Color aNumFmtStdColors [XML_NUMF_COLORCOUNT]
 
const SvXMLEnumMapEntry< bool > aStyleValueMap []
 
const SvXMLEnumMapEntry< bool > aFormatSourceMap []
 
const SvXMLDefaultDateFormat aDefaultDateFormats []
 

Macro Definition Documentation

◆ XML_NUMF_COLORCOUNT

#define XML_NUMF_COLORCOUNT   10

Definition at line 211 of file xmlnumfi.cxx.

Function Documentation

◆ lcl_EnquoteIfNecessary()

static void lcl_EnquoteIfNecessary ( OUStringBuffer &  rContent,
const SvXMLNumFormatContext rParent 
)
static

◆ lcl_IsAtEnd()

static bool lcl_IsAtEnd ( OUStringBuffer &  rBuffer,
std::u16string_view  rToken 
)
static

Definition at line 1975 of file xmlnumfi.cxx.

Referenced by SvXMLNumFormatContext::ReplaceNfKeyword().

◆ lcl_ValidChar()

static bool lcl_ValidChar ( sal_Unicode  cChar,
const SvXMLNumFormatContext rParent 
)
static

Variable Documentation

◆ aDefaultDateFormats

const SvXMLDefaultDateFormat aDefaultDateFormats[]
Initial value:
=
{
}
@ XML_DEA_SHORT
Definition: xmlnumfi.hxx:53
@ XML_DEA_ANY
Definition: xmlnumfi.hxx:52
@ XML_DEA_TEXTLONG
Definition: xmlnumfi.hxx:56
@ XML_DEA_TEXTSHORT
Definition: xmlnumfi.hxx:55
@ XML_DEA_LONG
Definition: xmlnumfi.hxx:54
@ XML_DEA_NONE
Definition: xmlnumfi.hxx:51
NF_DATE_SYSTEM_SHORT
NF_DATETIME_SYS_DDMMYYYY_HHMMSS
NF_DATE_SYS_DMMMYY
NF_DATE_SYS_MMYY
NF_DATE_SYS_DMMMMYYYY
NF_DATE_SYS_DDMMM
NF_DATE_SYS_NNNNDMMMMYYYY
NF_DATE_SYS_NNDMMMYY
NF_DATE_SYS_DDMMYY
NF_DATE_SYS_DMMMYYYY
NF_DATETIME_SYS_DDMMYYYY_HHMM
NF_DATE_SYS_NNDMMMMYYYY
NF_DATE_SYS_DDMMYYYY
NF_DATETIME_SYSTEM_SHORT_HHMM
NF_DATE_SYSTEM_LONG

Definition at line 264 of file xmlnumfi.cxx.

Referenced by SvXMLNumFmtDefaults::GetDefaultDateFormat().

◆ aFormatSourceMap

const SvXMLEnumMapEntry<bool> aFormatSourceMap[]
Initial value:
=
{
{ XML_FIXED, false },
{ XML_LANGUAGE, true },
{ XML_TOKEN_INVALID, false }
}

Definition at line 240 of file xmlnumfi.cxx.

◆ aNumFmtStdColors

const Color aNumFmtStdColors[XML_NUMF_COLORCOUNT]
Initial value:
=
{
}
constexpr ::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTCYAN(0x00, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTMAGENTA(0xFF, 0x00, 0xFF)
constexpr ::Color COL_BROWN(0x80, 0x80, 0x00)
constexpr ::Color COL_YELLOW(0xFF, 0xFF, 0x00)
constexpr ::Color COL_LIGHTBLUE(0x00, 0x00, 0xFF)
constexpr ::Color COL_LIGHTGREEN(0x00, 0xFF, 0x00)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)

Definition at line 213 of file xmlnumfi.cxx.

Referenced by SvXMLNumFormatContext::AddColor().

◆ aStyleValueMap

const SvXMLEnumMapEntry<bool> aStyleValueMap[]
Initial value:
=
{
{ XML_SHORT, false },
{ XML_LONG, true },
{ XML_TOKEN_INVALID, false }
}

Definition at line 233 of file xmlnumfi.cxx.