LibreOffice Module xmloff (master) 1
Classes | Enumerations | Functions | Variables
XMLNumberStyles.cxx File Reference
#include "XMLNumberStylesExport.hxx"
#include <XMLNumberStylesImport.hxx>
#include <utility>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmlimp.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmltoken.hxx>
#include <o3tl/string_view.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
 

Enumerations

enum class  DataStyleNumber : sal_uInt8 {
  NONE = 0 ,
  Day = 1 ,
  DayLong = 2 ,
  MonthLong = 3 ,
  MonthText = 4 ,
  MonthLongText = 5 ,
  Year = 6 ,
  YearLong = 7 ,
  DayOfWeek = 8 ,
  DayOfWeekLong = 9 ,
  TextPoint = 10 ,
  TextSpace = 11 ,
  TextCommaSpace = 12 ,
  TextPointSpace = 13 ,
  Hours = 14 ,
  Minutes = 15 ,
  TextColon = 16 ,
  AmPm = 17 ,
  Seconds = 18 ,
  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]
 

Enumeration Type Documentation

◆ DataStyleNumber

enum class DataStyleNumber : sal_uInt8
strong
Enumerator
NONE 
Day 
DayLong 
MonthLong 
MonthText 
MonthLongText 
Year 
YearLong 
DayOfWeek 
DayOfWeekLong 
TextPoint 
TextSpace 
TextCommaSpace 
TextPointSpace 
Hours 
Minutes 
TextColon 
AmPm 
Seconds 
Seconds_02 

Definition at line 74 of file XMLNumberStyles.cxx.

Function Documentation

◆ SdXMLExportDataStyleNumber()

static void SdXMLExportDataStyleNumber ( SdXMLExport rExport,
SdXMLDataStyleNumber const &  rElement 
)
static

◆ SdXMLExportStyle()

static void SdXMLExportStyle ( SdXMLExport rExport,
const SdXMLFixedDataStyle pStyle,
const SdXMLFixedDataStyle pStyle2 = nullptr 
)
static

Variable Documentation

◆ aSdXML_DateStyle_1

const SdXMLFixedDataStyle aSdXML_DateStyle_1

◆ aSdXML_DateStyle_2

const SdXMLFixedDataStyle aSdXML_DateStyle_2

◆ aSdXML_DateStyle_3

const SdXMLFixedDataStyle aSdXML_DateStyle_3

◆ aSdXML_DateStyle_4

const SdXMLFixedDataStyle aSdXML_DateStyle_4

◆ aSdXML_DateStyle_5

const SdXMLFixedDataStyle aSdXML_DateStyle_5

◆ aSdXML_DateStyle_6

const SdXMLFixedDataStyle aSdXML_DateStyle_6

◆ aSdXML_Standard_Long

const SdXMLFixedDataStyle aSdXML_Standard_Long

◆ aSdXML_Standard_Short

const SdXMLFixedDataStyle aSdXML_Standard_Short

◆ aSdXML_TimeStyle_1

const SdXMLFixedDataStyle aSdXML_TimeStyle_1

◆ aSdXML_TimeStyle_2

const SdXMLFixedDataStyle aSdXML_TimeStyle_2

◆ aSdXML_TimeStyle_3

const SdXMLFixedDataStyle aSdXML_TimeStyle_3

◆ aSdXML_TimeStyle_4

const SdXMLFixedDataStyle aSdXML_TimeStyle_4

◆ aSdXML_TimeStyle_5

const SdXMLFixedDataStyle aSdXML_TimeStyle_5

◆ aSdXML_TimeStyle_6

const SdXMLFixedDataStyle aSdXML_TimeStyle_6

◆ aSdXML_TimeStyle_7

const SdXMLFixedDataStyle aSdXML_TimeStyle_7

◆ aSdXMLDataStyleNumbers

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 49 of file XMLNumberStyles.cxx.

Referenced by SdXMLNumberFormatImportContext::add(), and SdXMLExportStyle().

◆ aSdXMLFixedDateFormats

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

Definition at line 300 of file XMLNumberStyles.cxx.

Referenced by SdXMLNumberFormatImportContext::endFastElement(), SdXMLNumberStylesExporter::exportDateStyle(), and SdXMLNumberStylesExporter::getDateStyleName().

◆ aSdXMLFixedTimeFormats

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

Definition at line 312 of file XMLNumberStyles.cxx.

Referenced by SdXMLNumberFormatImportContext::endFastElement(), SdXMLNumberStylesExporter::exportDateStyle(), SdXMLNumberStylesExporter::exportTimeStyle(), and SdXMLNumberStylesExporter::getTimeStyleName().