LibreOffice Module sw (master)  1
Classes | Variables
htmlfld.cxx File Reference
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <osl/diagnose.h>
#include <docsh.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <svtools/htmltokn.h>
#include <svl/zformat.hxx>
#include <unotools/useroptions.hxx>
#include <fmtfld.hxx>
#include <ndtxt.hxx>
#include <doc.hxx>
#include <fldbas.hxx>
#include <docufld.hxx>
#include <flddat.hxx>
#include "htmlfld.hxx"
#include "swhtml.hxx"
Include dependency graph for htmlfld.cxx:

Go to the source code of this file.

Classes

struct  HTMLNumFormatTableEntry
 

Variables

static HTMLOptionEnum< SwFieldIds > const aHTMLFieldTypeTable []
 
static HTMLNumFormatTableEntry const aHTMLDateFieldFormatTable []
 
static HTMLNumFormatTableEntry const aHTMLTimeFieldFormatTable []
 
static HTMLOptionEnum< SvxNumType > const aHTMLPageNumFieldFormatTable []
 
static HTMLOptionEnum< SwExtUserSubType > const aHTMLExtUsrFieldSubTable []
 
static HTMLOptionEnum< SwAuthorFormat > const aHTMLAuthorFieldFormatTable []
 
static HTMLOptionEnum< SwPageNumSubType > const aHTMLPageNumFieldSubTable []
 
const SwDocInfoSubType DI_INFO1 = DI_SUBTYPE_END + 1
 
const SwDocInfoSubType DI_INFO2 = DI_SUBTYPE_END + 2
 
const SwDocInfoSubType DI_INFO3 = DI_SUBTYPE_END + 3
 
const SwDocInfoSubType DI_INFO4 = DI_SUBTYPE_END + 4
 
static HTMLOptionEnum< sal_uInt16 > const aHTMLDocInfoFieldSubTable []
 
static HTMLOptionEnum< sal_uInt16 > const aHTMLDocInfoFieldFormatTable []
 
static HTMLOptionEnum< SwDocStatSubType > const aHTMLDocStatFieldSubTable []
 
static HTMLOptionEnum< SwFileNameFormat > const aHTMLFileNameFieldFormatTable []
 

Variable Documentation

HTMLOptionEnum<SwAuthorFormat> const aHTMLAuthorFieldFormatTable[]
static
Initial value:
=
{
{ nullptr, SwAuthorFormat(0) }
}
#define OOO_STRING_SW_HTML_FF_shortcut
Definition: htmlfld.hxx:63
#define OOO_STRING_SW_HTML_FF_name
Definition: htmlfld.hxx:62
SwAuthorFormat
Definition: docufld.hxx:37

Definition at line 126 of file htmlfld.cxx.

HTMLNumFormatTableEntry const aHTMLDateFieldFormatTable[]
static
Initial value:
=
{
{ "SSYS", NF_DATE_SYSTEM_SHORT },
{ "LSYS", NF_DATE_SYSTEM_LONG },
{ "DMY", NF_DATE_SYS_DDMMYY, },
{ "DMYY", NF_DATE_SYS_DDMMYYYY, },
{ "DMMY", NF_DATE_SYS_DMMMYY, },
{ "DMMYY", NF_DATE_SYS_DMMMYYYY, },
{ "DMMMY", NF_DATE_DIN_DMMMMYYYY },
{ "DMMMYY", NF_DATE_DIN_DMMMMYYYY },
{ "DDMMY", NF_DATE_SYS_NNDMMMYY },
{ "DDMMMY", NF_DATE_SYS_NNDMMMMYYYY },
{ "DDMMMYY", NF_DATE_SYS_NNDMMMMYYYY },
{ "DDDMMMY", NF_DATE_SYS_NNNNDMMMMYYYY },
{ "DDDMMMYY", NF_DATE_SYS_NNNNDMMMMYYYY },
{ "MY", NF_DATE_SYS_MMYY },
{ "MD", NF_DATE_DIN_MMDD },
{ "YMD", NF_DATE_DIN_YYMMDD },
{ "YYMD", NF_DATE_DIN_YYYYMMDD },
{ nullptr, NF_NUMERIC_START }
}
NF_DATE_DIN_YYYYMMDD
NF_DATE_SYS_NNDMMMMYYYY
NF_DATE_SYS_DDMMYY
NF_DATE_DIN_YYMMDD
NF_DATE_SYS_DMMMYYYY
NF_DATE_SYS_DDMMYYYY
NF_DATE_DIN_DMMMMYYYY
NF_DATE_SYSTEM_LONG
NF_DATE_SYS_NNNNDMMMMYYYY
NF_DATE_SYS_DMMMYY
NF_DATE_SYSTEM_SHORT
NF_DATE_SYS_MMYY
NF_DATE_DIN_MMDD
NF_DATE_SYS_NNDMMMYY
NF_NUMERIC_START

Definition at line 61 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

HTMLOptionEnum<sal_uInt16> const aHTMLDocInfoFieldFormatTable[]
static
Initial value:
=
{
{ nullptr, 0 }
}
const SwDocInfoSubType DI_SUB_TIME
Definition: docufld.hxx:79
const SwDocInfoSubType DI_SUB_DATE
Definition: docufld.hxx:80
const SwDocInfoSubType DI_SUB_AUTHOR
Definition: docufld.hxx:78
#define OOO_STRING_SW_HTML_FF_time
Definition: htmlfld.hxx:75
#define OOO_STRING_SW_HTML_FF_author
Definition: htmlfld.hxx:74
#define OOO_STRING_SW_HTML_FF_date
Definition: htmlfld.hxx:76

Definition at line 165 of file htmlfld.cxx.

HTMLOptionEnum<sal_uInt16> const aHTMLDocInfoFieldSubTable[]
static
Initial value:
=
{
{ "INFO1", DI_INFO1 },
{ "INFO2", DI_INFO2 },
{ "INFO3", DI_INFO3 },
{ "INFO4", DI_INFO4 },
{ nullptr, 0 }
}
#define OOO_STRING_SW_HTML_FS_title
Definition: htmlfld.hxx:39
const SwDocInfoSubType DI_INFO1
Definition: htmlfld.cxx:144
const SwDocInfoSubType DI_COMMENT
Definition: docufld.hxx:69
const SwDocInfoSubType DI_INFO3
Definition: htmlfld.cxx:146
#define OOO_STRING_SW_HTML_FS_custom
Definition: htmlfld.hxx:52
const SwDocInfoSubType DI_CUSTOM
Definition: docufld.hxx:75
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:68
const SwDocInfoSubType DI_CREATE
Definition: docufld.hxx:70
#define OOO_STRING_SW_HTML_FS_theme
Definition: htmlfld.hxx:49
#define OOO_STRING_SW_HTML_FS_keys
Definition: htmlfld.hxx:50
#define OOO_STRING_SW_HTML_FS_comment
Definition: htmlfld.hxx:51
const SwDocInfoSubType DI_INFO4
Definition: htmlfld.cxx:147
const SwDocInfoSubType DI_CHANGE
Definition: docufld.hxx:71
const SwDocInfoSubType DI_THEMA
Definition: docufld.hxx:67
#define OOO_STRING_SW_HTML_FS_change
Definition: htmlfld.hxx:54
const SwDocInfoSubType DI_TITLE
Definition: docufld.hxx:66
#define OOO_STRING_SW_HTML_FS_create
Definition: htmlfld.hxx:53
const SwDocInfoSubType DI_INFO2
Definition: htmlfld.cxx:145

Definition at line 149 of file htmlfld.cxx.

HTMLOptionEnum<SwDocStatSubType> const aHTMLDocStatFieldSubTable[]
static
Initial value:
=
{
{ nullptr, SwDocStatSubType(0) }
}
#define OOO_STRING_SW_HTML_FS_page
Definition: htmlfld.hxx:55
#define OOO_STRING_SW_HTML_FS_char
Definition: htmlfld.hxx:58
SwDocStatSubType
Definition: docufld.hxx:46
#define OOO_STRING_SW_HTML_FS_word
Definition: htmlfld.hxx:57
#define OOO_STRING_SW_HTML_FS_ole
Definition: htmlfld.hxx:61
#define OOO_STRING_SW_HTML_FS_tbl
Definition: htmlfld.hxx:59
#define OOO_STRING_SW_HTML_FS_para
Definition: htmlfld.hxx:56
#define OOO_STRING_SW_HTML_FS_grf
Definition: htmlfld.hxx:60

Definition at line 173 of file htmlfld.cxx.

HTMLOptionEnum<SwExtUserSubType> const aHTMLExtUsrFieldSubTable[]
static
Initial value:
=
{
{ nullptr, SwExtUserSubType(0) }
}
#define OOO_STRING_SW_HTML_FS_title
Definition: htmlfld.hxx:39
#define OOO_STRING_SW_HTML_FS_email
Definition: htmlfld.hxx:44
SwExtUserSubType
Definition: docufld.hxx:96
#define OOO_STRING_SW_HTML_FS_firstname
Definition: htmlfld.hxx:32
#define OOO_STRING_SW_HTML_FS_name
Definition: htmlfld.hxx:33
#define OOO_STRING_SW_HTML_FS_city
Definition: htmlfld.hxx:38
#define OOO_STRING_SW_HTML_FS_shortcut
Definition: htmlfld.hxx:34
#define OOO_STRING_SW_HTML_FS_state
Definition: htmlfld.hxx:45
#define OOO_STRING_SW_HTML_FS_cphone
Definition: htmlfld.hxx:42
#define OOO_STRING_SW_HTML_FS_country
Definition: htmlfld.hxx:36
#define OOO_STRING_SW_HTML_FS_company
Definition: htmlfld.hxx:31
#define OOO_STRING_SW_HTML_FS_fax
Definition: htmlfld.hxx:43
#define OOO_STRING_SW_HTML_FS_position
Definition: htmlfld.hxx:40
#define OOO_STRING_SW_HTML_FS_zip
Definition: htmlfld.hxx:37
#define OOO_STRING_SW_HTML_FS_pphone
Definition: htmlfld.hxx:41
#define OOO_STRING_SW_HTML_FS_street
Definition: htmlfld.hxx:35

Definition at line 106 of file htmlfld.cxx.

HTMLOptionEnum<SwFieldIds> const aHTMLFieldTypeTable[]
static
HTMLOptionEnum<SwFileNameFormat> const aHTMLFileNameFieldFormatTable[]
static
Initial value:
=
{
{ nullptr, SwFileNameFormat(0) }
}
#define OOO_STRING_SW_HTML_FF_name
Definition: htmlfld.hxx:62
SwFileNameFormat
Definition: fldbas.hxx:145
#define OOO_STRING_SW_HTML_FF_path
Definition: htmlfld.hxx:78
#define OOO_STRING_SW_HTML_FF_name_noext
Definition: htmlfld.hxx:79
#define OOO_STRING_SW_HTML_FF_pathname
Definition: htmlfld.hxx:77

Definition at line 185 of file htmlfld.cxx.

HTMLOptionEnum<SvxNumType> const aHTMLPageNumFieldFormatTable[]
static
Initial value:
=
{
{ nullptr, SvxNumType(0) }
}
SVX_NUM_CHARS_UPPER_LETTER_N
SVX_NUM_NUMBER_NONE
SVX_NUM_CHARS_UPPER_LETTER
#define OOO_STRING_SW_HTML_FF_lroman
Definition: htmlfld.hxx:67
#define OOO_STRING_SW_HTML_FF_llettern
Definition: htmlfld.hxx:73
SvxNumType
SVX_NUM_ARABIC
SVX_NUM_ROMAN_UPPER
SVX_NUM_ROMAN_LOWER
SVX_NUM_CHAR_SPECIAL
#define OOO_STRING_SW_HTML_FF_arabic
Definition: htmlfld.hxx:68
SVX_NUM_CHARS_LOWER_LETTER
#define OOO_STRING_SW_HTML_FF_page
Definition: htmlfld.hxx:71
#define OOO_STRING_SW_HTML_FF_uroman
Definition: htmlfld.hxx:66
SVX_NUM_CHARS_LOWER_LETTER_N
#define OOO_STRING_SW_HTML_FF_char
Definition: htmlfld.hxx:70
#define OOO_STRING_SW_HTML_FF_ulettern
Definition: htmlfld.hxx:72
SVX_NUM_PAGEDESC
#define OOO_STRING_SW_HTML_FF_uletter
Definition: htmlfld.hxx:64
#define OOO_STRING_SW_HTML_FF_lletter
Definition: htmlfld.hxx:65
#define OOO_STRING_SW_HTML_FF_none
Definition: htmlfld.hxx:69

Definition at line 91 of file htmlfld.cxx.

Referenced by SwHTMLParser::GetNumType().

HTMLOptionEnum<SwPageNumSubType> const aHTMLPageNumFieldSubTable[]
static
Initial value:
=
{
{ nullptr, SwPageNumSubType(0) }
}
#define OOO_STRING_SW_HTML_FS_next
Definition: htmlfld.hxx:47
#define OOO_STRING_SW_HTML_FS_random
Definition: htmlfld.hxx:46
SwPageNumSubType
Definition: docufld.hxx:85
#define OOO_STRING_SW_HTML_FS_prev
Definition: htmlfld.hxx:48

Definition at line 133 of file htmlfld.cxx.

HTMLNumFormatTableEntry const aHTMLTimeFieldFormatTable[]
static
Initial value:
=
{
{ "SYS", NF_TIME_HHMMSS },
{ "SSMM24", NF_TIME_HHMM },
{ "SSMM12", NF_TIME_HHMMAMPM },
{ nullptr, NF_NUMERIC_START }
}
NF_TIME_HHMM
NF_TIME_HHMMSS
NF_TIME_HHMMAMPM
NF_NUMERIC_START

Definition at line 83 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

const SwDocInfoSubType DI_INFO1 = DI_SUBTYPE_END + 1

Definition at line 144 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

const SwDocInfoSubType DI_INFO2 = DI_SUBTYPE_END + 2

Definition at line 145 of file htmlfld.cxx.

const SwDocInfoSubType DI_INFO3 = DI_SUBTYPE_END + 3

Definition at line 146 of file htmlfld.cxx.

const SwDocInfoSubType DI_INFO4 = DI_SUBTYPE_END + 4

Definition at line 147 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().