diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-08 10:01:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-08 10:35:40 +0100 |
commit | d98b46841ed9643fa32f142feb050649ee9ddd08 (patch) | |
tree | afe4cb90c77e88335be8ba9cc1f8f2dee417cc6c /xmloff | |
parent | 888e15f3c2a5f16c129d08c3580da521ae682535 (diff) |
remove unused SvXMLTokenMapEntry
Change-Id: Idc3005e5604a0c346740a81746fd35b45955afed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107371
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 21 | ||||
-rw-r--r-- | xmloff/source/text/XMLFootnoteImportContext.cxx | 9 | ||||
-rw-r--r-- | xmloff/source/text/XMLIndexSourceBaseContext.cxx | 100 | ||||
-rw-r--r-- | xmloff/source/text/XMLSectionImportContext.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 324 |
6 files changed, 0 insertions, 478 deletions
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index a7d4b93349d5..eb2c4480656c 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -169,27 +169,6 @@ enum XMLFtnConfigToken } -const SvXMLTokenMapEntry aTextFieldAttrTokenMap[] = -{ - { XML_NAMESPACE_TEXT, XML_CITATION_STYLE_NAME, XML_TOK_FTNCONFIG_CITATION_STYLENAME }, - { XML_NAMESPACE_TEXT, XML_CITATION_BODY_STYLE_NAME, XML_TOK_FTNCONFIG_ANCHOR_STYLENAME }, - { XML_NAMESPACE_TEXT, XML_DEFAULT_STYLE_NAME, XML_TOK_FTNCONFIG_DEFAULT_STYLENAME }, - { XML_NAMESPACE_TEXT, XML_MASTER_PAGE_NAME, XML_TOK_FTNCONFIG_PAGE_STYLENAME }, - { XML_NAMESPACE_TEXT, XML_START_VALUE, XML_TOK_FTNCONFIG_OFFSET }, - { XML_NAMESPACE_STYLE, XML_NUM_PREFIX, XML_TOK_FTNCONFIG_NUM_PREFIX }, - { XML_NAMESPACE_STYLE, XML_NUM_SUFFIX, XML_TOK_FTNCONFIG_NUM_SUFFIX }, - { XML_NAMESPACE_STYLE, XML_NUM_FORMAT, XML_TOK_FTNCONFIG_NUM_FORMAT }, - { XML_NAMESPACE_STYLE, XML_NUM_LETTER_SYNC, XML_TOK_FTNCONFIG_NUM_SYNC }, - { XML_NAMESPACE_TEXT, XML_START_NUMBERING_AT, XML_TOK_FTNCONFIG_START_AT}, - { XML_NAMESPACE_TEXT, XML_FOOTNOTES_POSITION, XML_TOK_FTNCONFIG_POSITION}, - - // for backwards compatibility with SRC630 & earlier - { XML_NAMESPACE_TEXT, XML_NUM_PREFIX, XML_TOK_FTNCONFIG_NUM_PREFIX }, - { XML_NAMESPACE_TEXT, XML_NUM_SUFFIX, XML_TOK_FTNCONFIG_NUM_SUFFIX }, - { XML_NAMESPACE_TEXT, XML_OFFSET, XML_TOK_FTNCONFIG_OFFSET }, - XML_TOKEN_MAP_END -}; - SvXMLEnumMapEntry<sal_Int16> const aFootnoteNumberingMap[] = { { XML_PAGE, FootnoteNumbering::PER_PAGE }, diff --git a/xmloff/source/text/XMLFootnoteImportContext.cxx b/xmloff/source/text/XMLFootnoteImportContext.cxx index 524a4c923328..dd660ab75fae 100644 --- a/xmloff/source/text/XMLFootnoteImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteImportContext.cxx @@ -53,15 +53,6 @@ enum XMLFootnoteChildToken { } -const SvXMLTokenMapEntry aFootnoteChildTokenMap[] = -{ - { XML_NAMESPACE_TEXT, XML_NOTE_CITATION, - XML_TOK_FTN_NOTE_CITATION }, - { XML_NAMESPACE_TEXT, XML_NOTE_BODY, XML_TOK_FTN_NOTE_BODY }, - XML_TOKEN_MAP_END -}; - - XMLFootnoteImportContext::XMLFootnoteImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp ) diff --git a/xmloff/source/text/XMLIndexSourceBaseContext.cxx b/xmloff/source/text/XMLIndexSourceBaseContext.cxx index 732e5a7f9a31..6d133473ac98 100644 --- a/xmloff/source/text/XMLIndexSourceBaseContext.cxx +++ b/xmloff/source/text/XMLIndexSourceBaseContext.cxx @@ -38,106 +38,6 @@ using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Any; using ::com::sun::star::xml::sax::XAttributeList; -const SvXMLTokenMapEntry aIndexSourceTokenMap[] = -{ - { XML_NAMESPACE_TEXT, - XML_OUTLINE_LEVEL, - XML_TOK_INDEXSOURCE_OUTLINE_LEVEL}, - { XML_NAMESPACE_TEXT, - XML_USE_INDEX_MARKS, - XML_TOK_INDEXSOURCE_USE_INDEX_MARKS }, - { XML_NAMESPACE_TEXT, - XML_INDEX_SCOPE, - XML_TOK_INDEXSOURCE_INDEX_SCOPE }, - { XML_NAMESPACE_TEXT, - XML_RELATIVE_TAB_STOP_POSITION, - XML_TOK_INDEXSOURCE_RELATIVE_TABS } , - { XML_NAMESPACE_TEXT, - XML_USE_OTHER_OBJECTS, - XML_TOK_INDEXSOURCE_USE_OTHER_OBJECTS }, - { XML_NAMESPACE_TEXT, - XML_USE_SPREADSHEET_OBJECTS, - XML_TOK_INDEXSOURCE_USE_SHEET }, - { XML_NAMESPACE_TEXT, - XML_USE_CHART_OBJECTS, - XML_TOK_INDEXSOURCE_USE_CHART }, - { XML_NAMESPACE_TEXT, - XML_USE_DRAW_OBJECTS, - XML_TOK_INDEXSOURCE_USE_DRAW }, - { XML_NAMESPACE_TEXT, - XML_USE_IMAGE_OBJECTS, - XML_TOK_INDEXSOURCE_USE_IMAGE }, - { XML_NAMESPACE_TEXT, - XML_USE_MATH_OBJECTS, - XML_TOK_INDEXSOURCE_USE_MATH }, - { XML_NAMESPACE_TEXT, - XML_MAIN_ENTRY_STYLE_NAME, - XML_TOK_INDEXSOURCE_MAIN_ENTRY_STYLE }, - { XML_NAMESPACE_TEXT, - XML_IGNORE_CASE, - XML_TOK_INDEXSOURCE_IGNORE_CASE }, - { XML_NAMESPACE_TEXT, - XML_ALPHABETICAL_SEPARATORS, - XML_TOK_INDEXSOURCE_SEPARATORS }, - { XML_NAMESPACE_TEXT, - XML_COMBINE_ENTRIES, - XML_TOK_INDEXSOURCE_COMBINE_ENTRIES }, - { XML_NAMESPACE_TEXT, - XML_COMBINE_ENTRIES_WITH_DASH, - XML_TOK_INDEXSOURCE_COMBINE_WITH_DASH }, - { XML_NAMESPACE_TEXT, - XML_USE_KEYS_AS_ENTRIES, - XML_TOK_INDEXSOURCE_KEYS_AS_ENTRIES }, - { XML_NAMESPACE_TEXT, - XML_COMBINE_ENTRIES_WITH_PP, - XML_TOK_INDEXSOURCE_COMBINE_WITH_PP }, - { XML_NAMESPACE_TEXT, - XML_CAPITALIZE_ENTRIES, - XML_TOK_INDEXSOURCE_CAPITALIZE }, - { XML_NAMESPACE_TEXT, - XML_USE_OBJECTS, - XML_TOK_INDEXSOURCE_USE_OBJECTS }, - { XML_NAMESPACE_TEXT, - XML_USE_GRAPHICS, - XML_TOK_INDEXSOURCE_USE_GRAPHICS }, - { XML_NAMESPACE_TEXT, - XML_USE_TABLES, - XML_TOK_INDEXSOURCE_USE_TABLES }, - { XML_NAMESPACE_TEXT, - XML_USE_FLOATING_FRAMES, - XML_TOK_INDEXSOURCE_USE_FRAMES }, - { XML_NAMESPACE_TEXT, - XML_COPY_OUTLINE_LEVELS, - XML_TOK_INDEXSOURCE_COPY_OUTLINE_LEVELS }, - { XML_NAMESPACE_TEXT, - XML_USE_CAPTION, - XML_TOK_INDEXSOURCE_USE_CAPTION }, - { XML_NAMESPACE_TEXT, - XML_CAPTION_SEQUENCE_NAME, - XML_TOK_INDEXSOURCE_SEQUENCE_NAME }, - { XML_NAMESPACE_TEXT, - XML_CAPTION_SEQUENCE_FORMAT, - XML_TOK_INDEXSOURCE_SEQUENCE_FORMAT }, - { XML_NAMESPACE_TEXT, - XML_COMMA_SEPARATED, - XML_TOK_INDEXSOURCE_COMMA_SEPARATED }, - { XML_NAMESPACE_TEXT, - XML_USE_INDEX_SOURCE_STYLES, - XML_TOK_INDEXSOURCE_USE_INDEX_SOURCE_STYLES }, - { XML_NAMESPACE_TEXT, XML_SORT_ALGORITHM, - XML_TOK_INDEXSOURCE_SORT_ALGORITHM }, - { XML_NAMESPACE_STYLE, XML_RFC_LANGUAGE_TAG, XML_TOK_INDEXSOURCE_RFC_LANGUAGE_TAG }, - { XML_NAMESPACE_FO, XML_LANGUAGE, XML_TOK_INDEXSOURCE_LANGUAGE }, - { XML_NAMESPACE_FO, XML_SCRIPT, XML_TOK_INDEXSOURCE_SCRIPT }, - { XML_NAMESPACE_FO, XML_COUNTRY, XML_TOK_INDEXSOURCE_COUNTRY }, - { XML_NAMESPACE_TEXT, XML_INDEX_NAME, XML_TOK_INDEXSOURCE_USER_INDEX_NAME }, - { XML_NAMESPACE_TEXT, - XML_USE_OUTLINE_LEVEL, - XML_TOK_INDEXSOURCE_USE_OUTLINE_LEVEL}, - - XML_TOKEN_MAP_END -}; - XMLIndexSourceBaseContext::XMLIndexSourceBaseContext( SvXMLImport& rImport, diff --git a/xmloff/source/text/XMLSectionImportContext.cxx b/xmloff/source/text/XMLSectionImportContext.cxx index 25da4d0a2eba..5959f50e4919 100644 --- a/xmloff/source/text/XMLSectionImportContext.cxx +++ b/xmloff/source/text/XMLSectionImportContext.cxx @@ -66,20 +66,6 @@ enum XMLSectionToken } -const SvXMLTokenMapEntry aSectionTokenMap[] = -{ - { XML_NAMESPACE_XML , XML_ID, XML_TOK_SECTION_XMLID }, - { XML_NAMESPACE_TEXT, XML_STYLE_NAME, XML_TOK_SECTION_STYLE_NAME }, - { XML_NAMESPACE_TEXT, XML_NAME, XML_TOK_SECTION_NAME }, - { XML_NAMESPACE_TEXT, XML_CONDITION, XML_TOK_SECTION_CONDITION }, - { XML_NAMESPACE_TEXT, XML_DISPLAY, XML_TOK_SECTION_DISPLAY }, - { XML_NAMESPACE_TEXT, XML_PROTECTED, XML_TOK_SECTION_PROTECT }, - { XML_NAMESPACE_TEXT, XML_PROTECTION_KEY, XML_TOK_SECTION_PROTECTION_KEY}, - { XML_NAMESPACE_TEXT, XML_IS_HIDDEN, XML_TOK_SECTION_IS_HIDDEN }, - // compatibility with SRC629 (or earlier) versions - { XML_NAMESPACE_TEXT, XML_PROTECT, XML_TOK_SECTION_PROTECT }, - XML_TOKEN_MAP_END -}; // section import: This one is fairly tricky due to a variety of diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index f7cb315896fb..6db4ae090453 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -2612,16 +2612,6 @@ enum DdeFieldDeclAttrs } -const SvXMLTokenMapEntry aDdeDeclAttrTokenMap[] = -{ - { XML_NAMESPACE_OFFICE, XML_NAME, XML_TOK_DDEFIELD_NAME }, - { XML_NAMESPACE_OFFICE, XML_DDE_APPLICATION, XML_TOK_DDEFIELD_APPLICATION }, - { XML_NAMESPACE_OFFICE, XML_DDE_TOPIC, XML_TOK_DDEFIELD_TOPIC }, - { XML_NAMESPACE_OFFICE, XML_DDE_ITEM, XML_TOK_DDEFIELD_ITEM }, - { XML_NAMESPACE_OFFICE, XML_AUTOMATIC_UPDATE, XML_TOK_DDEFIELD_UPDATE }, - XML_TOKEN_MAP_END -}; - XMLDdeFieldDeclsImportContext::XMLDdeFieldDeclsImportContext(SvXMLImport& rImport) : SvXMLImportContext(rImport) diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 5380cd2491fb..6585a4b25517 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -87,330 +87,6 @@ using namespace ::com::sun::star::lang; using namespace ::xmloff::token; using namespace ::com::sun::star::ucb; -const SvXMLTokenMapEntry aTextElemTokenMap[] = -{ - { XML_NAMESPACE_TEXT, XML_P, XML_TOK_TEXT_P }, - { XML_NAMESPACE_LO_EXT, XML_P, XML_TOK_TEXT_P }, - { XML_NAMESPACE_TEXT, XML_H, XML_TOK_TEXT_H }, - { XML_NAMESPACE_TEXT, XML_LIST, XML_TOK_TEXT_LIST }, - { XML_NAMESPACE_DRAW, XML_FRAME, XML_TOK_TEXT_FRAME_PAGE }, - { XML_NAMESPACE_DRAW, XML_A, XML_TOK_DRAW_A_PAGE }, - { XML_NAMESPACE_TABLE,XML_TABLE, XML_TOK_TABLE_TABLE }, - { XML_NAMESPACE_LO_EXT,XML_TABLE, XML_TOK_TABLE_TABLE }, - { XML_NAMESPACE_TEXT, XML_VARIABLE_DECLS, XML_TOK_TEXT_VARFIELD_DECLS }, - { XML_NAMESPACE_TEXT, XML_USER_FIELD_DECLS, XML_TOK_TEXT_USERFIELD_DECLS }, - { XML_NAMESPACE_TEXT, XML_SEQUENCE_DECLS, XML_TOK_TEXT_SEQUENCE_DECLS }, - { XML_NAMESPACE_TEXT, XML_DDE_CONNECTION_DECLS, XML_TOK_TEXT_DDE_DECLS }, - { XML_NAMESPACE_TEXT, XML_SECTION, XML_TOK_TEXT_SECTION }, - { XML_NAMESPACE_TEXT, XML_TABLE_OF_CONTENT, XML_TOK_TEXT_TOC }, - { XML_NAMESPACE_TEXT, XML_OBJECT_INDEX, XML_TOK_TEXT_OBJECT_INDEX }, - { XML_NAMESPACE_TEXT, XML_TABLE_INDEX, XML_TOK_TEXT_TABLE_INDEX }, - { XML_NAMESPACE_TEXT, XML_ILLUSTRATION_INDEX, XML_TOK_TEXT_ILLUSTRATION_INDEX }, - { XML_NAMESPACE_TEXT, XML_USER_INDEX, XML_TOK_TEXT_USER_INDEX }, - { XML_NAMESPACE_TEXT, XML_ALPHABETICAL_INDEX, XML_TOK_TEXT_ALPHABETICAL_INDEX }, - { XML_NAMESPACE_TEXT, XML_BIBLIOGRAPHY, XML_TOK_TEXT_BIBLIOGRAPHY_INDEX }, - { XML_NAMESPACE_TEXT, XML_INDEX_TITLE, XML_TOK_TEXT_INDEX_TITLE }, - { XML_NAMESPACE_TEXT, XML_TRACKED_CHANGES, XML_TOK_TEXT_TRACKED_CHANGES }, - { XML_NAMESPACE_TEXT, XML_CHANGE_START, XML_TOK_TEXT_CHANGE_START }, - { XML_NAMESPACE_TEXT, XML_CHANGE_END, XML_TOK_TEXT_CHANGE_END }, - { XML_NAMESPACE_TEXT, XML_CHANGE, XML_TOK_TEXT_CHANGE }, - { XML_NAMESPACE_OFFICE, XML_FORMS, XML_TOK_TEXT_FORMS }, - { XML_NAMESPACE_TABLE, XML_CALCULATION_SETTINGS, XML_TOK_TEXT_CALCULATION_SETTINGS }, - { XML_NAMESPACE_TEXT, XML_ALPHABETICAL_INDEX_AUTO_MARK_FILE, XML_TOK_TEXT_AUTOMARK }, - // #i52127# - { XML_NAMESPACE_TEXT, XML_NUMBERED_PARAGRAPH, XML_TOK_TEXT_NUMBERED_PARAGRAPH }, - - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextPElemTokenMap[] = -{ - { XML_NAMESPACE_TEXT, XML_SPAN, XML_TOK_TEXT_SPAN }, - { XML_NAMESPACE_TEXT, XML_TAB, XML_TOK_TEXT_TAB_STOP }, - { XML_NAMESPACE_TEXT, XML_LINE_BREAK, XML_TOK_TEXT_LINE_BREAK }, - { XML_NAMESPACE_TEXT, XML_SOFT_PAGE_BREAK, XML_TOK_TEXT_SOFT_PAGE_BREAK }, - { XML_NAMESPACE_TEXT, XML_S, XML_TOK_TEXT_S }, - { XML_NAMESPACE_TEXT, XML_A, XML_TOK_TEXT_HYPERLINK }, - { XML_NAMESPACE_TEXT, XML_RUBY, XML_TOK_TEXT_RUBY }, - - { XML_NAMESPACE_TEXT, XML_NOTE, XML_TOK_TEXT_NOTE }, - { XML_NAMESPACE_TEXT, XML_BOOKMARK, XML_TOK_TEXT_BOOKMARK }, - { XML_NAMESPACE_TEXT, XML_BOOKMARK_START, XML_TOK_TEXT_BOOKMARK_START }, - { XML_NAMESPACE_TEXT, XML_BOOKMARK_END, XML_TOK_TEXT_BOOKMARK_END }, - { XML_NAMESPACE_TEXT, XML_REFERENCE_MARK, XML_TOK_TEXT_REFERENCE }, - { XML_NAMESPACE_TEXT, XML_REFERENCE_MARK_START, - XML_TOK_TEXT_REFERENCE_START }, - { XML_NAMESPACE_TEXT, XML_REFERENCE_MARK_END, - XML_TOK_TEXT_REFERENCE_END }, - - { XML_NAMESPACE_DRAW, XML_FRAME, XML_TOK_TEXT_FRAME }, - { XML_NAMESPACE_DRAW, XML_A, XML_TOK_DRAW_A }, - - // index marks - { XML_NAMESPACE_TEXT, XML_TOC_MARK, XML_TOK_TEXT_TOC_MARK }, - { XML_NAMESPACE_TEXT, XML_TOC_MARK_START, XML_TOK_TEXT_TOC_MARK_START }, - { XML_NAMESPACE_TEXT, XML_TOC_MARK_END, XML_TOK_TEXT_TOC_MARK_END }, - { XML_NAMESPACE_TEXT, XML_USER_INDEX_MARK, XML_TOK_TEXT_USER_INDEX_MARK }, - { XML_NAMESPACE_TEXT, XML_USER_INDEX_MARK_START, - XML_TOK_TEXT_USER_INDEX_MARK_START }, - { XML_NAMESPACE_TEXT, XML_USER_INDEX_MARK_END, - XML_TOK_TEXT_USER_INDEX_MARK_END }, - { XML_NAMESPACE_TEXT, XML_ALPHABETICAL_INDEX_MARK, - XML_TOK_TEXT_ALPHA_INDEX_MARK }, - { XML_NAMESPACE_TEXT, XML_ALPHABETICAL_INDEX_MARK_START, - XML_TOK_TEXT_ALPHA_INDEX_MARK_START }, - { XML_NAMESPACE_TEXT, XML_ALPHABETICAL_INDEX_MARK_END, - XML_TOK_TEXT_ALPHA_INDEX_MARK_END }, - - // sender fields - { XML_NAMESPACE_TEXT, XML_SENDER_FIRSTNAME,XML_TOK_TEXT_SENDER_FIRSTNAME}, - { XML_NAMESPACE_TEXT, XML_SENDER_LASTNAME, XML_TOK_TEXT_SENDER_LASTNAME }, - // note: loext was written by accident in some LO versions, don't remove! - { XML_NAMESPACE_LO_EXT, XML_SENDER_INITIALS, XML_TOK_TEXT_SENDER_INITIALS }, - { XML_NAMESPACE_TEXT, XML_SENDER_INITIALS, XML_TOK_TEXT_SENDER_INITIALS }, - { XML_NAMESPACE_TEXT, XML_SENDER_TITLE, XML_TOK_TEXT_SENDER_TITLE }, - { XML_NAMESPACE_TEXT, XML_SENDER_POSITION, XML_TOK_TEXT_SENDER_POSITION }, - { XML_NAMESPACE_TEXT, XML_SENDER_EMAIL, XML_TOK_TEXT_SENDER_EMAIL }, - { XML_NAMESPACE_TEXT, XML_SENDER_PHONE_PRIVATE, - XML_TOK_TEXT_SENDER_PHONE_PRIVATE }, - { XML_NAMESPACE_TEXT, XML_SENDER_FAX, XML_TOK_TEXT_SENDER_FAX }, - { XML_NAMESPACE_TEXT, XML_SENDER_COMPANY, XML_TOK_TEXT_SENDER_COMPANY }, - { XML_NAMESPACE_TEXT, XML_SENDER_PHONE_WORK, - XML_TOK_TEXT_SENDER_PHONE_WORK }, - { XML_NAMESPACE_TEXT, XML_SENDER_STREET, XML_TOK_TEXT_SENDER_STREET }, - { XML_NAMESPACE_TEXT, XML_SENDER_CITY, XML_TOK_TEXT_SENDER_CITY }, - { XML_NAMESPACE_TEXT, XML_SENDER_POSTAL_CODE, - XML_TOK_TEXT_SENDER_POSTAL_CODE }, - { XML_NAMESPACE_TEXT, XML_SENDER_COUNTRY, XML_TOK_TEXT_SENDER_COUNTRY }, - { XML_NAMESPACE_TEXT, XML_SENDER_STATE_OR_PROVINCE, - XML_TOK_TEXT_SENDER_STATE_OR_PROVINCE }, - - // misc. document fields - { XML_NAMESPACE_TEXT, XML_AUTHOR_NAME, XML_TOK_TEXT_AUTHOR_NAME }, - { XML_NAMESPACE_TEXT, XML_AUTHOR_INITIALS, XML_TOK_TEXT_AUTHOR_INITIALS }, - { XML_NAMESPACE_TEXT, XML_DATE, XML_TOK_TEXT_DATE }, - { XML_NAMESPACE_TEXT, XML_TIME, XML_TOK_TEXT_TIME }, - { XML_NAMESPACE_TEXT, XML_PAGE_NUMBER, XML_TOK_TEXT_PAGE_NUMBER }, - { XML_NAMESPACE_TEXT, XML_PAGE_CONTINUATION_STRING, - XML_TOK_TEXT_PAGE_CONTINUATION_STRING }, - - // variable fields - { XML_NAMESPACE_TEXT, XML_VARIABLE_SET, XML_TOK_TEXT_VARIABLE_SET }, - { XML_NAMESPACE_TEXT, XML_VARIABLE_GET, XML_TOK_TEXT_VARIABLE_GET }, - { XML_NAMESPACE_TEXT, XML_VARIABLE_INPUT, XML_TOK_TEXT_VARIABLE_INPUT }, - { XML_NAMESPACE_TEXT, XML_USER_FIELD_GET, XML_TOK_TEXT_USER_FIELD_GET }, - { XML_NAMESPACE_TEXT, XML_USER_FIELD_INPUT,XML_TOK_TEXT_USER_FIELD_INPUT}, - { XML_NAMESPACE_TEXT, XML_SEQUENCE, XML_TOK_TEXT_SEQUENCE }, - { XML_NAMESPACE_TEXT, XML_EXPRESSION, XML_TOK_TEXT_EXPRESSION }, - { XML_NAMESPACE_TEXT, XML_TEXT_INPUT, XML_TOK_TEXT_TEXT_INPUT }, - - // database fields - { XML_NAMESPACE_TEXT, XML_DATABASE_DISPLAY, - XML_TOK_TEXT_DATABASE_DISPLAY }, - { XML_NAMESPACE_TEXT, XML_DATABASE_NEXT, - XML_TOK_TEXT_DATABASE_NEXT }, - { XML_NAMESPACE_TEXT, XML_DATABASE_ROW_SELECT, - XML_TOK_TEXT_DATABASE_SELECT }, - { XML_NAMESPACE_TEXT, XML_DATABASE_ROW_NUMBER, - XML_TOK_TEXT_DATABASE_ROW_NUMBER }, - { XML_NAMESPACE_TEXT, XML_DATABASE_NAME, XML_TOK_TEXT_DATABASE_NAME }, - - // docinfo fields - { XML_NAMESPACE_TEXT, XML_INITIAL_CREATOR, - XML_TOK_TEXT_DOCUMENT_CREATION_AUTHOR }, - { XML_NAMESPACE_TEXT, XML_DESCRIPTION, XML_TOK_TEXT_DOCUMENT_DESCRIPTION}, - { XML_NAMESPACE_TEXT, XML_PRINTED_BY, XML_TOK_TEXT_DOCUMENT_PRINT_AUTHOR}, - { XML_NAMESPACE_TEXT, XML_TITLE, XML_TOK_TEXT_DOCUMENT_TITLE }, - { XML_NAMESPACE_TEXT, XML_SUBJECT, XML_TOK_TEXT_DOCUMENT_SUBJECT }, - { XML_NAMESPACE_TEXT, XML_KEYWORDS, XML_TOK_TEXT_DOCUMENT_KEYWORDS }, - { XML_NAMESPACE_TEXT, XML_CREATOR, XML_TOK_TEXT_DOCUMENT_SAVE_AUTHOR }, - { XML_NAMESPACE_TEXT, XML_EDITING_CYCLES, - XML_TOK_TEXT_DOCUMENT_REVISION }, - { XML_NAMESPACE_TEXT, XML_CREATION_DATE, - XML_TOK_TEXT_DOCUMENT_CREATION_DATE }, - { XML_NAMESPACE_TEXT, XML_CREATION_TIME, - XML_TOK_TEXT_DOCUMENT_CREATION_TIME }, - { XML_NAMESPACE_TEXT, XML_PRINT_DATE, XML_TOK_TEXT_DOCUMENT_PRINT_DATE }, - { XML_NAMESPACE_TEXT, XML_PRINT_TIME, XML_TOK_TEXT_DOCUMENT_PRINT_TIME }, - { XML_NAMESPACE_TEXT, XML_MODIFICATION_DATE, - XML_TOK_TEXT_DOCUMENT_SAVE_DATE }, - { XML_NAMESPACE_TEXT, XML_MODIFICATION_TIME, - XML_TOK_TEXT_DOCUMENT_SAVE_TIME }, - { XML_NAMESPACE_TEXT, XML_EDITING_DURATION, - XML_TOK_TEXT_DOCUMENT_EDIT_DURATION }, - { XML_NAMESPACE_TEXT, XML_USER_DEFINED, - XML_TOK_TEXT_DOCUMENT_USER_DEFINED }, - - // misc fields - { XML_NAMESPACE_TEXT, XML_PLACEHOLDER, XML_TOK_TEXT_PLACEHOLDER }, - { XML_NAMESPACE_TEXT, XML_HIDDEN_TEXT, XML_TOK_TEXT_HIDDEN_TEXT }, - { XML_NAMESPACE_TEXT, XML_HIDDEN_PARAGRAPH, - XML_TOK_TEXT_HIDDEN_PARAGRAPH }, - { XML_NAMESPACE_TEXT, XML_CONDITIONAL_TEXT, - XML_TOK_TEXT_CONDITIONAL_TEXT }, - { XML_NAMESPACE_TEXT, XML_FILE_NAME, XML_TOK_TEXT_FILENAME }, - { XML_NAMESPACE_TEXT, XML_CHAPTER, XML_TOK_TEXT_CHAPTER }, - { XML_NAMESPACE_TEXT, XML_TEMPLATE_NAME, XML_TOK_TEXT_TEMPLATENAME }, - { XML_NAMESPACE_TEXT, XML_PARAGRAPH_COUNT, XML_TOK_TEXT_PARAGRAPH_COUNT }, - { XML_NAMESPACE_TEXT, XML_WORD_COUNT, XML_TOK_TEXT_WORD_COUNT }, - { XML_NAMESPACE_TEXT, XML_TABLE_COUNT, XML_TOK_TEXT_TABLE_COUNT }, - { XML_NAMESPACE_TEXT, XML_CHARACTER_COUNT, XML_TOK_TEXT_CHARACTER_COUNT }, - { XML_NAMESPACE_TEXT, XML_IMAGE_COUNT, XML_TOK_TEXT_IMAGE_COUNT }, - { XML_NAMESPACE_TEXT, XML_OBJECT_COUNT, XML_TOK_TEXT_OBJECT_COUNT }, - { XML_NAMESPACE_TEXT, XML_PAGE_COUNT, XML_TOK_TEXT_PAGE_COUNT }, - { XML_NAMESPACE_TEXT, XML_PAGE_VARIABLE_GET, XML_TOK_TEXT_GET_PAGE_VAR }, - { XML_NAMESPACE_TEXT, XML_PAGE_VARIABLE_SET, XML_TOK_TEXT_SET_PAGE_VAR }, - { XML_NAMESPACE_TEXT, XML_EXECUTE_MACRO, XML_TOK_TEXT_MACRO }, - { XML_NAMESPACE_TEXT, XML_DDE_CONNECTION, XML_TOK_TEXT_DDE }, - { XML_NAMESPACE_TEXT, XML_REFERENCE_REF, XML_TOK_TEXT_REFERENCE_REF }, - { XML_NAMESPACE_TEXT, XML_BOOKMARK_REF, XML_TOK_TEXT_BOOKMARK_REF }, - { XML_NAMESPACE_TEXT, XML_SEQUENCE_REF, XML_TOK_TEXT_SEQUENCE_REF }, - { XML_NAMESPACE_TEXT, XML_NOTE_REF, XML_TOK_TEXT_NOTE_REF }, - { XML_NAMESPACE_TEXT, XML_BIBLIOGRAPHY_MARK, - XML_TOK_TEXT_BIBLIOGRAPHY_MARK }, - { XML_NAMESPACE_OFFICE, XML_ANNOTATION, XML_TOK_TEXT_ANNOTATION }, - { XML_NAMESPACE_OFFICE, XML_ANNOTATION_END, XML_TOK_TEXT_ANNOTATION_END }, - { XML_NAMESPACE_TEXT, XML_SCRIPT, XML_TOK_TEXT_SCRIPT }, - { XML_NAMESPACE_TEXT, XML_TABLE_FORMULA, XML_TOK_TEXT_TABLE_FORMULA }, - { XML_NAMESPACE_TEXT, XML_DROP_DOWN, XML_TOK_TEXT_DROP_DOWN }, - - // Calc fields - { XML_NAMESPACE_TEXT, XML_SHEET_NAME, XML_TOK_TEXT_SHEET_NAME }, - - // draw fields - { XML_NAMESPACE_TEXT, XML_MEASURE, XML_TOK_TEXT_MEASURE }, - { XML_NAMESPACE_LO_EXT, XML_PAGE_NAME, XML_TOK_TEXT_PAGE_NAME }, - { XML_NAMESPACE_TEXT, XML_PAGE_NAME, XML_TOK_TEXT_PAGE_NAME }, - - // RDF metadata - { XML_NAMESPACE_TEXT, XML_META, XML_TOK_TEXT_META }, - { XML_NAMESPACE_TEXT, XML_META_FIELD, XML_TOK_TEXT_META_FIELD }, - - // redlining (aka change tracking) - { XML_NAMESPACE_TEXT, XML_CHANGE_START, XML_TOK_TEXTP_CHANGE_START }, - { XML_NAMESPACE_TEXT, XML_CHANGE_END , XML_TOK_TEXTP_CHANGE_END }, - { XML_NAMESPACE_TEXT, XML_CHANGE, XML_TOK_TEXTP_CHANGE }, - - { XML_NAMESPACE_PRESENTATION, XML_HEADER, XML_TOK_DRAW_HEADER }, - { XML_NAMESPACE_PRESENTATION, XML_FOOTER, XML_TOK_DRAW_FOOTER }, - { XML_NAMESPACE_PRESENTATION, XML_DATE_TIME, XML_TOK_DRAW_DATE_TIME }, - { XML_NAMESPACE_TEXT, XML_PAGE_CONTINUATION, XML_TOK_TEXT_PAGE_CONTINUATION }, - - { XML_NAMESPACE_FIELD, XML_FIELDMARK, XML_TOK_TEXT_FIELDMARK }, - { XML_NAMESPACE_FIELD, XML_FIELDMARK_START, XML_TOK_TEXT_FIELDMARK_START }, - { XML_NAMESPACE_FIELD, XML_FIELDMARK_END, XML_TOK_TEXT_FIELDMARK_END }, - - - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextPAttrTokenMap[] = -{ - { XML_NAMESPACE_XML , XML_ID, XML_TOK_TEXT_P_XMLID }, - { XML_NAMESPACE_XHTML, XML_ABOUT, XML_TOK_TEXT_P_ABOUT }, - { XML_NAMESPACE_XHTML, XML_PROPERTY, XML_TOK_TEXT_P_PROPERTY }, - { XML_NAMESPACE_XHTML, XML_CONTENT, XML_TOK_TEXT_P_CONTENT }, - { XML_NAMESPACE_XHTML, XML_DATATYPE, XML_TOK_TEXT_P_DATATYPE }, - { XML_NAMESPACE_TEXT, XML_ID, XML_TOK_TEXT_P_TEXTID }, - { XML_NAMESPACE_TEXT, XML_STYLE_NAME, XML_TOK_TEXT_P_STYLE_NAME }, - { XML_NAMESPACE_TEXT, XML_COND_STYLE_NAME, - XML_TOK_TEXT_P_COND_STYLE_NAME }, - { XML_NAMESPACE_LO_EXT, XML_OUTLINE_CONTENT_VISIBLE, XML_TOK_TEXT_P_OUTLINE_CONTENT_VISIBLE }, - { XML_NAMESPACE_TEXT, XML_OUTLINE_LEVEL,XML_TOK_TEXT_P_LEVEL }, - { XML_NAMESPACE_TEXT, XML_IS_LIST_HEADER,XML_TOK_TEXT_P_IS_LIST_HEADER }, - { XML_NAMESPACE_TEXT, XML_RESTART_NUMBERING,XML_TOK_TEXT_P_RESTART_NUMBERING }, - { XML_NAMESPACE_TEXT, XML_START_VALUE,XML_TOK_TEXT_P_START_VALUE }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextNumberedParagraphAttrTokenMap[] = -{ - { XML_NAMESPACE_XML , XML_ID, XML_TOK_TEXT_NUMBERED_PARAGRAPH_XMLID }, - { XML_NAMESPACE_TEXT, XML_LIST_ID, - XML_TOK_TEXT_NUMBERED_PARAGRAPH_LIST_ID }, - { XML_NAMESPACE_TEXT, XML_LEVEL, XML_TOK_TEXT_NUMBERED_PARAGRAPH_LEVEL }, - { XML_NAMESPACE_TEXT, XML_STYLE_NAME, - XML_TOK_TEXT_NUMBERED_PARAGRAPH_STYLE_NAME }, - { XML_NAMESPACE_TEXT, XML_CONTINUE_NUMBERING, - XML_TOK_TEXT_NUMBERED_PARAGRAPH_CONTINUE_NUMBERING }, - { XML_NAMESPACE_TEXT, XML_START_VALUE, - XML_TOK_TEXT_NUMBERED_PARAGRAPH_START_VALUE }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextListBlockAttrTokenMap[] = -{ - { XML_NAMESPACE_XML , XML_ID, XML_TOK_TEXT_LIST_BLOCK_XMLID }, - { XML_NAMESPACE_TEXT, XML_STYLE_NAME, - XML_TOK_TEXT_LIST_BLOCK_STYLE_NAME }, - { XML_NAMESPACE_TEXT, XML_CONTINUE_NUMBERING, - XML_TOK_TEXT_LIST_BLOCK_CONTINUE_NUMBERING }, - { XML_NAMESPACE_TEXT, XML_CONTINUE_LIST, - XML_TOK_TEXT_LIST_BLOCK_CONTINUE_LIST }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextListBlockElemTokenMap[] = -{ - { XML_NAMESPACE_TEXT, XML_LIST_HEADER, XML_TOK_TEXT_LIST_HEADER }, - { XML_NAMESPACE_TEXT, XML_LIST_ITEM, XML_TOK_TEXT_LIST_ITEM }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextFrameAttrTokenMap[] = -{ - { XML_NAMESPACE_DRAW, XML_STYLE_NAME, XML_TOK_TEXT_FRAME_STYLE_NAME }, - { XML_NAMESPACE_DRAW, XML_NAME, XML_TOK_TEXT_FRAME_NAME }, - { XML_NAMESPACE_TEXT, XML_ANCHOR_TYPE, XML_TOK_TEXT_FRAME_ANCHOR_TYPE }, - { XML_NAMESPACE_TEXT, XML_ANCHOR_PAGE_NUMBER, XML_TOK_TEXT_FRAME_ANCHOR_PAGE_NUMBER }, - { XML_NAMESPACE_SVG, XML_X, XML_TOK_TEXT_FRAME_X }, - { XML_NAMESPACE_SVG, XML_Y, XML_TOK_TEXT_FRAME_Y }, - { XML_NAMESPACE_SVG, XML_WIDTH, XML_TOK_TEXT_FRAME_WIDTH }, - { XML_NAMESPACE_FO, XML_MIN_WIDTH, XML_TOK_TEXT_FRAME_MIN_WIDTH }, - { XML_NAMESPACE_STYLE, XML_REL_WIDTH, XML_TOK_TEXT_FRAME_REL_WIDTH }, - { XML_NAMESPACE_SVG, XML_HEIGHT, XML_TOK_TEXT_FRAME_HEIGHT }, - { XML_NAMESPACE_FO, XML_MIN_HEIGHT, XML_TOK_TEXT_FRAME_MIN_HEIGHT }, - { XML_NAMESPACE_STYLE, XML_REL_HEIGHT, XML_TOK_TEXT_FRAME_REL_HEIGHT }, - { XML_NAMESPACE_DRAW, XML_CHAIN_NEXT_NAME, XML_TOK_TEXT_FRAME_NEXT_CHAIN_NAME }, - { XML_NAMESPACE_XLINK, XML_HREF, XML_TOK_TEXT_FRAME_HREF }, - { XML_NAMESPACE_DRAW, XML_ZINDEX, XML_TOK_TEXT_FRAME_Z_INDEX }, - { XML_NAMESPACE_DRAW, XML_TRANSFORM, XML_TOK_TEXT_FRAME_TRANSFORM }, - { XML_NAMESPACE_DRAW, XML_CLASS_ID, XML_TOK_TEXT_FRAME_CLASS_ID }, - { XML_NAMESPACE_DRAW, XML_CODE, XML_TOK_TEXT_FRAME_CODE }, - { XML_NAMESPACE_DRAW, XML_OBJECT, XML_TOK_TEXT_FRAME_OBJECT }, - { XML_NAMESPACE_DRAW, XML_ARCHIVE, XML_TOK_TEXT_FRAME_ARCHIVE }, - { XML_NAMESPACE_DRAW, XML_MAY_SCRIPT, XML_TOK_TEXT_FRAME_MAY_SCRIPT }, - { XML_NAMESPACE_DRAW, XML_MIME_TYPE, XML_TOK_TEXT_FRAME_MIME_TYPE }, - { XML_NAMESPACE_DRAW, XML_APPLET_NAME, XML_TOK_TEXT_FRAME_APPLET_NAME }, - { XML_NAMESPACE_DRAW, XML_FRAME_NAME, XML_TOK_TEXT_FRAME_FRAME_NAME }, - { XML_NAMESPACE_DRAW, XML_NOTIFY_ON_UPDATE_OF_RANGES, XML_TOK_TEXT_FRAME_NOTIFY_ON_UPDATE }, - { XML_NAMESPACE_DRAW, XML_NOTIFY_ON_UPDATE_OF_TABLE, XML_TOK_TEXT_FRAME_NOTIFY_ON_UPDATE }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextContourAttrTokenMap[] = -{ - { XML_NAMESPACE_SVG, XML_WIDTH, XML_TOK_TEXT_CONTOUR_WIDTH }, - { XML_NAMESPACE_SVG, XML_HEIGHT, XML_TOK_TEXT_CONTOUR_HEIGHT }, - { XML_NAMESPACE_SVG, XML_VIEWBOX, XML_TOK_TEXT_CONTOUR_VIEWBOX }, - { XML_NAMESPACE_SVG, XML_D, XML_TOK_TEXT_CONTOUR_D }, - { XML_NAMESPACE_DRAW,XML_POINTS, XML_TOK_TEXT_CONTOUR_POINTS }, - { XML_NAMESPACE_DRAW,XML_RECREATE_ON_EDIT, XML_TOK_TEXT_CONTOUR_AUTO }, - XML_TOKEN_MAP_END -}; - -const SvXMLTokenMapEntry aTextHyperlinkAttrTokenMap[] = -{ - { XML_NAMESPACE_XLINK, XML_HREF, XML_TOK_TEXT_HYPERLINK_HREF }, - { XML_NAMESPACE_OFFICE, XML_NAME, XML_TOK_TEXT_HYPERLINK_NAME }, - { XML_NAMESPACE_XLINK, XML_SHOW, XML_TOK_TEXT_HYPERLINK_SHOW }, - { XML_NAMESPACE_OFFICE, XML_TARGET_FRAME_NAME, XML_TOK_TEXT_HYPERLINK_TARGET_FRAME }, - { XML_NAMESPACE_TEXT, XML_STYLE_NAME, XML_TOK_TEXT_HYPERLINK_STYLE_NAME }, - { XML_NAMESPACE_TEXT, XML_VISITED_STYLE_NAME, XML_TOK_TEXT_HYPERLINK_VIS_STYLE_NAME }, - { XML_NAMESPACE_OFFICE, XML_SERVER_MAP, XML_TOK_TEXT_HYPERLINK_SERVER_MAP }, - XML_TOKEN_MAP_END -}; - // maximum allowed length of combined characters field #define MAX_COMBINED_CHARACTERS 6 |