LibreOffice Module xmloff (master)  1
Classes | Macros | Functions | Variables
XMLNumberStyles.cxx File Reference
#include "XMLNumberStylesExport.hxx"
#include <XMLNumberStylesImport.hxx>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmlimp.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmltoken.hxx>
#include <sal/log.hxx>
#include "sdxmlexp_impl.hxx"
#include "sdxmlimp_impl.hxx"
Include dependency graph for XMLNumberStyles.cxx:

Go to the source code of this file.

Classes

struct  SdXMLFixedDataStyle
 
class  SdXMLNumberFormatMemberImportContext
 

Macros

#define DATA_STYLE_NUMBER_DAY   1
 
#define DATA_STYLE_NUMBER_DAY_LONG   2
 
#define DATA_STYLE_NUMBER_MONTH_LONG   3
 
#define DATA_STYLE_NUMBER_MONTH_TEXT   4
 
#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT   5
 
#define DATA_STYLE_NUMBER_YEAR   6
 
#define DATA_STYLE_NUMBER_YEAR_LONG   7
 
#define DATA_STYLE_NUMBER_DAYOFWEEK   8
 
#define DATA_STYLE_NUMBER_DAYOFWEEK_LONG   9
 
#define DATA_STYLE_NUMBER_TEXT_POINT   10
 
#define DATA_STYLE_NUMBER_TEXT_SPACE   11
 
#define DATA_STYLE_NUMBER_TEXT_COMMASPACE   12
 
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE   13
 
#define DATA_STYLE_NUMBER_HOURS   14
 
#define DATA_STYLE_NUMBER_MINUTES   15
 
#define DATA_STYLE_NUMBER_TEXT_COLON   16
 
#define DATA_STYLE_NUMBER_AMPM   17
 
#define DATA_STYLE_NUMBER_SECONDS   18
 
#define DATA_STYLE_NUMBER_SECONDS_02   19
 

Functions

static void SdXMLExportDataStyleNumber (SdXMLExport &rExport, SdXMLDataStyleNumber const &rElement)
 
static void SdXMLExportStyle (SdXMLExport &rExport, const SdXMLFixedDataStyle *pStyle, const SdXMLFixedDataStyle *pStyle2=nullptr)
 

Variables

SdXMLDataStyleNumber const aSdXMLDataStyleNumbers []
 
const SdXMLFixedDataStyle aSdXML_Standard_Short
 
const SdXMLFixedDataStyle aSdXML_Standard_Long
 
const SdXMLFixedDataStyle aSdXML_DateStyle_1
 
const SdXMLFixedDataStyle aSdXML_DateStyle_2
 
const SdXMLFixedDataStyle aSdXML_DateStyle_3
 
const SdXMLFixedDataStyle aSdXML_DateStyle_4
 
const SdXMLFixedDataStyle aSdXML_DateStyle_5
 
const SdXMLFixedDataStyle aSdXML_DateStyle_6
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_1
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_2
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_3
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_4
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_5
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_6
 
const SdXMLFixedDataStyle aSdXML_TimeStyle_7
 
const SdXMLFixedDataStyle *const aSdXMLFixedDateFormats [SdXMLDateFormatCount]
 
const SdXMLFixedDataStyle *const aSdXMLFixedTimeFormats [SdXMLTimeFormatCount]
 

Macro Definition Documentation

#define DATA_STYLE_NUMBER_AMPM   17

Definition at line 89 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_DAY   1

Definition at line 73 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_DAY_LONG   2

Definition at line 74 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_DAYOFWEEK   8

Definition at line 80 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_DAYOFWEEK_LONG   9

Definition at line 81 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_HOURS   14

Definition at line 86 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_MINUTES   15

Definition at line 87 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_MONTH_LONG   3

Definition at line 75 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT   5

Definition at line 77 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_MONTH_TEXT   4

Definition at line 76 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_SECONDS   18

Definition at line 90 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_SECONDS_02   19

Definition at line 91 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_TEXT_COLON   16

Definition at line 88 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_TEXT_COMMASPACE   12

Definition at line 84 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_TEXT_POINT   10

Definition at line 82 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_TEXT_POINTSPACE   13

Definition at line 85 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_TEXT_SPACE   11
#define DATA_STYLE_NUMBER_YEAR   6

Definition at line 78 of file XMLNumberStyles.cxx.

#define DATA_STYLE_NUMBER_YEAR_LONG   7

Definition at line 79 of file XMLNumberStyles.cxx.

Function Documentation

static void SdXMLExportDataStyleNumber ( SdXMLExport rExport,
SdXMLDataStyleNumber const &  rElement 
)
static
static void SdXMLExportStyle ( SdXMLExport rExport,
const SdXMLFixedDataStyle pStyle,
const SdXMLFixedDataStyle pStyle2 = nullptr 
)
static

Variable Documentation

const SdXMLFixedDataStyle aSdXML_DateStyle_1
Initial value:
=
{
"D3", false, true,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_TEXT_POINT
#define DATA_STYLE_NUMBER_YEAR
#define DATA_STYLE_NUMBER_MONTH_LONG
#define DATA_STYLE_NUMBER_DAY_LONG

Definition at line 129 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_DateStyle_2
Initial value:
=
{
"D4", false, true,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_TEXT_POINT
#define DATA_STYLE_NUMBER_MONTH_LONG
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAY_LONG

Definition at line 142 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_DateStyle_3
Initial value:
=
{
"D5", false, true,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_MONTH_TEXT
#define DATA_STYLE_NUMBER_TEXT_SPACE
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAY

Definition at line 155 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_DateStyle_4
Initial value:
=
{
"D6", false, true,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT
#define DATA_STYLE_NUMBER_TEXT_SPACE
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAY

Definition at line 168 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_DateStyle_5
Initial value:
=
{
"D7", false, true,
{
0
}
}
#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT
#define DATA_STYLE_NUMBER_DAYOFWEEK
#define DATA_STYLE_NUMBER_TEXT_COMMASPACE
#define DATA_STYLE_NUMBER_TEXT_SPACE
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAY

Definition at line 181 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_DateStyle_6
Initial value:
=
{
"D8", false, true,
{
0
}
}
#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT
#define DATA_STYLE_NUMBER_TEXT_COMMASPACE
#define DATA_STYLE_NUMBER_TEXT_SPACE
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAYOFWEEK_LONG
#define DATA_STYLE_NUMBER_DAY

Definition at line 196 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_Standard_Long
Initial value:
=
{
"D2", true, true,
{
0
}
}
#define DATA_STYLE_NUMBER_MONTH_LONG_TEXT
#define DATA_STYLE_NUMBER_TEXT_COMMASPACE
#define DATA_STYLE_NUMBER_TEXT_SPACE
#define DATA_STYLE_NUMBER_TEXT_POINTSPACE
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAYOFWEEK_LONG
#define DATA_STYLE_NUMBER_DAY

Definition at line 114 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_Standard_Short
Initial value:
=
{
"D1", true, true,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_TEXT_POINT
#define DATA_STYLE_NUMBER_MONTH_LONG
#define DATA_STYLE_NUMBER_YEAR_LONG
#define DATA_STYLE_NUMBER_DAY_LONG

Definition at line 101 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_1
Initial value:
=
{ "T1", true, false,
{
0, 0,
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_SECONDS
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON
#define DATA_STYLE_NUMBER_AMPM

Definition at line 211 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_2
Initial value:
=
{ "T2", false, false,
{
0, 0, 0, 0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON

Definition at line 224 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_3
Initial value:
=
{ "T3", false, false,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_SECONDS
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON

Definition at line 234 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_4
Initial value:
=
{ "T4", false, false,
{
0, 0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_SECONDS_02
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON

Definition at line 246 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_5
Initial value:
=
{ "T5", false, false,
{
0, 0, 0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON
#define DATA_STYLE_NUMBER_AMPM

Definition at line 258 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_6
Initial value:
=
{ "T6", false, false,
{
0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_SECONDS
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON
#define DATA_STYLE_NUMBER_AMPM

Definition at line 269 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle aSdXML_TimeStyle_7
Initial value:
=
{ "T7", false, false,
{
0, 0
}
}
#define DATA_STYLE_NUMBER_HOURS
#define DATA_STYLE_NUMBER_SECONDS_02
#define DATA_STYLE_NUMBER_MINUTES
#define DATA_STYLE_NUMBER_TEXT_COLON
#define DATA_STYLE_NUMBER_AMPM

Definition at line 282 of file XMLNumberStyles.cxx.

SdXMLDataStyleNumber const aSdXMLDataStyleNumbers[]
Initial value:
=
{
{ XML_DAY, false, false, false, nullptr },
{ XML_DAY, true, false, false, nullptr },
{ XML_MONTH, true, false, false, nullptr },
{ XML_MONTH, false, true, false, nullptr },
{ XML_MONTH, true, true, false, nullptr },
{ XML_YEAR, false, false, false, nullptr },
{ XML_YEAR, true, false, false, nullptr },
{ XML_DAY_OF_WEEK, false, false, false, nullptr },
{ XML_DAY_OF_WEEK, true, false, false, nullptr },
{ XML_TEXT, false, false, false, "." },
{ XML_TEXT, false, false, false, " " },
{ XML_TEXT, false, false, false, ", " },
{ XML_TEXT, false, false, false, ". " },
{ XML_HOURS, false, false, false, nullptr },
{ XML_MINUTES, false, false, false, nullptr },
{ XML_TEXT, false, false, false, ":" },
{ XML_AM_PM, false, false, false, nullptr },
{ XML_SECONDS, false, false, false, nullptr },
{ XML_SECONDS, false, false, true, nullptr },
{ XML_TOKEN_INVALID, false, false, false, nullptr }
}

Definition at line 47 of file XMLNumberStyles.cxx.

Referenced by SdXMLNumberFormatImportContext::add().

const SdXMLFixedDataStyle* const aSdXMLFixedDateFormats[SdXMLDateFormatCount]
Initial value:
=
{
}
const SdXMLFixedDataStyle aSdXML_Standard_Short
const SdXMLFixedDataStyle aSdXML_Standard_Long
const SdXMLFixedDataStyle aSdXML_DateStyle_4
const SdXMLFixedDataStyle aSdXML_DateStyle_1
const SdXMLFixedDataStyle aSdXML_DateStyle_2
const SdXMLFixedDataStyle aSdXML_DateStyle_3
const SdXMLFixedDataStyle aSdXML_DateStyle_6
const SdXMLFixedDataStyle aSdXML_DateStyle_5

Definition at line 295 of file XMLNumberStyles.cxx.

const SdXMLFixedDataStyle* const aSdXMLFixedTimeFormats[SdXMLTimeFormatCount]
Initial value:
=
{
}
const SdXMLFixedDataStyle aSdXML_TimeStyle_5
const SdXMLFixedDataStyle aSdXML_TimeStyle_6
const SdXMLFixedDataStyle aSdXML_TimeStyle_1
const SdXMLFixedDataStyle aSdXML_TimeStyle_4
const SdXMLFixedDataStyle aSdXML_TimeStyle_2
const SdXMLFixedDataStyle aSdXML_TimeStyle_3
const SdXMLFixedDataStyle aSdXML_TimeStyle_7

Definition at line 307 of file XMLNumberStyles.cxx.