/************************************************************************
*
* The Contents of this file are made available subject to the terms of
*
* - GNU Lesser General Public License Version 2.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
// This version has been adapted for Writer2LaTeX
package writer2latex.xmerge;
/**
* This interface contains constants for StarOffice XML tags,
* attributes (StarCalc cell types, etc.).
*
* @author Herbie Ong, Paul Rank, Martin Maher
*/
public interface OfficeConstants {
/** Element tag for office:document, this is the root tag. */
public final static String TAG_OFFICE_DOCUMENT = "office:document";
/**
* Element tag for office:document-content, this is the root
* tag in content.xml.
*/
public final static String TAG_OFFICE_DOCUMENT_CONTENT = "office:document-content";
/**
* Element tag for office:document-settings, this is the root
* tag in content.xml.
*/
public final static String TAG_OFFICE_DOCUMENT_SETTINGS= "office:document-settings";
/**
* Element tag for office:document-meta, this is the root
* tag in content.xml.
*/
public final static String TAG_OFFICE_DOCUMENT_META= "office:document-meta";
/**
* Element tag for office:document-styles, this is the root tag
* in styles.xml.
*/
public final static String TAG_OFFICE_DOCUMENT_STYLES = "office:document-styles";
/**
* Attribute tag for office:class of element
* office:document.
*/
public final static String ATTRIBUTE_OFFICE_CLASS = "office:class";
/** Element tag for office:styles. */
public final static String TAG_OFFICE_STYLES = "office:styles";
/** Element tag for office:meta. */
public final static String TAG_OFFICE_META = "office:meta";
/** Element tag for office:automatic-styles. */
public final static String TAG_OFFICE_AUTOMATIC_STYLES = "office:automatic-styles";
/** Element tag for office:master-styles. */
public final static String TAG_OFFICE_MASTER_STYLES = "office:master-styles";
/** Element tag for office:body. */
public final static String TAG_OFFICE_BODY = "office:body";
/** Element tag for office:font-face-decls. */
public final static String TAG_OFFICE_FONT_FACE_DECLS = "office:font-face-decls";
/** Element tag for office:settings. */
public final static String TAG_OFFICE_SETTINGS = "office:settings";
//Adding
/** Element tag for text:variable-set. */
public final static String TAG_TEXT_VARIABLE_SET = "text:variable-set";
/** Element tag for text:variable-get. */
public final static String TAG_TEXT_VARIABLE_GET = "text:variable-get";
/** Element tag for text:expression. */
public final static String TAG_TEXT_EXPRESSION = "text:expression";
/** Element tag for text:user-field-get. */
public final static String TAG_TEXT_USER_FIELD_GET = "text:user-field-get";
/** Element tag for text:page-variable-get. */
public final static String TAG_TEXT_PAGE_VARIABLE_GET = "text:page-variable-get";
/** Element tag for text:sequence. */
public final static String TAG_TEXT_SEQUENCE = "text:sequence";
/** Element tag for text:text-input. */
public final static String TAG_TEXT_VARIABLE_INPUT = "text:variable-input";
/** Element tag for text:time. */
public final static String TAG_TEXT_TIME = "text:time";
/** Element tag for text:page-count. */
public final static String TAG_TEXT_PAGE_COUNT = "text:page-count";
/** Element tag for text:page-number. */
public final static String TAG_TEXT_PAGE_NUMBER = "text:page-number";
/** Element tag for text:author-initials. */
public final static String TAG_TEXT_AUTHOR_INITIALS = "text:author-initials";
/** Element tag for text:subject. */
public final static String TAG_TEXT_SUBJECT = "text:subject";
/** Element tag for text:title. */
public final static String TAG_TEXT_TITLE = "text:title";
/** Element tag for text:creation-time. */
public final static String TAG_TEXT_CREATION_TIME = "text:creation-time";
/** Element tag for text:date. */
public final static String TAG_TEXT_DATE = "text:date";
/** Element tag for text:text-input. */
public final static String TAG_TEXT_TEXT_INPUT = "text:text-input";
//end adding
/** Element tag for office:font-decls. */
public final static String TAG_OFFICE_FONT_DECLS = "office:font-decls";
/** Element tag for style:font-decl. */
public final static String TAG_STYLE_FONT_DECL = "style:font-decl";
/** Attribute tag for style:name of element style:name. */
public final static String ATTRIBUTE_STYLE_NAME = "style:name";
/**
* Attribute tag for style:font-pitch of element
* style:font-pitch.
*/
public final static String ATTRIBUTE_STYLE_FONT_PITCH = "style:font-pitch";
/**
* Attribute tag for fo:font-family of element
* fo:font-family.
*/
public final static String ATTRIBUTE_FO_FONT_FAMILY = "fo:font-family";
/**
* Attribute tag for fo:font-family of element
* fo:font-family.
*/
public final static String ATTRIBUTE_FO_FONT_FAMILY_GENERIC = "fo:font-family-generic";
/** Element tag for text:p. */
public final static String TAG_PARAGRAPH = "text:p";
/** Element tag for text:. */
public final static String TAG_TEXT = "text:";
/** Element tag for text:h. */
public final static String TAG_HEADING = "text:h";
/** Element tag for text:s. */
public final static String TAG_SPACE = "text:s";
/** Element tag for text:tab-stop. */
public final static String TAG_TAB_STOP = "text:tab-stop";
/** Element tag for text:line-break. */
public final static String TAG_LINE_BREAK = "text:line-break";
/** Element tag for text:span. */
public final static String TAG_SPAN = "text:span";
/** Element tag for text:a. */
public final static String TAG_HYPERLINK = "text:a";
/** Element tag for text:bookmark. */
public final static String TAG_BOOKMARK = "text:bookmark";
/** Element tag for text:bookmark-start. */
public final static String TAG_BOOKMARK_START = "text:bookmark-start";
/** Element tag for text:unordered-list. */
public final static String TAG_UNORDERED_LIST = "text:unordered-list";
/** Element tag for text:ordered-list. */
public final static String TAG_ORDERED_LIST = "text:ordered-list";
/** Element tag for text:list-header. */
public final static String TAG_LIST_HEADER = "text:list-header";
/** Element tag for text:list-item. */
public final static String TAG_LIST_ITEM = "text:list-item";
/** Attribute tag for text:c of element text:s. */
public final static String ATTRIBUTE_SPACE_COUNT = "text:c";
/**
* Attribute tag for text:style-name of element
* text:style-name.
*/
public final static String ATTRIBUTE_TEXT_STYLE_NAME = "text:style-name";
/** Element tag for table:table. */
public final static String TAG_TABLE = "table:table";
/** Element tag for table:named-expression. */
public final static String TAG_NAMED_EXPRESSIONS = "table:named-expressions";
/** Element tag for table:named-range. */
public final static String TAG_TABLE_NAMED_RANGE= "table:named-range";
/** Element tag for table:named-expression. */
public final static String TAG_TABLE_NAMED_EXPRESSION= "table:named-expression";
/**
* Attribute tag for table:name of element
* table:table.
*/
public final static String ATTRIBUTE_TABLE_NAME = "table:name";
/**
* Attribute tag for table:expression of element
* table:named-range.
*/
public final static String ATTRIBUTE_TABLE_EXPRESSION = "table:expression";
/**
* Attribute tag for table:base-cell-address of element
* table:named-range.
*/
public final static String ATTRIBUTE_TABLE_BASE_CELL_ADDRESS = "table:base-cell-address";
/**
* Attribute tag for table:cell-range-address of element
* table:named-range.
*/
public final static String ATTRIBUTE_TABLE_CELL_RANGE_ADDRESS = "table:cell-range-address";
/** Element tag for table:table-row. */
public final static String TAG_TABLE_ROW = "table:table-row";
/** Element tag for table:table-column. */
public final static String TAG_TABLE_COLUMN = "table:table-column";
/**
* Attribute tag for table:default-cell-style-name
* of element table:table-column.
*/
public final static String ATTRIBUTE_DEFAULT_CELL_STYLE = "table:default-cell-style-name";
/** Element tag for table:scenario. */
public final static String TAG_TABLE_SCENARIO = "table:scenario";
/** Element tag for table:table-cell. */
public final static String TAG_TABLE_CELL = "table:table-cell";
/**
* Attribute tag for table:value-type of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_VALUE_TYPE = "table:value-type";
/**
* Attribute tag for table:number-columns-repeated
* of element table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED =
"table:number-columns-repeated";
/**
* Attribute tag for table:number-rows-repeated
* of element table:table-row.
*/
public final static String ATTRIBUTE_TABLE_NUM_ROWS_REPEATED =
"table:number-rows-repeated";
/**
* Attribute tag for table:formula of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_FORMULA = "table:formula";
/**
* Attribute tag for table:value of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_VALUE = "table:value";
/**
* Attribute tag for table:date-value of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_DATE_VALUE = "table:date-value";
/**
* Attribute tag for table:time-value of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_TIME_VALUE = "table:time-value";
/**
* Attribute tag for table:string-value of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_STRING_VALUE =
"table:string-value";
/**
* Attribute tag for table:time-boolean-value of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_BOOLEAN_VALUE =
"table:boolean-value";
/** Attribute tag for table:style-name of table elements. */
public final static String ATTRIBUTE_TABLE_STYLE_NAME = "table:style-name";
/**
* Attribute tag for table:currency of element
* table:table-cell.
*/
public final static String ATTRIBUTE_TABLE_CURRENCY = "table:currency";
/** The cell contains data of type string. */
public final static String CELLTYPE_STRING = "string";
/** The cell contains data of type float. */
public final static String CELLTYPE_FLOAT = "float";
/** The cell contains data of type time. */
public final static String CELLTYPE_TIME = "time";
/** The cell contains data of type date. */
public final static String CELLTYPE_DATE = "date";
/** The cell contains data of type currency. */
public final static String CELLTYPE_CURRENCY = "currency";
/** The cell contains data of type boolean. */
public final static String CELLTYPE_BOOLEAN = "boolean";
/** The cell contains data of type percent. */
public final static String CELLTYPE_PERCENT = "percentage";
/** StarWriter XML file extension. */
public final static String SXW_FILE_EXTENSION = ".sxw";
/** StarWriter XML office:class value. */
public final static String SXW_TYPE = "text";
/** StarCalc XML file extension. */
public final static String SXC_FILE_EXTENSION = ".sxc";
/** StarCalc XML office:class value. */
public final static String SXC_TYPE = "spreadsheet";
/** Element tag for manifest:manifestentry in Manifest XML */
public final static String TAG_MANIFEST_ROOT = "manifest:manifest";
/** Element tag for manifest:file-entry entry in Manifest XML. */
public final static String TAG_MANIFEST_FILE = "manifest:file-entry";
/**
* Attribute tag for manifest:media-type of element
* manifest:file-entry.
*/
public final static String ATTRIBUTE_MANIFEST_FILE_TYPE = "manifest:media-type";
/**
* Attribute tag for manifest:full-path of element
* manifest:file-entry.
*/
public final static String ATTRIBUTE_MANIFEST_FILE_PATH = "manifest:full-path";
// Tags and Elements for the settings.xml
/** Element tag for config:config-item. */
public final static String TAG_CONFIG_ITEM = "config:config-item";
/** Element tag for config:config-item-set. */
public final static String TAG_CONFIG_ITEM_SET = "config:config-item-set";
/** Element tag for config:config-item-map-indexed. */
public final static String TAG_CONFIG_ITEM_MAP_INDEXED = "config:config-item-map-indexed";
/** Element tag for config:config-item-map-named. */
public final static String TAG_CONFIG_ITEM_MAP_NAMED = "config:config-item-map-named";
/** Element tag for config:config-item-map-entry. */
public final static String TAG_CONFIG_ITEM_MAP_ENTRY= "config:config-item-map-entry";
/**
* Attribute tag for config:name of element
* config:config-item.
*/
public final static String ATTRIBUTE_CONFIG_NAME = "config:name";
/**
* Attribute tag for config:type of element
* config:config-item.
*/
public final static String ATTRIBUTE_CONFIG_TYPE = "config:type";
/** StarWriter XML MIME type. */
public final static String SXW_MIME_TYPE = "application/vnd.sun.xml.writer";
/** StarWriter XML Template MIME type. */
public final static String STW_MIME_TYPE = "application/vnd.sun.xml.writer.template";
/** StarCalc XML MIME type. */
public final static String SXC_MIME_TYPE = "application/vnd.sun.xml.calc";
/** StarCalc XML Template MIME type. */
public final static String STC_MIME_TYPE = "application/vnd.sun.xml.calc.template";
/** StarImpress XML MIME type. */
public final static String SXI_MIME_TYPE = "application/vnd.sun.xml.impress";
/** StarImpress XML Template MIME type. */
public final static String STI_MIME_TYPE = "application/vnd.sun.xml.impress.template";
/** StarDraw XML MIME type. */
public final static String SXD_MIME_TYPE = "application/vnd.sun.xml.draw";
/** StarMath XML MIME type. */
public final static String SXM_MIME_TYPE = "application/vnd.sun.xml.math";
/** StarWriter Global XML MIME Type */
public final static String SXG_MIME_TYPE = "application/vnd.sun.xml.writer.global";
}