LibreOffice Module sw (master) 1
Variables
htmlfld.cxx File Reference
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <osl/diagnose.h>
#include <docsh.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <svtools/htmltokn.h>
#include <svl/numformat.hxx>
#include <svl/zforlist.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.

Variables

HTMLOptionEnum< SwFieldIds > const aHTMLFieldTypeTable []
 
HTMLNumFormatTableEntry const aHTMLDateFieldFormatTable []
 
HTMLNumFormatTableEntry const aHTMLTimeFieldFormatTable []
 
HTMLOptionEnum< SvxNumType > const aHTMLPageNumFieldFormatTable []
 
HTMLOptionEnum< SwExtUserSubType > const aHTMLExtUsrFieldSubTable []
 
HTMLOptionEnum< SwAuthorFormat > const aHTMLAuthorFieldFormatTable []
 
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
 
HTMLOptionEnum< sal_uInt16 > const aHTMLDocInfoFieldSubTable []
 
HTMLOptionEnum< sal_uInt16 > const aHTMLDocInfoFieldFormatTable []
 
HTMLOptionEnum< SwDocStatSubType > const aHTMLDocStatFieldSubTable []
 
HTMLOptionEnum< SwFileNameFormat > const aHTMLFileNameFieldFormatTable []
 

Variable Documentation

◆ aHTMLAuthorFieldFormatTable

HTMLOptionEnum<SwAuthorFormat> const aHTMLAuthorFieldFormatTable[]
Initial value:
=
{
{ nullptr, SwAuthorFormat(0) }
}
SwAuthorFormat
Definition: docufld.hxx:43
@ AF_SHORTCUT
Definition: docufld.hxx:46
@ AF_NAME
Definition: docufld.hxx:45
#define OOO_STRING_SW_HTML_FF_name
Definition: htmlfld.hxx:61
#define OOO_STRING_SW_HTML_FF_shortcut
Definition: htmlfld.hxx:62

Definition at line 131 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLDateFieldFormatTable

HTMLNumFormatTableEntry const aHTMLDateFieldFormatTable[]
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_SYSTEM_SHORT
NF_DATE_SYS_DMMMYY
NF_DATE_SYS_MMYY
NF_DATE_DIN_MMDD
NF_DATE_SYS_NNNNDMMMMYYYY
NF_DATE_SYS_NNDMMMYY
NF_DATE_DIN_DMMMMYYYY
NF_DATE_SYS_DDMMYY
NF_DATE_DIN_YYMMDD
NF_DATE_SYS_DMMMYYYY
NF_DATE_DIN_YYYYMMDD
NF_DATE_SYS_NNDMMMMYYYY
NF_DATE_SYS_DDMMYYYY
NF_NUMERIC_START
NF_DATE_SYSTEM_LONG

Definition at line 66 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLDocInfoFieldFormatTable

HTMLOptionEnum<sal_uInt16> const aHTMLDocInfoFieldFormatTable[]
Initial value:
=
{
{ nullptr, 0 }
}
#define OOO_STRING_SW_HTML_FF_date
Definition: htmlfld.hxx:75
#define OOO_STRING_SW_HTML_FF_author
Definition: htmlfld.hxx:73
#define OOO_STRING_SW_HTML_FF_time
Definition: htmlfld.hxx:74
const SwDocInfoSubType DI_SUB_AUTHOR
Definition: docufld.hxx:83
const SwDocInfoSubType DI_SUB_DATE
Definition: docufld.hxx:85
const SwDocInfoSubType DI_SUB_TIME
Definition: docufld.hxx:84

Definition at line 170 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLDocInfoFieldSubTable

HTMLOptionEnum<sal_uInt16> const aHTMLDocInfoFieldSubTable[]
Initial value:
=
{
{ "INFO1", DI_INFO1 },
{ "INFO2", DI_INFO2 },
{ "INFO3", DI_INFO3 },
{ "INFO4", DI_INFO4 },
{ nullptr, 0 }
}
const SwDocInfoSubType DI_INFO3
Definition: htmlfld.cxx:151
const SwDocInfoSubType DI_INFO4
Definition: htmlfld.cxx:152
const SwDocInfoSubType DI_INFO2
Definition: htmlfld.cxx:150
const SwDocInfoSubType DI_INFO1
Definition: htmlfld.cxx:149
#define OOO_STRING_SW_HTML_FS_custom
Definition: htmlfld.hxx:51
#define OOO_STRING_SW_HTML_FS_title
Definition: htmlfld.hxx:38
#define OOO_STRING_SW_HTML_FS_theme
Definition: htmlfld.hxx:48
#define OOO_STRING_SW_HTML_FS_change
Definition: htmlfld.hxx:53
#define OOO_STRING_SW_HTML_FS_create
Definition: htmlfld.hxx:52
#define OOO_STRING_SW_HTML_FS_comment
Definition: htmlfld.hxx:50
#define OOO_STRING_SW_HTML_FS_keys
Definition: htmlfld.hxx:49
const SwDocInfoSubType DI_CUSTOM
Definition: docufld.hxx:80
const SwDocInfoSubType DI_CHANGE
Definition: docufld.hxx:76
const SwDocInfoSubType DI_COMMENT
Definition: docufld.hxx:74
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:73
const SwDocInfoSubType DI_SUBJECT
Definition: docufld.hxx:72
const SwDocInfoSubType DI_TITLE
Definition: docufld.hxx:71
const SwDocInfoSubType DI_CREATE
Definition: docufld.hxx:75

Definition at line 154 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLDocStatFieldSubTable

HTMLOptionEnum<SwDocStatSubType> const aHTMLDocStatFieldSubTable[]
Initial value:
=
{
{ nullptr, SwDocStatSubType(0) }
}
SwDocStatSubType
Definition: docufld.hxx:52
@ DS_CHAR
Definition: docufld.hxx:57
@ DS_GRF
Definition: docufld.hxx:59
@ DS_TBL
Definition: docufld.hxx:58
@ DS_OLE
Definition: docufld.hxx:60
@ DS_PAGE
Definition: docufld.hxx:54
@ DS_WORD
Definition: docufld.hxx:56
@ DS_PARA
Definition: docufld.hxx:55
#define OOO_STRING_SW_HTML_FS_tbl
Definition: htmlfld.hxx:58
#define OOO_STRING_SW_HTML_FS_grf
Definition: htmlfld.hxx:59
#define OOO_STRING_SW_HTML_FS_char
Definition: htmlfld.hxx:57
#define OOO_STRING_SW_HTML_FS_word
Definition: htmlfld.hxx:56
#define OOO_STRING_SW_HTML_FS_para
Definition: htmlfld.hxx:55
#define OOO_STRING_SW_HTML_FS_ole
Definition: htmlfld.hxx:60
#define OOO_STRING_SW_HTML_FS_page
Definition: htmlfld.hxx:54

Definition at line 178 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLExtUsrFieldSubTable

HTMLOptionEnum<SwExtUserSubType> const aHTMLExtUsrFieldSubTable[]
Initial value:
=
{
{ nullptr, SwExtUserSubType(0) }
}
SwExtUserSubType
Definition: docufld.hxx:102
@ EU_PHONE_PRIVATE
Definition: docufld.hxx:113
@ EU_TITLE
Definition: docufld.hxx:111
@ EU_PHONE_COMPANY
Definition: docufld.hxx:114
@ EU_FIRSTNAME
Definition: docufld.hxx:104
@ EU_FAX
Definition: docufld.hxx:115
@ EU_NAME
Definition: docufld.hxx:105
@ EU_EMAIL
Definition: docufld.hxx:116
@ EU_STREET
Definition: docufld.hxx:107
@ EU_COMPANY
Definition: docufld.hxx:103
@ EU_POSITION
Definition: docufld.hxx:112
@ EU_ZIP
Definition: docufld.hxx:109
@ EU_SHORTCUT
Definition: docufld.hxx:106
@ EU_CITY
Definition: docufld.hxx:110
@ EU_COUNTRY
Definition: docufld.hxx:108
@ EU_STATE
Definition: docufld.hxx:117
#define OOO_STRING_SW_HTML_FS_company
Definition: htmlfld.hxx:30
#define OOO_STRING_SW_HTML_FS_street
Definition: htmlfld.hxx:34
#define OOO_STRING_SW_HTML_FS_zip
Definition: htmlfld.hxx:36
#define OOO_STRING_SW_HTML_FS_shortcut
Definition: htmlfld.hxx:33
#define OOO_STRING_SW_HTML_FS_email
Definition: htmlfld.hxx:43
#define OOO_STRING_SW_HTML_FS_pphone
Definition: htmlfld.hxx:40
#define OOO_STRING_SW_HTML_FS_fax
Definition: htmlfld.hxx:42
#define OOO_STRING_SW_HTML_FS_cphone
Definition: htmlfld.hxx:41
#define OOO_STRING_SW_HTML_FS_name
Definition: htmlfld.hxx:32
#define OOO_STRING_SW_HTML_FS_position
Definition: htmlfld.hxx:39
#define OOO_STRING_SW_HTML_FS_city
Definition: htmlfld.hxx:37
#define OOO_STRING_SW_HTML_FS_firstname
Definition: htmlfld.hxx:31
#define OOO_STRING_SW_HTML_FS_state
Definition: htmlfld.hxx:44
#define OOO_STRING_SW_HTML_FS_country
Definition: htmlfld.hxx:35

Definition at line 111 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLFieldTypeTable

HTMLOptionEnum<SwFieldIds> const aHTMLFieldTypeTable[]
Initial value:

Definition at line 52 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLFileNameFieldFormatTable

HTMLOptionEnum<SwFileNameFormat> const aHTMLFileNameFieldFormatTable[]
Initial value:
=
{
{ nullptr, SwFileNameFormat(0) }
}
SwFileNameFormat
Definition: fldbas.hxx:153
@ FF_NAME_NOEXT
Definition: fldbas.hxx:158
@ FF_PATH
Definition: fldbas.hxx:157
@ FF_NAME
Definition: fldbas.hxx:155
@ FF_PATHNAME
Definition: fldbas.hxx:156
#define OOO_STRING_SW_HTML_FF_pathname
Definition: htmlfld.hxx:76
#define OOO_STRING_SW_HTML_FF_name_noext
Definition: htmlfld.hxx:78
#define OOO_STRING_SW_HTML_FF_path
Definition: htmlfld.hxx:77

Definition at line 190 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLPageNumFieldFormatTable

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

Definition at line 96 of file htmlfld.cxx.

Referenced by SwHTMLParser::GetNumType(), and SwHTMLParser::NewField().

◆ aHTMLPageNumFieldSubTable

HTMLOptionEnum<SwPageNumSubType> const aHTMLPageNumFieldSubTable[]
Initial value:
=
{
{ nullptr, SwPageNumSubType(0) }
}
SwPageNumSubType
Definition: docufld.hxx:91
@ PG_NEXT
Definition: docufld.hxx:93
@ PG_RANDOM
Definition: docufld.hxx:92
@ PG_PREV
Definition: docufld.hxx:94
#define OOO_STRING_SW_HTML_FS_prev
Definition: htmlfld.hxx:47
#define OOO_STRING_SW_HTML_FS_random
Definition: htmlfld.hxx:45
#define OOO_STRING_SW_HTML_FS_next
Definition: htmlfld.hxx:46

Definition at line 138 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ aHTMLTimeFieldFormatTable

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

Definition at line 88 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ DI_INFO1

const SwDocInfoSubType DI_INFO1 = DI_SUBTYPE_END + 1

Definition at line 149 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().

◆ DI_INFO2

const SwDocInfoSubType DI_INFO2 = DI_SUBTYPE_END + 2

Definition at line 150 of file htmlfld.cxx.

◆ DI_INFO3

const SwDocInfoSubType DI_INFO3 = DI_SUBTYPE_END + 3

Definition at line 151 of file htmlfld.cxx.

◆ DI_INFO4

const SwDocInfoSubType DI_INFO4 = DI_SUBTYPE_END + 4

Definition at line 152 of file htmlfld.cxx.

Referenced by SwHTMLParser::NewField().