com.hfg.xml.msofficexml.docx.wordprocessingml.WmlXML Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.xml.msofficexml.docx.wordprocessingml;
import com.hfg.xml.XMLName;
import com.hfg.xml.XMLNamespace;
import java.io.File;
//------------------------------------------------------------------------------
/**
Office Open XML WordprocessingML tag and attribute name definitions.
@author J. Alex Taylor, hairyfatguy.com
*/
//------------------------------------------------------------------------------
// com.hfg XML/HTML Coding Library
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// 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
//
// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
// [email protected]
//------------------------------------------------------------------------------
public class WmlXML
{
public static final String WORD_DIR = "word";
public static final File MEDIA_DIR = new File(WORD_DIR, "media");
public static final File DRAWINGS_DIR = new File(WORD_DIR, "drawings");
public static final File MAIN_DOC_PART_RELATIONSHIP_FILE = new File(WORD_DIR + "/_rels", "document.xml.rels");
public static final File SETTINGS_FILE = new File(WORD_DIR, "settings.xml");
public static final File STYLES_FILE = new File(WORD_DIR, "styles.xml");
public static final File DOCUMENT_FILE = new File(WORD_DIR, "document.xml");
public static final File COMMENTS_FILE = new File(WORD_DIR, "comments.xml");
public static final XMLNamespace WORDPROCESSINGML_NAMESPACE = XMLNamespace.getNamespace("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
public static final XMLNamespace WORDPROCESSING_DRAWING_NAMESPACE = XMLNamespace.getNamespace("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
// Tag names
public static final XMLName BASED_ON = new XMLName("basedOn", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BODY = new XMLName("body", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BOLD = new XMLName("b", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BOOKMARK_END = new XMLName("bookmarkEnd", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BOOKMARK_START = new XMLName("bookmarkStart", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BORDER = new XMLName("bdr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BOTTOM = new XMLName("bottom", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BR = new XMLName("br", WORDPROCESSINGML_NAMESPACE);
public static final XMLName CANT_SPLIT = new XMLName("cantSplit", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COLOR = new XMLName("color", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COLUMNS = new XMLName("cols", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMMENT = new XMLName("comment", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMMENTS = new XMLName("comments", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMMENT_REF = new XMLName("commentReference", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMPLEX_FIELD = new XMLName("fldChar", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DOCUMENT = new XMLName("document", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DOCUMENT_DEFAULTS = new XMLName("docDefaults", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DOCUMENT_GRID = new XMLName("docGrid", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DRAWING = new XMLName("drawing", WORDPROCESSINGML_NAMESPACE);
public static final XMLName END = new XMLName("end", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ENDNOTE_PROPS = new XMLName("endnotePr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FOOTER = new XMLName("ftr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FOOTER_REFERENCE = new XMLName("footerReference", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FOOTNOTE_PROPS = new XMLName("footnotePr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FORM_PROTECT = new XMLName("formProt", WORDPROCESSINGML_NAMESPACE);
public static final XMLName GRID_COL = new XMLName("gridCol", WORDPROCESSINGML_NAMESPACE);
public static final XMLName GRID_SPAN = new XMLName("gridSpan", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HEADER = new XMLName("hdr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HEADER_REFERENCE = new XMLName("headerReference", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HIDE_GRAMMATICAL_ERRORS = new XMLName("hideGrammaticalErrors", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HIDE_MARK = new XMLName("hideMark", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HIDE_SPELLING_ERRORS = new XMLName("hideSpellingErrors", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HIGHLIGHT = new XMLName("highlight", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HYPERLINK = new XMLName("hyperlink", WORDPROCESSINGML_NAMESPACE);
public static final XMLName INDENTATION = new XMLName("ind", WORDPROCESSINGML_NAMESPACE);
public static final XMLName INSTRUCTION_TEXT = new XMLName("instrText", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ITALICS = new XMLName("i", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ITEM_FORMAT = new XMLName("ilfo", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ITEM_LEVEL = new XMLName("ilvl", WORDPROCESSINGML_NAMESPACE);
public static final XMLName JUSTIFICATION = new XMLName("jc", WORDPROCESSINGML_NAMESPACE);
public static final XMLName KEEP_LINES = new XMLName("keepLines", WORDPROCESSINGML_NAMESPACE);
public static final XMLName KEEP_NEXT = new XMLName("keepNext", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LEFT = new XMLName("left", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LINE_NUM_TYPE = new XMLName("lnNumType", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LIST_PROPS = new XMLName("listPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName NAME = new XMLName("name", WORDPROCESSINGML_NAMESPACE);
public static final XMLName NEXT = new XMLName("next", WORDPROCESSINGML_NAMESPACE);
public static final XMLName NO_ENDNOTE = new XMLName("noEndnote", WORDPROCESSINGML_NAMESPACE);
public static final XMLName NO_PROOF = new XMLName("noProof", WORDPROCESSINGML_NAMESPACE);
public static final XMLName P = new XMLName("p", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAGE_BORDERS = new XMLName("pgBorders", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAGE_BREAK_BEFORE = new XMLName("pageBreakBefore", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAGE_MARGINS = new XMLName("pgMar", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAGE_NUM_TYPE = new XMLName("pgNumType", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAGE_SIZE = new XMLName("pgSz", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PAPER_SRC = new XMLName("paperSrc", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PARAGRAPH_BORDER = new XMLName("pBdr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PARAGRAPH_PROPS = new XMLName("pPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PARAGRAPH_PROPS_DEFAULT = new XMLName("pPrDefault", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PARAGRAPH_STYLE = new XMLName("pStyle", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PRINTER_SETTINGS = new XMLName("printerSettings", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PROOF_STATE = new XMLName("proofState", WORDPROCESSINGML_NAMESPACE);
public static final XMLName PROOFING_ERROR = new XMLName("proofErr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName R = new XMLName("r", WORDPROCESSINGML_NAMESPACE);
public static final XMLName REMOVE_PERSONAL_INFO = new XMLName("removePersonalInformation", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RIGHT = new XMLName("right", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RIGHT_SIDE_GUTTER = new XMLName("rtlGutter", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RIGHT_TO_LEFT_LAYOUT = new XMLName("bidi", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RUN_FONTS = new XMLName("rFonts", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RUN_PROPS = new XMLName("rPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RUN_PROPS_DEFAULT = new XMLName("rPrDefault", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RUN_STYLE = new XMLName("rStyle", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SAVE_PREVIEW_PICT = new XMLName("savePreviewPicture", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SECT_PROPS = new XMLName("sectPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SECT_PROPS_CHANGES = new XMLName("sectPrChange", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SEMI_HIDDEN = new XMLName("semiHidden", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SETTINGS = new XMLName("settings", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SHADING = new XMLName("shd", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SHADOW = new XMLName("shadow", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SIMPLE_FIELD = new XMLName("fldSimple", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SIZE = new XMLName("sz", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SMALL_CAPS = new XMLName("smallCaps", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SPACING = new XMLName("spacing", WORDPROCESSINGML_NAMESPACE);
public static final XMLName START = new XMLName("start", WORDPROCESSINGML_NAMESPACE);
public static final XMLName STRIKE = new XMLName("strike", WORDPROCESSINGML_NAMESPACE);
public static final XMLName STYLE = new XMLName("style", WORDPROCESSINGML_NAMESPACE);
public static final XMLName STYLES = new XMLName("styles", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SUB_DOC = new XMLName("subDoc", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SYMBOL = new XMLName("sym", WORDPROCESSINGML_NAMESPACE);
public static final XMLName T = new XMLName("t", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TAB = new XMLName("tab", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABS = new XMLName("tabs", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE = new XMLName("tbl", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_BORDERS = new XMLName("tblBorders", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL = new XMLName("tc", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_BORDERS = new XMLName("tcBorders", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_MARGIN_DEFAULTS = new XMLName("tblCellMar", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_MARGIN = new XMLName("tcMar", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_PROPS = new XMLName("tcPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_SPACING = new XMLName("tblCellSpacing", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_CELL_WIDTH = new XMLName("tcW", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_GRID = new XMLName("tblGrid", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_HEADER = new XMLName("tblHeader", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_INDENT = new XMLName("tblIndent", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_LAYOUT = new XMLName("tblLayout", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_PROPS = new XMLName("tblPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_ROW = new XMLName("tr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_ROW_HEIGHT = new XMLName("trHeight", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_ROW_PROPS = new XMLName("trPr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_STYLE = new XMLName("tblStyle", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_STYLE_PROPS = new XMLName("tblStylePr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_STYLE_ROW_BAND_SIZE = new XMLName("tblStyleRowBandSize", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TABLE_WIDTH = new XMLName("tblW", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TEXT_DIRECTION = new XMLName("textDirection", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TITLE_PAGE = new XMLName("titlePg", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TOP = new XMLName("top", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TRACK_REVISIONS = new XMLName("trackRevisions", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TYPE = new XMLName("type", WORDPROCESSINGML_NAMESPACE);
public static final XMLName UI_PRIORITY = new XMLName("uiPriority", WORDPROCESSINGML_NAMESPACE);
public static final XMLName UNDERLINE = new XMLName("u", WORDPROCESSINGML_NAMESPACE);
public static final XMLName UNHIDE_WHEN_USED = new XMLName("unhideWhenUsed", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VALUE = new XMLName("val", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VALIGN = new XMLName("vAlign", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VANISH = new XMLName("vanish", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VMERGE = new XMLName("vMerge", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VERT_ALIGN = new XMLName("vertAlign", WORDPROCESSINGML_NAMESPACE);
// Attribute names
public static final XMLName ASCII_ATT = new XMLName("ascii", WORDPROCESSINGML_NAMESPACE);
public static final XMLName AFTER_ATT = new XMLName("after", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BEFORE_ATT = new XMLName("before", WORDPROCESSINGML_NAMESPACE);
public static final XMLName BOTTOM_ATT = new XMLName("bottom", WORDPROCESSINGML_NAMESPACE);
public static final XMLName CHAR_ATT = new XMLName("char", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COLOR_ATT = new XMLName("color", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMPLEX_FIELD_CHAR_TYPE_ATT = new XMLName("fldCharType", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMPLEX_FIELD_LOCK_ATT = new XMLName("fldLock", WORDPROCESSINGML_NAMESPACE);
public static final XMLName COMPLEX_SCRIPT_FONT_ATT = new XMLName("cs", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DEFAULT_ATT = new XMLName("default", WORDPROCESSINGML_NAMESPACE);
public static final XMLName DIRTY_ATT = new XMLName("dirty", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FILL_ATT = new XMLName("fill", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FIRST_LINE_ATT = new XMLName("firstLine", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FONT_ATT = new XMLName("font", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FOOTER_ATT = new XMLName("footer", WORDPROCESSINGML_NAMESPACE);
public static final XMLName FRAME_ATT = new XMLName("frame", WORDPROCESSINGML_NAMESPACE);
public static final XMLName GRAMMAR_ATT = new XMLName("grammar", WORDPROCESSINGML_NAMESPACE);
public static final XMLName GUTTER_ATT = new XMLName("gutter", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HANGING_ATT = new XMLName("hanging", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HEADER_ATT = new XMLName("header", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HEIGHT_ATT = new XMLName("h", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HEIGHT_RULE_ATT = new XMLName("hRule", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HIGH_ANSI_ATT = new XMLName("hAnsi", WORDPROCESSINGML_NAMESPACE);
public static final XMLName HINT_ATT = new XMLName("hint", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ID_ATT = new XMLName("id", WORDPROCESSINGML_NAMESPACE);
public static final XMLName INSTRUCTION_ATT = new XMLName("instr", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LEADER_ATT = new XMLName("leader", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LEFT_ATT = new XMLName("left", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LINE_ATT = new XMLName("line", WORDPROCESSINGML_NAMESPACE);
public static final XMLName LINE_RULE_ATT = new XMLName("lineRule", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ORIENTATION_ATT = new XMLName("orient", WORDPROCESSINGML_NAMESPACE);
public static final XMLName POSITION_ATT = new XMLName("pos", WORDPROCESSINGML_NAMESPACE);
public static final XMLName RIGHT_ATT = new XMLName("right", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SHADOW_ATT = new XMLName("shadow", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SIZE_ATT = new XMLName("sz", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SPACE_ATT = new XMLName("space", WORDPROCESSINGML_NAMESPACE);
public static final XMLName SPELLING_ATT = new XMLName("spelling", WORDPROCESSINGML_NAMESPACE);
public static final XMLName STYLE_ID_ATT = new XMLName("styleId", WORDPROCESSINGML_NAMESPACE);
public static final XMLName THEME_FILL_ATT = new XMLName("themeFill", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TOP_ATT = new XMLName("top", WORDPROCESSINGML_NAMESPACE);
public static final XMLName TYPE_ATT = new XMLName("type", WORDPROCESSINGML_NAMESPACE);
public static final XMLName VALUE_ATT = new XMLName("val", WORDPROCESSINGML_NAMESPACE);
public static final XMLName WIDTH_ATT = new XMLName("w", WORDPROCESSINGML_NAMESPACE);
public static final XMLName ANCHOR = new XMLName("anchor", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName DRAWING_OBJ_NON_VISUAL_PROPS = new XMLName("docPr", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName EFFECT_EXTENT = new XMLName("effectExtent", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName EXTENT = new XMLName("extent", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName INLINE = new XMLName("inline", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName COMMON_DRAWINGML_NON_VISUAL_PROPS = new XMLName("cNvGraphicFramePr", WORDPROCESSING_DRAWING_NAMESPACE);
public static final XMLName CX_ATT = new XMLName("cx");
public static final XMLName CY_ATT = new XMLName("cy");
public static final XMLName DIST_BOTTOM_ATT = new XMLName("distB");
public static final XMLName DIST_LEFT_ATT = new XMLName("distL");
public static final XMLName DIST_RIGHT_ATT = new XMLName("distR");
public static final XMLName DIST_TOP_ATT = new XMLName("distT");
}