From d0d2ac0dd90c7eadd7c355c958039c4a8ec864e0 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 17 Jul 2020 12:36:03 +0200 Subject: [PATCH] Indents fixed --- src/main/java/w2phtml/office/XMLString.java | 889 +++++++++--------- .../w2phtml/xhtml/content/TextParser.java | 2 +- 2 files changed, 451 insertions(+), 440 deletions(-) diff --git a/src/main/java/w2phtml/office/XMLString.java b/src/main/java/w2phtml/office/XMLString.java index 6c9a456..da6e5f1 100644 --- a/src/main/java/w2phtml/office/XMLString.java +++ b/src/main/java/w2phtml/office/XMLString.java @@ -30,454 +30,465 @@ package w2phtml.office; */ public class XMLString { - // draw namespace - elements - public static final String DRAW_="draw:"; - public static final String DRAW_PAGE="draw:page"; - public static final String DRAW_A="draw:a"; - public static final String DRAW_FRAME="draw:frame"; // oasis - public static final String DRAW_IMAGE="draw:image"; - public static final String DRAW_OBJECT="draw:object"; - public static final String DRAW_OBJECT_OLE="draw:object-ole"; - public static final String DRAW_TEXT_BOX="draw:text-box"; - public static final String DRAW_G="draw:g"; - public static final String DRAW_CONTROL="draw:control"; - // draw namespace - attributes - public static final String DRAW_NAME="draw:name"; - public static final String DRAW_STYLE_NAME="draw:style-name"; - public static final String DRAW_TEXT_STYLE_NAME="draw:text-style-name"; - public static final String DRAW_MASTER_PAGE_NAME="draw:master-page-name"; - public static final String DRAW_FILL_COLOR="draw:fill-color"; + // draw namespace - elements + public static final String DRAW_ = "draw:"; + public static final String DRAW_PAGE = "draw:page"; + public static final String DRAW_A = "draw:a"; + public static final String DRAW_FRAME = "draw:frame"; // oasis + public static final String DRAW_IMAGE = "draw:image"; + public static final String DRAW_OBJECT = "draw:object"; + public static final String DRAW_OBJECT_OLE = "draw:object-ole"; + public static final String DRAW_TEXT_BOX = "draw:text-box"; + public static final String DRAW_G = "draw:g"; + public static final String DRAW_CONTROL = "draw:control"; + // draw namespace - attributes + public static final String DRAW_NAME = "draw:name"; + public static final String DRAW_STYLE_NAME = "draw:style-name"; + public static final String DRAW_TEXT_STYLE_NAME = "draw:text-style-name"; + public static final String DRAW_MASTER_PAGE_NAME = "draw:master-page-name"; + public static final String DRAW_FILL_COLOR = "draw:fill-color"; - // dc namespace - elements - public static final String DC_CREATOR="dc:creator"; - public static final String DC_DATE="dc:date"; - public static final String DC_DESCRIPTION="dc:description"; - public static final String DC_LANGUAGE="dc:language"; - public static final String DC_SUBJECT="dc:subject"; - public static final String DC_TITLE="dc:title"; + // dc namespace - elements + public static final String DC_CREATOR = "dc:creator"; + public static final String DC_DATE = "dc:date"; + public static final String DC_DESCRIPTION = "dc:description"; + public static final String DC_LANGUAGE = "dc:language"; + public static final String DC_SUBJECT = "dc:subject"; + public static final String DC_TITLE = "dc:title"; - // meta namespace - elements - public static final String META_INITIAL_CREATOR="meta:initial-creator"; - public static final String META_KEYWORDS="meta:keywords"; - public static final String META_KEYWORD="meta:keyword"; - public static final String META_USER_DEFINED="meta:user-defined"; - // meta namespace - attributes - public static final String META_NAME="meta:name"; + // meta namespace - elements + public static final String META_INITIAL_CREATOR = "meta:initial-creator"; + public static final String META_KEYWORDS = "meta:keywords"; + public static final String META_KEYWORD = "meta:keyword"; + public static final String META_USER_DEFINED = "meta:user-defined"; + // meta namespace - attributes + public static final String META_NAME = "meta:name"; - // manifest namespace - public static final String MANIFEST_FILE_ENTRY="manifest:file-entry"; - public static final String MANIFEST_MEDIA_TYPE="manifest:media-type"; - public static final String MANIFEST_FULL_PATH="manifest:full-path"; + // manifest namespace + public static final String MANIFEST_FILE_ENTRY = "manifest:file-entry"; + public static final String MANIFEST_MEDIA_TYPE = "manifest:media-type"; + public static final String MANIFEST_FULL_PATH = "manifest:full-path"; - // office namespace - elements - public static final String OFFICE_DOCUMENT_CONTENT="office:document-content"; - public static final String OFFICE_MASTER_STYLES="office:master-styles"; - public static final String OFFICE_STYLES="office:styles"; - public static final String OFFICE_AUTOMATIC_STYLES="office:automatic-styles"; - public static final String OFFICE_FONT_DECLS="office:font-decls"; - public static final String OFFICE_FONT_FACE_DECLS="office:font-face-decls"; // oasis - public static final String OFFICE_BODY="office:body"; - public static final String OFFICE_TEXT="office:text"; // oasis - public static final String OFFICE_SPREADSHEET="office:spreadsheet"; // oasis - public static final String OFFICE_PRESENTATION="office:presentation"; // oasis - public static final String OFFICE_FORMS="office:forms"; - public static final String OFFICE_ANNOTATION="office:annotation"; - public static final String OFFICE_BINARY_DATA="office:binary-data"; - public static final String OFFICE_META="office:meta"; - // office namespace - attributes - public static final String OFFICE_TARGET_FRAME_NAME="office:target-frame-name"; - public static final String OFFICE_NAME="office:name"; - public static final String OFFICE_VALUE_TYPE="office:value-type"; // oasis - - // form namespace - elements - public static final String FORM_FORM="form:form"; - public static final String FORM_CONTROL="form:control"; - public static final String FORM_TEXT="form:text"; - public static final String FORM_PASSWORD="form:password"; - public static final String FORM_FILE="form:file"; - public static final String FORM_IMAGE="form:image"; - public static final String FORM_HIDDEN="form:hidden"; - public static final String FORM_CHECKBOX="form:checkbox"; - public static final String FORM_RADIO="form:radio"; - public static final String FORM_BUTTON="form:button"; - public static final String FORM_FIXED_TEXT="form:fixed-text"; - public static final String FORM_TEXTAREA="form:textarea"; - public static final String FORM_LISTBOX="form:listbox"; - public static final String FORM_COMBOBOX="form:combobox"; - public static final String FORM_ITEM="form:item"; - public static final String FORM_OPTION="form:option"; - // form namespace - attributes - public static final String FORM_NAME="form:name"; - public static final String FORM_ID="form:id"; - public static final String FORM_METHOD="form:method"; - public static final String FORM_TYPE="form:type"; - public static final String FORM_BUTTON_TYPE="form:button-type"; - public static final String FORM_DISABLED="form:disabled"; - public static final String FORM_READONLY="form:readonly"; - public static final String FORM_DEFAULT_VALUE="form:default-value"; - public static final String FORM_VALUE="form:value"; - public static final String FORM_TAB_INDEX="form:tab-index"; - public static final String FORM_TITLE="form:title"; - public static final String FORM_MAX_LENGTH="form:max-length"; - public static final String FORM_MULTIPLE="form:multiple"; - public static final String FORM_SELECTED="form:selected"; - public static final String FORM_LABEL="form:label"; - public static final String FORM_SIZE="form:size"; - - // presentation namespace - attributes - public static final String PRESENTATION_CLASS="presentation:class"; - public static final String PRESENTATION_STYLE_NAME="presentation:style-name"; - - // style namespace - elements - public static final String STYLE_PAGE_MASTER="style:page-master"; - public static final String STYLE_PAGE_LAYOUT="style:page-layout"; // oasis - public static final String STYLE_MASTER_PAGE="style:master-page"; - public static final String STYLE_FONT_DECL="style:font-decl"; - public static final String STYLE_FONT_FACE="style:font-face"; // oasis - public static final String STYLE_STYLE="style:style"; - public static final String STYLE_DEFAULT_STYLE="style:default-style"; - public static final String STYLE_PROPERTIES="style:properties"; - public static final String STYLE_TEXT_PROPERTIES="style:text-properties"; // oasis - public static final String STYLE_PARAGRAPH_PROPERTIES="style:paragraph-properties"; // oasis - public static final String STYLE_SECTION_PROPERTIES="style:section-properties"; // oasis - public static final String STYLE_TABLE_PROPERTIES="style:table-properties"; // oasis - public static final String STYLE_TABLE_ROW_PROPERTIES="style:table-row-properties"; // oasis - public static final String STYLE_TABLE_COLUMN_PROPERTIES="style:table-column-properties"; // oasis - public static final String STYLE_TABLE_CELL_PROPERTIES="style:table-cell-properties"; // oasis - public static final String STYLE_GRAPHIC_PROPERTIES="style:graphic-properties"; // oasis - public static final String STYLE_PAGE_LAYOUT_PROPERTIES="style:page-layout-properties"; // oasis - public static final String STYLE_DRAWING_PAGE_PROPERTIES="style:drawing-page-properties"; // oasis - public static final String STYLE_HEADER_FOOTER_PROPERTIES="style:header-footer-properties"; // oasis - public static final String STYLE_LIST_LEVEL_LABEL_ALIGNMENT="style:list-level-label-alignment"; // oasis 1.2 - public static final String STYLE_BACKGROUND_IMAGE="style:background-image"; - public static final String STYLE_COLUMNS="style:columns"; - public static final String STYLE_HEADER="style:header"; - public static final String STYLE_HEADER_LEFT="style:header-left"; - public static final String STYLE_FOOTER="style:footer"; - public static final String STYLE_FOOTER_LEFT="style:footer-left"; - public static final String STYLE_FOOTNOTE_SEP="style:footnote-sep"; - public static final String STYLE_HEADER_STYLE="style:header-style"; - public static final String STYLE_FOOTER_STYLE="style:footer-style"; - // style namespace - attributes - public static final String STYLE_NEXT_STYLE_NAME="style:next-style-name"; - public static final String STYLE_DISPLAY_NAME="style:display-name"; - public static final String STYLE_PAGE_MASTER_NAME="style:page-master-name"; - public static final String STYLE_PAGE_LAYOUT_NAME="style:page-layout-name"; // oasis - public static final String STYLE_MASTER_PAGE_NAME="style:master-page-name"; - public static final String STYLE_PAGE_USAGE="style:page-usage"; - public static final String STYLE_PAGE_NUMBER="style:page-number"; - public static final String STYLE_FONT_FAMILY_COMPLEX="style:font-family-complex"; - public static final String STYLE_FONT_NAME="style:font-name"; - public static final String STYLE_FONT_NAME_COMPLEX="style:font-name-complex"; - public static final String STYLE_FONT_PITCH="style:font-pitch"; - public static final String STYLE_FONT_FAMILY_GENERIC="style:font-family-generic"; - public static final String STYLE_TEXT_BACKGROUND_COLOR="style:text-background-color"; - public static final String STYLE_USE_WINDOW_FONT_COLOR="style:use-window-font-color"; - public static final String STYLE_TEXT_CROSSING_OUT="style:text-crossing-out"; - public static final String STYLE_TEXT_UNDERLINE="style:text-underline"; - public static final String STYLE_TEXT_BLINKING="style:text-blinking"; - public static final String STYLE_TEXT_LINE_THROUGH_STYLE="style:text-line-through-style"; // oasis - public static final String STYLE_TEXT_UNDERLINE_STYLE="style:text-underline-style"; // oasis - public static final String STYLE_AUTO_TEXT_INDENT="style:auto-text-indent"; - public static final String STYLE_TEXT_ALIGN_SOURCE="style:text-align-source"; - public static final String STYLE_NAME="style:name"; - public static final String STYLE_PARENT_STYLE_NAME="style:parent-style-name"; - public static final String STYLE_FAMILY="style:family"; - public static final String STYLE_TEXT_POSITION="style:text-position"; - public static final String STYLE_LIST_STYLE_NAME="style:list-style-name"; - public static final String STYLE_LIST_LEVEL_PROPERTIES="style:list-level-properties"; - public static final String STYLE_NUM_PREFIX="style:num-prefix"; - public static final String STYLE_NUM_SUFFIX="style:num-suffix"; - public static final String STYLE_NUM_FORMAT="style:num-format"; - public static final String STYLE_VERTICAL_ALIGN="style:vertical-align"; - public static final String STYLE_MAY_BREAK_BETWEEN_ROWS="style:may-break-between-rows"; - public static final String STYLE_HORIZONTAL_POS="style:horizontal-pos"; - public static final String STYLE_WRAP="style:wrap"; - public static final String STYLE_COLUMN_WIDTH="style:column-width"; - public static final String STYLE_REL_COLUMN_WIDTH="style:rel-column-width"; - public static final String STYLE_ROW_HEIGHT="style:row-height"; - public static final String STYLE_MIN_ROW_HEIGHT="style:min-row-height"; - public static final String STYLE_FIRST_PAGE_NUMBER="style:first-page-number"; - public static final String STYLE_DISTANCE_BEFORE_SEP="style:distance-before-sep"; - public static final String STYLE_DISTANCE_AFTER_SEP="style:distance-after-sep"; - public static final String STYLE_WIDTH="style:width"; - public static final String STYLE_REL_WIDTH="style:rel-width"; - public static final String STYLE_COLOR="style:color"; - public static final String STYLE_WRITING_MODE="style:writing-mode"; - public static final String STYLE_REPEAT="style:repeat"; - public static final String STYLE_POSITION="style:position"; - public static final String STYLE_ADJUSTMENT="style:adjustment"; - public static final String STYLE_LANGUAGE_COMPLEX="style:language-complex"; - public static final String STYLE_COUNTRY_COMPLEX="style:country-complex"; - public static final String STYLE_LANGUAGE_ASIAN="style:language-asian"; - public static final String STYLE_COUNTRY_ASIAN="style:country-asian"; + // office namespace - elements + public static final String OFFICE_DOCUMENT_CONTENT = "office:document-content"; + public static final String OFFICE_MASTER_STYLES = "office:master-styles"; + public static final String OFFICE_STYLES = "office:styles"; + public static final String OFFICE_AUTOMATIC_STYLES = "office:automatic-styles"; + public static final String OFFICE_FONT_DECLS = "office:font-decls"; + public static final String OFFICE_FONT_FACE_DECLS = "office:font-face-decls"; // oasis + public static final String OFFICE_BODY = "office:body"; + public static final String OFFICE_TEXT = "office:text"; // oasis + public static final String OFFICE_SPREADSHEET = "office:spreadsheet"; // oasis + public static final String OFFICE_PRESENTATION = "office:presentation"; // oasis + public static final String OFFICE_FORMS = "office:forms"; + public static final String OFFICE_ANNOTATION = "office:annotation"; + public static final String OFFICE_BINARY_DATA = "office:binary-data"; + public static final String OFFICE_META = "office:meta"; + // office namespace - attributes + public static final String OFFICE_TARGET_FRAME_NAME = "office:target-frame-name"; + public static final String OFFICE_NAME = "office:name"; + public static final String OFFICE_VALUE_TYPE = "office:value-type"; // oasis - // table namespace - elements - public static final String TABLE_="table:"; - public static final String TABLE_TABLE="table:table"; - public static final String TABLE_SUB_TABLE="table:sub-table"; - public static final String TABLE_SHAPES="table:shapes"; - public static final String TABLE_TABLE_COLUMN="table:table-column"; - public static final String TABLE_TABLE_COLUMNS="table:table-columns"; - public static final String TABLE_TABLE_COLUMN_GROUP="table:table-column-group"; - public static final String TABLE_TABLE_HEADER_COLUMNS="table:table-header-columns"; - public static final String TABLE_TABLE_ROW="table:table-row"; - public static final String TABLE_TABLE_ROWS="table:table-rows"; - public static final String TABLE_TABLE_ROW_GROUP="table:table-row-group"; - public static final String TABLE_TABLE_HEADER_ROWS="table:table-header-rows"; - public static final String TABLE_TABLE_CELL="table:table-cell"; - public static final String TABLE_COVERED_TABLE_CELL="table:covered-table-cell"; - // table namespace - attributes - public static final String TABLE_NAME="table:name"; - public static final String TABLE_IS_SUB_TABLE="table:is-sub-table"; // oasis - public static final String TABLE_STYLE_NAME="table:style-name"; - public static final String TABLE_VISIBILITY="table:visibility"; - public static final String TABLE_DISPLAY="table:display"; - public static final String TABLE_DEFAULT_CELL_STYLE_NAME="table:default-cell-style-name"; - public static final String TABLE_VALUE_TYPE="table:value-type"; - public static final String TABLE_NUMBER_COLUMNS_REPEATED="table:number-columns-repeated"; - public static final String TABLE_NUMBER_ROWS_REPEATED="table:number-rows-repeated"; - public static final String TABLE_NUMBER_ROWS_SPANNED="table:number-rows-spanned"; - public static final String TABLE_NUMBER_COLUMNS_SPANNED="table:number-columns-spanned"; - public static final String TABLE_ALIGN="table:align"; - public static final String TABLE_PRINT="table:print"; - public static final String TABLE_PRINT_RANGES="table:print-ranges"; - - // text namespace - elements (declarations) - public static final String TEXT_="text:"; - public static final String TEXT_FOOTNOTES_CONFIGURATION="text:footnotes-configuration"; - public static final String TEXT_ENDNOTES_CONFIGURATION="text:endnotes-configuration"; - public static final String TEXT_NOTES_CONFIGURATION="text:notes-configuration"; // oasis - public static final String TEXT_BIBLIOGRAPHY_CONFIGURATION="text:bibliography-configuration"; - public static final String TEXT_SORT_KEY="text:sort-key"; - public static final String TEXT_SECTION_SOURCE="text:section-source"; - public static final String TEXT_SEQUENCE_DECLS="text:sequence-decls"; - public static final String TEXT_SEQUENCE_DECL="text:sequence-decl"; - public static final String TEXT_OUTLINE_STYLE="text:outline-style"; - public static final String TEXT_OUTLINE_LEVEL_STYLE="text:outline-level-style"; - public static final String TEXT_LIST_STYLE="text:list-style"; - public static final String TEXT_LIST_LEVEL_STYLE_NUMBER="text:list-level-style-number"; - public static final String TEXT_LIST_LEVEL_STYLE_BULLET="text:list-level-style-bullet"; - public static final String TEXT_LIST_LEVEL_STYLE_IMAGE="text:list-level-style-image"; - // text namespace - elements (block text) - public static final String TEXT_SECTION="text:section"; - public static final String TEXT_P="text:p"; - public static final String TEXT_H="text:h"; - public static final String TEXT_LIST="text:list"; // oasis - public static final String TEXT_ORDERED_LIST="text:ordered-list"; - public static final String TEXT_UNORDERED_LIST="text:unordered-list"; - public static final String TEXT_LIST_ITEM="text:list-item"; - public static final String TEXT_LIST_HEADER="text:list-header"; - public static final String TEXT_ALPHABETICAL_INDEX="text:alphabetical-index"; - public static final String TEXT_ALPHABETICAL_INDEX_SOURCE="text:alphabetical-index-source"; - public static final String TEXT_ALPHABETICAL_INDEX_ENTRY_TEMPLATE="text:alphabetical-index-entry-template"; - public static final String TEXT_TABLE_OF_CONTENT="text:table-of-content"; - public static final String TEXT_TABLE_OF_CONTENT_SOURCE="text:table-of-content-source"; - public static final String TEXT_TABLE_OF_CONTENT_ENTRY_TEMPLATE="text:table-of-content-entry-template"; - public static final String TEXT_INDEX_SOURCE_STYLES="text:index-source-styles"; - public static final String TEXT_INDEX_SOURCE_STYLE="text:index-source-style"; - public static final String TEXT_ILLUSTRATION_INDEX="text:illustration-index"; - public static final String TEXT_ILLUSTRATION_INDEX_SOURCE="text:illustration-index-source"; - public static final String TEXT_ILLUSTRATION_INDEX_ENTRY_TEMPLATE="text:illustration-index-entry-template"; - public static final String TEXT_TABLE_INDEX="text:table-index"; - public static final String TEXT_TABLE_INDEX_SOURCE="text:table-index-source"; - public static final String TEXT_TABLE_INDEX_ENTRY_TEMPLATE="text:table-index-entry-template"; - public static final String TEXT_OBJECT_INDEX="text:object-index"; - public static final String TEXT_USER_INDEX="text:user-index"; - public static final String TEXT_BIBLIOGRAPHY="text:bibliography"; - public static final String TEXT_BIBLIOGRAPHY_SOURCE="text:bibliography-source"; - public static final String TEXT_BIBLIOGRAPHY_ENTRY_TEMPLATE="text:bibliography-entry-template"; - public static final String TEXT_INDEX_ENTRY_BIBLIOGRAPHY="text:index-entry-bibliography"; - public static final String TEXT_INDEX_ENTRY_SPAN="text:index-entry-span"; - public static final String TEXT_INDEX_TITLE_TEMPLATE="text:index-title-template"; - public static final String TEXT_INDEX_BODY="text:index-body"; - public static final String TEXT_INDEX_TITLE="text:index-title"; - public static final String TEXT_INDEX_SOURCE="text:index-source"; + // form namespace - elements + public static final String FORM_FORM = "form:form"; + public static final String FORM_CONTROL = "form:control"; + public static final String FORM_TEXT = "form:text"; + public static final String FORM_PASSWORD = "form:password"; + public static final String FORM_FILE = "form:file"; + public static final String FORM_IMAGE = "form:image"; + public static final String FORM_HIDDEN = "form:hidden"; + public static final String FORM_CHECKBOX = "form:checkbox"; + public static final String FORM_RADIO = "form:radio"; + public static final String FORM_BUTTON = "form:button"; + public static final String FORM_FIXED_TEXT = "form:fixed-text"; + public static final String FORM_TEXTAREA = "form:textarea"; + public static final String FORM_LISTBOX = "form:listbox"; + public static final String FORM_COMBOBOX = "form:combobox"; + public static final String FORM_ITEM = "form:item"; + public static final String FORM_OPTION = "form:option"; + // form namespace - attributes + public static final String FORM_NAME = "form:name"; + public static final String FORM_ID = "form:id"; + public static final String FORM_METHOD = "form:method"; + public static final String FORM_TYPE = "form:type"; + public static final String FORM_BUTTON_TYPE = "form:button-type"; + public static final String FORM_DISABLED = "form:disabled"; + public static final String FORM_READONLY = "form:readonly"; + public static final String FORM_DEFAULT_VALUE = "form:default-value"; + public static final String FORM_VALUE = "form:value"; + public static final String FORM_TAB_INDEX = "form:tab-index"; + public static final String FORM_TITLE = "form:title"; + public static final String FORM_MAX_LENGTH = "form:max-length"; + public static final String FORM_MULTIPLE = "form:multiple"; + public static final String FORM_SELECTED = "form:selected"; + public static final String FORM_LABEL = "form:label"; + public static final String FORM_SIZE = "form:size"; + + // presentation namespace - attributes + public static final String PRESENTATION_CLASS = "presentation:class"; + public static final String PRESENTATION_STYLE_NAME = "presentation:style-name"; + + // style namespace - elements + public static final String STYLE_PAGE_MASTER = "style:page-master"; + public static final String STYLE_PAGE_LAYOUT = "style:page-layout"; // oasis + public static final String STYLE_MASTER_PAGE = "style:master-page"; + public static final String STYLE_FONT_DECL = "style:font-decl"; + public static final String STYLE_FONT_FACE = "style:font-face"; // oasis + public static final String STYLE_STYLE = "style:style"; + public static final String STYLE_DEFAULT_STYLE = "style:default-style"; + public static final String STYLE_PROPERTIES = "style:properties"; + public static final String STYLE_TEXT_PROPERTIES = "style:text-properties"; // oasis + public static final String STYLE_PARAGRAPH_PROPERTIES = "style:paragraph-properties"; // oasis + public static final String STYLE_SECTION_PROPERTIES = "style:section-properties"; // oasis + public static final String STYLE_TABLE_PROPERTIES = "style:table-properties"; // oasis + public static final String STYLE_TABLE_ROW_PROPERTIES = "style:table-row-properties"; // oasis + public static final String STYLE_TABLE_COLUMN_PROPERTIES = "style:table-column-properties"; // oasis + public static final String STYLE_TABLE_CELL_PROPERTIES = "style:table-cell-properties"; // oasis + public static final String STYLE_GRAPHIC_PROPERTIES = "style:graphic-properties"; // oasis + public static final String STYLE_PAGE_LAYOUT_PROPERTIES = "style:page-layout-properties"; // oasis + public static final String STYLE_DRAWING_PAGE_PROPERTIES = "style:drawing-page-properties"; // oasis + public static final String STYLE_HEADER_FOOTER_PROPERTIES = "style:header-footer-properties"; // oasis + public static final String STYLE_LIST_LEVEL_LABEL_ALIGNMENT = "style:list-level-label-alignment"; // oasis + // 1.2 + public static final String STYLE_BACKGROUND_IMAGE = "style:background-image"; + public static final String STYLE_COLUMNS = "style:columns"; + public static final String STYLE_HEADER = "style:header"; + public static final String STYLE_HEADER_LEFT = "style:header-left"; + public static final String STYLE_FOOTER = "style:footer"; + public static final String STYLE_FOOTER_LEFT = "style:footer-left"; + public static final String STYLE_FOOTNOTE_SEP = "style:footnote-sep"; + public static final String STYLE_HEADER_STYLE = "style:header-style"; + public static final String STYLE_FOOTER_STYLE = "style:footer-style"; + // style namespace - attributes + public static final String STYLE_NEXT_STYLE_NAME = "style:next-style-name"; + public static final String STYLE_DISPLAY_NAME = "style:display-name"; + public static final String STYLE_PAGE_MASTER_NAME = "style:page-master-name"; + public static final String STYLE_PAGE_LAYOUT_NAME = "style:page-layout-name"; // oasis + public static final String STYLE_MASTER_PAGE_NAME = "style:master-page-name"; + public static final String STYLE_PAGE_USAGE = "style:page-usage"; + public static final String STYLE_PAGE_NUMBER = "style:page-number"; + public static final String STYLE_FONT_FAMILY_COMPLEX = "style:font-family-complex"; + public static final String STYLE_FONT_NAME = "style:font-name"; + public static final String STYLE_FONT_NAME_COMPLEX = "style:font-name-complex"; + public static final String STYLE_FONT_PITCH = "style:font-pitch"; + public static final String STYLE_FONT_FAMILY_GENERIC = "style:font-family-generic"; + public static final String STYLE_TEXT_BACKGROUND_COLOR = "style:text-background-color"; + public static final String STYLE_USE_WINDOW_FONT_COLOR = "style:use-window-font-color"; + public static final String STYLE_TEXT_CROSSING_OUT = "style:text-crossing-out"; + public static final String STYLE_TEXT_UNDERLINE = "style:text-underline"; + public static final String STYLE_TEXT_BLINKING = "style:text-blinking"; + public static final String STYLE_TEXT_LINE_THROUGH_STYLE = "style:text-line-through-style"; // oasis + public static final String STYLE_TEXT_UNDERLINE_STYLE = "style:text-underline-style"; // oasis + public static final String STYLE_AUTO_TEXT_INDENT = "style:auto-text-indent"; + public static final String STYLE_TEXT_ALIGN_SOURCE = "style:text-align-source"; + public static final String STYLE_NAME = "style:name"; + public static final String STYLE_PARENT_STYLE_NAME = "style:parent-style-name"; + public static final String STYLE_FAMILY = "style:family"; + public static final String STYLE_TEXT_POSITION = "style:text-position"; + public static final String STYLE_LIST_STYLE_NAME = "style:list-style-name"; + public static final String STYLE_LIST_LEVEL_PROPERTIES = "style:list-level-properties"; + public static final String STYLE_NUM_PREFIX = "style:num-prefix"; + public static final String STYLE_NUM_SUFFIX = "style:num-suffix"; + public static final String STYLE_NUM_FORMAT = "style:num-format"; + public static final String STYLE_VERTICAL_ALIGN = "style:vertical-align"; + public static final String STYLE_MAY_BREAK_BETWEEN_ROWS = "style:may-break-between-rows"; + public static final String STYLE_HORIZONTAL_POS = "style:horizontal-pos"; + public static final String STYLE_WRAP = "style:wrap"; + public static final String STYLE_COLUMN_WIDTH = "style:column-width"; + public static final String STYLE_REL_COLUMN_WIDTH = "style:rel-column-width"; + public static final String STYLE_ROW_HEIGHT = "style:row-height"; + public static final String STYLE_MIN_ROW_HEIGHT = "style:min-row-height"; + public static final String STYLE_FIRST_PAGE_NUMBER = "style:first-page-number"; + public static final String STYLE_DISTANCE_BEFORE_SEP = "style:distance-before-sep"; + public static final String STYLE_DISTANCE_AFTER_SEP = "style:distance-after-sep"; + public static final String STYLE_WIDTH = "style:width"; + public static final String STYLE_REL_WIDTH = "style:rel-width"; + public static final String STYLE_COLOR = "style:color"; + public static final String STYLE_WRITING_MODE = "style:writing-mode"; + public static final String STYLE_REPEAT = "style:repeat"; + public static final String STYLE_POSITION = "style:position"; + public static final String STYLE_ADJUSTMENT = "style:adjustment"; + public static final String STYLE_LANGUAGE_COMPLEX = "style:language-complex"; + public static final String STYLE_COUNTRY_COMPLEX = "style:country-complex"; + public static final String STYLE_LANGUAGE_ASIAN = "style:language-asian"; + public static final String STYLE_COUNTRY_ASIAN = "style:country-asian"; + + // table namespace - elements + public static final String TABLE_ = "table:"; + public static final String TABLE_TABLE = "table:table"; + public static final String TABLE_SUB_TABLE = "table:sub-table"; + public static final String TABLE_SHAPES = "table:shapes"; + public static final String TABLE_TABLE_COLUMN = "table:table-column"; + public static final String TABLE_TABLE_COLUMNS = "table:table-columns"; + public static final String TABLE_TABLE_COLUMN_GROUP = "table:table-column-group"; + public static final String TABLE_TABLE_HEADER_COLUMNS = "table:table-header-columns"; + public static final String TABLE_TABLE_ROW = "table:table-row"; + public static final String TABLE_TABLE_ROWS = "table:table-rows"; + public static final String TABLE_TABLE_ROW_GROUP = "table:table-row-group"; + public static final String TABLE_TABLE_HEADER_ROWS = "table:table-header-rows"; + public static final String TABLE_TABLE_CELL = "table:table-cell"; + public static final String TABLE_COVERED_TABLE_CELL = "table:covered-table-cell"; + // table namespace - attributes + public static final String TABLE_NAME = "table:name"; + public static final String TABLE_IS_SUB_TABLE = "table:is-sub-table"; // oasis + public static final String TABLE_STYLE_NAME = "table:style-name"; + public static final String TABLE_VISIBILITY = "table:visibility"; + public static final String TABLE_DISPLAY = "table:display"; + public static final String TABLE_DEFAULT_CELL_STYLE_NAME = "table:default-cell-style-name"; + public static final String TABLE_VALUE_TYPE = "table:value-type"; + public static final String TABLE_NUMBER_COLUMNS_REPEATED = "table:number-columns-repeated"; + public static final String TABLE_NUMBER_ROWS_REPEATED = "table:number-rows-repeated"; + public static final String TABLE_NUMBER_ROWS_SPANNED = "table:number-rows-spanned"; + public static final String TABLE_NUMBER_COLUMNS_SPANNED = "table:number-columns-spanned"; + public static final String TABLE_ALIGN = "table:align"; + public static final String TABLE_PRINT = "table:print"; + public static final String TABLE_PRINT_RANGES = "table:print-ranges"; + + // text namespace - elements (declarations) + public static final String TEXT_ = "text:"; + public static final String TEXT_FOOTNOTES_CONFIGURATION = "text:footnotes-configuration"; + public static final String TEXT_ENDNOTES_CONFIGURATION = "text:endnotes-configuration"; + public static final String TEXT_NOTES_CONFIGURATION = "text:notes-configuration"; // oasis + public static final String TEXT_BIBLIOGRAPHY_CONFIGURATION = "text:bibliography-configuration"; + public static final String TEXT_SORT_KEY = "text:sort-key"; + public static final String TEXT_SECTION_SOURCE = "text:section-source"; + public static final String TEXT_SEQUENCE_DECLS = "text:sequence-decls"; + public static final String TEXT_SEQUENCE_DECL = "text:sequence-decl"; + public static final String TEXT_OUTLINE_STYLE = "text:outline-style"; + public static final String TEXT_OUTLINE_LEVEL_STYLE = "text:outline-level-style"; + public static final String TEXT_LIST_STYLE = "text:list-style"; + public static final String TEXT_LIST_LEVEL_STYLE_NUMBER = "text:list-level-style-number"; + public static final String TEXT_LIST_LEVEL_STYLE_BULLET = "text:list-level-style-bullet"; + public static final String TEXT_LIST_LEVEL_STYLE_IMAGE = "text:list-level-style-image"; + // text namespace - elements (block text) + public static final String TEXT_SECTION = "text:section"; + public static final String TEXT_P = "text:p"; + public static final String TEXT_H = "text:h"; + public static final String TEXT_LIST = "text:list"; // oasis + public static final String TEXT_ORDERED_LIST = "text:ordered-list"; + public static final String TEXT_UNORDERED_LIST = "text:unordered-list"; + public static final String TEXT_LIST_ITEM = "text:list-item"; + public static final String TEXT_LIST_HEADER = "text:list-header"; + public static final String TEXT_ALPHABETICAL_INDEX = "text:alphabetical-index"; + public static final String TEXT_ALPHABETICAL_INDEX_SOURCE = "text:alphabetical-index-source"; + public static final String TEXT_ALPHABETICAL_INDEX_ENTRY_TEMPLATE = "text:alphabetical-index-entry-template"; + public static final String TEXT_TABLE_OF_CONTENT = "text:table-of-content"; + public static final String TEXT_TABLE_OF_CONTENT_SOURCE = "text:table-of-content-source"; + public static final String TEXT_TABLE_OF_CONTENT_ENTRY_TEMPLATE = "text:table-of-content-entry-template"; + public static final String TEXT_INDEX_SOURCE_STYLES = "text:index-source-styles"; + public static final String TEXT_INDEX_SOURCE_STYLE = "text:index-source-style"; + public static final String TEXT_ILLUSTRATION_INDEX = "text:illustration-index"; + public static final String TEXT_ILLUSTRATION_INDEX_SOURCE = "text:illustration-index-source"; + public static final String TEXT_ILLUSTRATION_INDEX_ENTRY_TEMPLATE = "text:illustration-index-entry-template"; + public static final String TEXT_TABLE_INDEX = "text:table-index"; + public static final String TEXT_TABLE_INDEX_SOURCE = "text:table-index-source"; + public static final String TEXT_TABLE_INDEX_ENTRY_TEMPLATE = "text:table-index-entry-template"; + public static final String TEXT_OBJECT_INDEX = "text:object-index"; + public static final String TEXT_USER_INDEX = "text:user-index"; + public static final String TEXT_BIBLIOGRAPHY = "text:bibliography"; + public static final String TEXT_BIBLIOGRAPHY_SOURCE = "text:bibliography-source"; + public static final String TEXT_BIBLIOGRAPHY_ENTRY_TEMPLATE = "text:bibliography-entry-template"; + public static final String TEXT_INDEX_ENTRY_BIBLIOGRAPHY = "text:index-entry-bibliography"; + public static final String TEXT_INDEX_ENTRY_SPAN = "text:index-entry-span"; + public static final String TEXT_INDEX_TITLE_TEMPLATE = "text:index-title-template"; + public static final String TEXT_INDEX_BODY = "text:index-body"; + public static final String TEXT_INDEX_TITLE = "text:index-title"; + public static final String TEXT_INDEX_SOURCE = "text:index-source"; // text namespace - elements (inline text) - public static final String TEXT_SPAN="text:span"; - public static final String TEXT_FOOTNOTE="text:footnote"; - public static final String TEXT_ENDNOTE="text:endnote"; - public static final String TEXT_NOTE="text:note"; // oasis - public static final String TEXT_FOOTNOTE_CITATION="text:footnote-citation"; - public static final String TEXT_FOOTNOTE_BODY="text:footnote-body"; - public static final String TEXT_ENDNOTE_CITATION="text:endnote-citation"; - public static final String TEXT_ENDNOTE_BODY="text:endnote-body"; - public static final String TEXT_NOTE_CITATION="text:note-citation"; // oasis - public static final String TEXT_NOTE_BODY="text:note-body"; // oasis - public static final String TEXT_S="text:s"; - public static final String TEXT_TAB_STOP="text:tab-stop"; - public static final String TEXT_TAB="text:tab"; // oasis - public static final String TEXT_A="text:a"; - public static final String TEXT_LINE_BREAK="text:line-break"; - public static final String TEXT_PAGE_NUMBER="text:page-number"; - public static final String TEXT_PAGE_COUNT="text:page-count"; - public static final String TEXT_PAGE_ADJUST="text:page-adjust"; - public static final String TEXT_CHAPTER="text:chapter"; - public static final String TEXT_SEQUENCE="text:sequence"; - public static final String TEXT_SEQUENCE_REF="text:sequence-ref"; - public static final String TEXT_BIBLIOGRAPHY_MARK="text:bibliography-mark"; - public static final String TEXT_ALPHABETICAL_INDEX_MARK="text:alphabetical-index-mark"; - public static final String TEXT_ALPHABETICAL_INDEX_MARK_START="text:alphabetical-index-mark-start"; - public static final String TEXT_ALPHABETICAL_INDEX_MARK_END="text:alphabetical-index-mark-end"; - public static final String TEXT_TOC_MARK="text:toc-mark"; - public static final String TEXT_TOC_MARK_START="text:toc-mark-start"; - public static final String TEXT_TOC_MARK_END="text:toc-mark-end"; - public static final String TEXT_REFERENCE_MARK="text:reference-mark"; - public static final String TEXT_REFERENCE_MARK_START="text:reference-mark-start"; - public static final String TEXT_REFERENCE_MARK_END="text:reference-mark-end"; - public static final String TEXT_REFERENCE_REF="text:reference-ref"; - public static final String TEXT_BOOKMARK="text:bookmark"; - public static final String TEXT_BOOKMARK_START="text:bookmark-start"; - public static final String TEXT_BOOKMARK_REF="text:bookmark-ref"; - public static final String TEXT_FOOTNOTE_REF="text:footnote-ref"; - public static final String TEXT_ENDNOTE_REF="text:endnote-ref"; - public static final String TEXT_NOTE_REF="text:note-ref"; // oasis - public static final String TEXT_SOFT_PAGE_BREAK="text:soft-page-break"; // ODF 1.1 - - // text namespace - attributes - public static final String TEXT_USE_OUTLINE_LEVEL="text:use-outline-level"; - public static final String TEXT_USE_INDEX_SOURCE_STYLES="text:use-index-source-styles"; - public static final String TEXT_USE_INDEX_MARKS="text:use-index-marks"; - public static final String TEXT_INDEX_SCOPE="text:index-scope"; - public static final String TEXT_OUTLINE_LEVEL="text:outline-level"; - public static final String TEXT_IS_LIST_HEADER="text:is-list-header"; - public static final String TEXT_USE_CAPTION="text:use-caption"; - public static final String TEXT_CAPTION_SEQUENCE_NAME="text:caption-sequence-name"; - public static final String TEXT_STRING_VALUE="text:string-value"; - public static final String TEXT_KEY1="text:key1"; - public static final String TEXT_KEY2="text:key2"; - public static final String TEXT_LEVEL="text:level"; - public static final String TEXT_SPACE_BEFORE="text:space-before"; - public static final String TEXT_MIN_LABEL_WIDTH="text:min-label-width"; - public static final String TEXT_MIN_LABEL_DISTANCE="text:min-label-distance"; - public static final String TEXT_STYLE_NAME="text:style-name"; - public static final String TEXT_VISITED_STYLE_NAME="text:visited-style-name"; - public static final String TEXT_DISPLAY_LEVELS="text:display-levels"; - public static final String TEXT_CONTINUE_NUMBERING="text:continue-numbering"; - public static final String TEXT_C="text:c"; - public static final String TEXT_ID="text:id"; - public static final String TEXT_LABEL="text:label"; - public static final String TEXT_NAME="text:name"; - public static final String TEXT_REFERENCE_FORMAT="text:reference-format"; - public static final String TEXT_REF_NAME="text:ref-name"; - public static final String TEXT_FORMULA="text:formula"; - public static final String TEXT_FOOTNOTES_POSITION="text:footnotes-position"; - public static final String TEXT_NOTE_CLASS="text:note-class"; - public static final String TEXT_CITATION_BODY_STYLE_NAME="text:citation-body-style-name"; - public static final String TEXT_CITATION_STYLE_NAME="text:citation-style-name"; - public static final String TEXT_DEFAULT_STYLE_NAME="text:default-style-name"; - public static final String TEXT_START_VALUE="text:start-value"; - public static final String TEXT_START_NUMBERING_AT="text:start-numbering-at"; - public static final String TEXT_RESTART_NUMBERING="text:restart-numbering"; - public static final String TEXT_ANCHOR_TYPE="text:anchor-type"; - public static final String TEXT_BULLET_CHAR="text:bullet-char"; - public static final String TEXT_DISPLAY="text:display"; - public static final String TEXT_DISPLAY_OUTLINE_LEVEL="text:display-outline-level"; - public static final String TEXT_SEPARATION_CHARACTER="text:separation-character"; - - public static final String TEXT_LIST_LEVEL_POSITION_AND_SPACE_MODE="text:list-level-position-and-space-mode"; // oasis 1.2 - public static final String TEXT_LABEL_FOLLOWED_BY="text:label-followed-by"; // oasis 1.2 - public static final String TEXT_LIST_TAB_STOP_POSITION="text:list-tab-stop-position"; // oasis 1.2 + public static final String TEXT_SPAN = "text:span"; + public static final String TEXT_FOOTNOTE = "text:footnote"; + public static final String TEXT_ENDNOTE = "text:endnote"; + public static final String TEXT_NOTE = "text:note"; // oasis + public static final String TEXT_FOOTNOTE_CITATION = "text:footnote-citation"; + public static final String TEXT_FOOTNOTE_BODY = "text:footnote-body"; + public static final String TEXT_ENDNOTE_CITATION = "text:endnote-citation"; + public static final String TEXT_ENDNOTE_BODY = "text:endnote-body"; + public static final String TEXT_NOTE_CITATION = "text:note-citation"; // oasis + public static final String TEXT_NOTE_BODY = "text:note-body"; // oasis + public static final String TEXT_S = "text:s"; + public static final String TEXT_TAB_STOP = "text:tab-stop"; + public static final String TEXT_TAB = "text:tab"; // oasis + public static final String TEXT_A = "text:a"; + public static final String TEXT_LINE_BREAK = "text:line-break"; + public static final String TEXT_PAGE_NUMBER = "text:page-number"; + public static final String TEXT_PAGE_COUNT = "text:page-count"; + public static final String TEXT_PAGE_ADJUST = "text:page-adjust"; + public static final String TEXT_CHAPTER = "text:chapter"; + public static final String TEXT_SEQUENCE = "text:sequence"; + public static final String TEXT_SEQUENCE_REF = "text:sequence-ref"; + public static final String TEXT_BIBLIOGRAPHY_MARK = "text:bibliography-mark"; + public static final String TEXT_ALPHABETICAL_INDEX_MARK = "text:alphabetical-index-mark"; + public static final String TEXT_ALPHABETICAL_INDEX_MARK_START = "text:alphabetical-index-mark-start"; + public static final String TEXT_ALPHABETICAL_INDEX_MARK_END = "text:alphabetical-index-mark-end"; + public static final String TEXT_TOC_MARK = "text:toc-mark"; + public static final String TEXT_TOC_MARK_START = "text:toc-mark-start"; + public static final String TEXT_TOC_MARK_END = "text:toc-mark-end"; + public static final String TEXT_REFERENCE_MARK = "text:reference-mark"; + public static final String TEXT_REFERENCE_MARK_START = "text:reference-mark-start"; + public static final String TEXT_REFERENCE_MARK_END = "text:reference-mark-end"; + public static final String TEXT_REFERENCE_REF = "text:reference-ref"; + public static final String TEXT_BOOKMARK = "text:bookmark"; + public static final String TEXT_BOOKMARK_START = "text:bookmark-start"; + public static final String TEXT_BOOKMARK_REF = "text:bookmark-ref"; + public static final String TEXT_FOOTNOTE_REF = "text:footnote-ref"; + public static final String TEXT_ENDNOTE_REF = "text:endnote-ref"; + public static final String TEXT_NOTE_REF = "text:note-ref"; // oasis + public static final String TEXT_SOFT_PAGE_BREAK = "text:soft-page-break"; // ODF + // 1.1 - public static final String TEXT_PREFIX="text:prefix"; - public static final String TEXT_SUFFIX="text:suffix"; - public static final String TEXT_NUMBERED_ENTRIES="text:numbered-entries"; - public static final String TEXT_SORT_BY_POSITION="text:sort-by-position"; - public static final String TEXT_SORT_ALGORITHM="text:sort-algorithm"; - public static final String TEXT_KEY="text:key"; - public static final String TEXT_SORT_ASCENDING="text:sort-ascending"; - public static final String TEXT_IDENTIFIER="text:identifier"; - public static final String TEXT_BIBLIOGRAPHY_TYPE="text:bibliography-type"; - public static final String TEXT_BIBILIOGRAPHIC_TYPE="text:bibiliographic-type"; // bug in OOo 1.0 - public static final String TEXT_BIBLIOGRAPHY_DATA_FIELD="text:bibliography-data-field"; - public static final String TEXT_ADDRESS="text:address"; - public static final String TEXT_ANNOTE="text:annote"; - public static final String TEXT_AUTHOR="text:author"; - public static final String TEXT_BOOKTITLE="text:booktitle"; - //public static final String TEXT_CHAPTER="text:chapter"; - public static final String TEXT_EDITION="text:edition"; - public static final String TEXT_EDITOR="text:editor"; - public static final String TEXT_HOWPUBLISHED="text:howpublished"; - public static final String TEXT_INSTITUTION="text:institution"; - public static final String TEXT_JOURNAL="text:journal"; - public static final String TEXT_MONTH="text:month"; - // public static final String TEXT_NOTE="text:note"; defined above as an element name - public static final String TEXT_NUMBER="text:number"; - public static final String TEXT_ORGANIZATIONS="text:organizations"; - public static final String TEXT_PAGES="text:pages"; - public static final String TEXT_PUBLISHER="text:publisher"; - public static final String TEXT_SCHOOL="text:school"; - public static final String TEXT_SERIES="text:series"; - public static final String TEXT_TITLE="text:title"; - public static final String TEXT_REPORT_TYPE="text:report-type"; - public static final String TEXT_VOLUME="text:volume"; - public static final String TEXT_YEAR="text:year"; - public static final String TEXT_URL="text:url"; - public static final String TEXT_CUSTOM1="text:custom1"; - public static final String TEXT_CUSTOM2="text:custom2"; - public static final String TEXT_CUSTOM3="text:custom3"; - public static final String TEXT_CUSTOM4="text:custom4"; - public static final String TEXT_CUSTOM5="text:custom5"; - public static final String TEXT_ISBN="text:isbn"; - - // fo namespace - public static final String FO_LANGUAGE="fo:language"; - public static final String FO_COUNTRY="fo:country"; - public static final String FO_TEXT_SHADOW="fo:text-shadow"; - public static final String FO_COLOR="fo:color"; - public static final String FO_BACKGROUND_COLOR="fo:background-color"; - public static final String FO_TEXT_TRANSFORM="fo:text-transform"; - public static final String FO_FONT_FAMILY="fo:font-family"; - public static final String FO_FONT_SIZE="fo:font-size"; - public static final String FO_FONT_WEIGHT="fo:font-weight"; - public static final String FO_FONT_VARIANT="fo:font-variant"; - public static final String FO_FONT_STYLE="fo:font-style"; - public static final String FO_LETTER_SPACING="fo:letter-spacing"; - public static final String FO_VERTICAL_ALIGN="fo:vertical-align"; - public static final String FO_TEXT_ALIGN="fo:text-align"; - public static final String FO_TEXT_ALIGN_LAST="fo:text-align-last"; - public static final String FO_BREAK_BEFORE="fo:break-before"; - public static final String FO_BREAK_AFTER="fo:break-after"; - public static final String FO_MARGIN_LEFT="fo:margin-left"; - public static final String FO_MARGIN_RIGHT="fo:margin-right"; - public static final String FO_MARGIN_TOP="fo:margin-top"; - public static final String FO_MARGIN_BOTTOM="fo:margin-bottom"; - public static final String FO_PAGE_WIDTH="fo:page-width"; - public static final String FO_PAGE_HEIGHT="fo:page-height"; - public static final String FO_MIN_HEIGHT="fo:min-height"; - public static final String FO_BORDER="fo:border"; - public static final String FO_BORDER_LEFT="fo:border-left"; - public static final String FO_BORDER_RIGHT="fo:border-right"; - public static final String FO_BORDER_TOP="fo:border-top"; - public static final String FO_BORDER_BOTTOM="fo:border-bottom"; - public static final String FO_PADDING="fo:padding"; - public static final String FO_PADDING_LEFT="fo:padding-left"; - public static final String FO_PADDING_RIGHT="fo:padding-right"; - public static final String FO_PADDING_TOP="fo:padding-top"; - public static final String FO_PADDING_BOTTOM="fo:padding-bottom"; - public static final String FO_LINE_HEIGHT="fo:line-height"; - public static final String FO_TEXT_INDENT="fo:text-indent"; - public static final String FO_WRAP_OPTION="fo:wrap-option"; - public static final String FO_COLUMN_COUNT="fo:column-count"; + // text namespace - attributes + public static final String TEXT_USE_OUTLINE_LEVEL = "text:use-outline-level"; + public static final String TEXT_USE_INDEX_SOURCE_STYLES = "text:use-index-source-styles"; + public static final String TEXT_USE_INDEX_MARKS = "text:use-index-marks"; + public static final String TEXT_INDEX_SCOPE = "text:index-scope"; + public static final String TEXT_OUTLINE_LEVEL = "text:outline-level"; + public static final String TEXT_IS_LIST_HEADER = "text:is-list-header"; + public static final String TEXT_USE_CAPTION = "text:use-caption"; + public static final String TEXT_CAPTION_SEQUENCE_NAME = "text:caption-sequence-name"; + public static final String TEXT_STRING_VALUE = "text:string-value"; + public static final String TEXT_KEY1 = "text:key1"; + public static final String TEXT_KEY2 = "text:key2"; + public static final String TEXT_LEVEL = "text:level"; + public static final String TEXT_SPACE_BEFORE = "text:space-before"; + public static final String TEXT_MIN_LABEL_WIDTH = "text:min-label-width"; + public static final String TEXT_MIN_LABEL_DISTANCE = "text:min-label-distance"; + public static final String TEXT_STYLE_NAME = "text:style-name"; + public static final String TEXT_VISITED_STYLE_NAME = "text:visited-style-name"; + public static final String TEXT_DISPLAY_LEVELS = "text:display-levels"; + public static final String TEXT_CONTINUE_NUMBERING = "text:continue-numbering"; + public static final String TEXT_C = "text:c"; + public static final String TEXT_ID = "text:id"; + public static final String TEXT_LABEL = "text:label"; + public static final String TEXT_NAME = "text:name"; + public static final String TEXT_REFERENCE_FORMAT = "text:reference-format"; + public static final String TEXT_REF_NAME = "text:ref-name"; + public static final String TEXT_FORMULA = "text:formula"; + public static final String TEXT_FOOTNOTES_POSITION = "text:footnotes-position"; + public static final String TEXT_NOTE_CLASS = "text:note-class"; + public static final String TEXT_CITATION_BODY_STYLE_NAME = "text:citation-body-style-name"; + public static final String TEXT_CITATION_STYLE_NAME = "text:citation-style-name"; + public static final String TEXT_DEFAULT_STYLE_NAME = "text:default-style-name"; + public static final String TEXT_START_VALUE = "text:start-value"; + public static final String TEXT_START_NUMBERING_AT = "text:start-numbering-at"; + public static final String TEXT_RESTART_NUMBERING = "text:restart-numbering"; + public static final String TEXT_ANCHOR_TYPE = "text:anchor-type"; + public static final String TEXT_BULLET_CHAR = "text:bullet-char"; + public static final String TEXT_DISPLAY = "text:display"; + public static final String TEXT_DISPLAY_OUTLINE_LEVEL = "text:display-outline-level"; + public static final String TEXT_SEPARATION_CHARACTER = "text:separation-character"; - // svg namespace - public static final String SVG_DESC="svg:desc"; - public static final String SVG_TITLE="svg:title"; + public static final String TEXT_LIST_LEVEL_POSITION_AND_SPACE_MODE = "text:list-level-position-and-space-mode"; // oasis + // 1.2 + public static final String TEXT_LABEL_FOLLOWED_BY = "text:label-followed-by"; // oasis + // 1.2 + public static final String TEXT_LIST_TAB_STOP_POSITION = "text:list-tab-stop-position"; // oasis + // 1.2 - public static final String SVG_FONT_FAMILY="svg:font-family"; // oasis (font declarations only) - public static final String SVG_X="svg:x"; - public static final String SVG_Y="svg:y"; - public static final String SVG_HEIGHT="svg:height"; - public static final String SVG_WIDTH="svg:width"; - // xlink namespace - public static final String XLINK_HREF="xlink:href"; + public static final String TEXT_PREFIX = "text:prefix"; + public static final String TEXT_SUFFIX = "text:suffix"; + public static final String TEXT_NUMBERED_ENTRIES = "text:numbered-entries"; + public static final String TEXT_SORT_BY_POSITION = "text:sort-by-position"; + public static final String TEXT_SORT_ALGORITHM = "text:sort-algorithm"; + public static final String TEXT_KEY = "text:key"; + public static final String TEXT_SORT_ASCENDING = "text:sort-ascending"; + public static final String TEXT_IDENTIFIER = "text:identifier"; + public static final String TEXT_BIBLIOGRAPHY_TYPE = "text:bibliography-type"; + public static final String TEXT_BIBILIOGRAPHIC_TYPE = "text:bibiliographic-type"; // bug + // in + // OOo + // 1.0 + public static final String TEXT_BIBLIOGRAPHY_DATA_FIELD = "text:bibliography-data-field"; + public static final String TEXT_ADDRESS = "text:address"; + public static final String TEXT_ANNOTE = "text:annote"; + public static final String TEXT_AUTHOR = "text:author"; + public static final String TEXT_BOOKTITLE = "text:booktitle"; + // public static final String TEXT_CHAPTER="text:chapter"; + public static final String TEXT_EDITION = "text:edition"; + public static final String TEXT_EDITOR = "text:editor"; + public static final String TEXT_HOWPUBLISHED = "text:howpublished"; + public static final String TEXT_INSTITUTION = "text:institution"; + public static final String TEXT_JOURNAL = "text:journal"; + public static final String TEXT_MONTH = "text:month"; + // public static final String TEXT_NOTE="text:note"; defined above as an + // element name + public static final String TEXT_NUMBER = "text:number"; + public static final String TEXT_ORGANIZATIONS = "text:organizations"; + public static final String TEXT_PAGES = "text:pages"; + public static final String TEXT_PUBLISHER = "text:publisher"; + public static final String TEXT_SCHOOL = "text:school"; + public static final String TEXT_SERIES = "text:series"; + public static final String TEXT_TITLE = "text:title"; + public static final String TEXT_REPORT_TYPE = "text:report-type"; + public static final String TEXT_VOLUME = "text:volume"; + public static final String TEXT_YEAR = "text:year"; + public static final String TEXT_URL = "text:url"; + public static final String TEXT_CUSTOM1 = "text:custom1"; + public static final String TEXT_CUSTOM2 = "text:custom2"; + public static final String TEXT_CUSTOM3 = "text:custom3"; + public static final String TEXT_CUSTOM4 = "text:custom4"; + public static final String TEXT_CUSTOM5 = "text:custom5"; + public static final String TEXT_ISBN = "text:isbn"; + + // fo namespace + public static final String FO_LANGUAGE = "fo:language"; + public static final String FO_COUNTRY = "fo:country"; + public static final String FO_TEXT_SHADOW = "fo:text-shadow"; + public static final String FO_COLOR = "fo:color"; + public static final String FO_BACKGROUND_COLOR = "fo:background-color"; + public static final String FO_TEXT_TRANSFORM = "fo:text-transform"; + public static final String FO_FONT_FAMILY = "fo:font-family"; + public static final String FO_FONT_SIZE = "fo:font-size"; + public static final String FO_FONT_WEIGHT = "fo:font-weight"; + public static final String FO_FONT_VARIANT = "fo:font-variant"; + public static final String FO_FONT_STYLE = "fo:font-style"; + public static final String FO_LETTER_SPACING = "fo:letter-spacing"; + public static final String FO_VERTICAL_ALIGN = "fo:vertical-align"; + public static final String FO_TEXT_ALIGN = "fo:text-align"; + public static final String FO_TEXT_ALIGN_LAST = "fo:text-align-last"; + public static final String FO_BREAK_BEFORE = "fo:break-before"; + public static final String FO_BREAK_AFTER = "fo:break-after"; + public static final String FO_MARGIN_LEFT = "fo:margin-left"; + public static final String FO_MARGIN_RIGHT = "fo:margin-right"; + public static final String FO_MARGIN_TOP = "fo:margin-top"; + public static final String FO_MARGIN_BOTTOM = "fo:margin-bottom"; + public static final String FO_PAGE_WIDTH = "fo:page-width"; + public static final String FO_PAGE_HEIGHT = "fo:page-height"; + public static final String FO_MIN_HEIGHT = "fo:min-height"; + public static final String FO_BORDER = "fo:border"; + public static final String FO_BORDER_LEFT = "fo:border-left"; + public static final String FO_BORDER_RIGHT = "fo:border-right"; + public static final String FO_BORDER_TOP = "fo:border-top"; + public static final String FO_BORDER_BOTTOM = "fo:border-bottom"; + public static final String FO_PADDING = "fo:padding"; + public static final String FO_PADDING_LEFT = "fo:padding-left"; + public static final String FO_PADDING_RIGHT = "fo:padding-right"; + public static final String FO_PADDING_TOP = "fo:padding-top"; + public static final String FO_PADDING_BOTTOM = "fo:padding-bottom"; + public static final String FO_LINE_HEIGHT = "fo:line-height"; + public static final String FO_TEXT_INDENT = "fo:text-indent"; + public static final String FO_WRAP_OPTION = "fo:wrap-option"; + public static final String FO_COLUMN_COUNT = "fo:column-count"; + + // svg namespace + public static final String SVG_DESC = "svg:desc"; + public static final String SVG_TITLE = "svg:title"; + + public static final String SVG_FONT_FAMILY = "svg:font-family"; // oasis (font + // declarations + // only) + public static final String SVG_X = "svg:x"; + public static final String SVG_Y = "svg:y"; + public static final String SVG_HEIGHT = "svg:height"; + public static final String SVG_WIDTH = "svg:width"; + // xlink namespace + public static final String XLINK_HREF = "xlink:href"; // math namespace - public static final String MATH_MATH="math:math"; - public static final String MATH_SEMANTICS="math:semantics"; - public static final String MATH_ANNOTATION="math:annotation"; + public static final String MATH_MATH = "math:math"; + public static final String MATH_SEMANTICS = "math:semantics"; + public static final String MATH_ANNOTATION = "math:annotation"; // math without namespace - public static final String MATH="math"; - public static final String SEMANTICS="semantics"; - public static final String ANNOTATION="annotation"; - + public static final String MATH = "math"; + public static final String SEMANTICS = "semantics"; + public static final String ANNOTATION = "annotation"; + } diff --git a/src/main/java/w2phtml/xhtml/content/TextParser.java b/src/main/java/w2phtml/xhtml/content/TextParser.java index abf9776..7af062b 100644 --- a/src/main/java/w2phtml/xhtml/content/TextParser.java +++ b/src/main/java/w2phtml/xhtml/content/TextParser.java @@ -231,7 +231,7 @@ public class TextParser extends Parser { return; } - public int getTocIndex() { return tocParser.getFileIndex(); } + public int getTocIndex() { return tocParser.getFileIndex(); } public int getAlphabeticalIndex() { return indexCv.getFileIndex(); }