/*******************************************************************************
 * Copyright (c) 2007 Red Hat, Inc.
 * Distributed under license by Red Hat, Inc. All rights reserved.
 * This program is made available under the terms of the
 * Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributor:
 *     Red Hat, Inc. - initial API and implementation
 ******************************************************************************/

package org.jboss.tools.vpe.editor.util;

/**
 * @author Sergey Vasilyev (svasilyev@exadel.com)
 * 
 */
public final class HTML {

	private HTML() {
	}

	public static final String TAG_EMBED = "embed"; //$NON-NLS-1$
	public static final String TAG_HTML = "html"; //$NON-NLS-1$
	public static final String TAG_HEAD = "head"; //$NON-NLS-1$
	public static final String TAG_BODY = "body"; //$NON-NLS-1$
	public static final String TAG_IMG = "img"; //$NON-NLS-1$
	public static final String TAG_LINK = "link"; //$NON-NLS-1$
	public static final String TAG_SELECT = "select"; //$NON-NLS-1$
	public static final String TAG_OPTION = "option"; //$NON-NLS-1$
	public static final String TAG_STYLE = "style"; //$NON-NLS-1$
	public static final String TAG_TABLE = "table"; //$NON-NLS-1$
	public static final String TAG_TBODY = "tbody"; //$NON-NLS-1$
	public static final String TAG_THEAD = "thead"; //$NON-NLS-1$
	public static final String TAG_TFOOT = "tfoot"; //$NON-NLS-1$
	public static final String TAG_CAPTION = "caption"; //$NON-NLS-1$
	public static final String TAG_TH = "th"; //$NON-NLS-1$
	public static final String TAG_TR = "tr"; //$NON-NLS-1$
	public static final String TAG_TD = "td"; //$NON-NLS-1$
	public static final String TAG_DL = "dl"; //$NON-NLS-1$
	public static final String TAG_DT = "dt"; //$NON-NLS-1$
	public static final String TAG_DD = "dd"; //$NON-NLS-1$
	public static final String TAG_COL = "col"; //$NON-NLS-1$
	public static final String TAG_COLS = "cols"; //$NON-NLS-1$
	public static final String TAG_COLGROUP = "colgroup"; //$NON-NLS-1$
	public static final String TAG_BR = "br"; //$NON-NLS-1$
	public static final String TAG_LI = "li"; //$NON-NLS-1$
	public static final String TAG_DIV = "div"; //$NON-NLS-1$
	public static final String TAG_SPAN = "span"; //$NON-NLS-1$
	public static final String TAG_P = "p"; //$NON-NLS-1$
	public static final String TAG_TEXTAREA = "textarea"; //$NON-NLS-1$
	public static final String TAG_INPUT = "input"; //$NON-NLS-1$
	public static final String TAG_BUTTON = "button"; //$NON-NLS-1$
	public static final String TAG_OL = "ol"; //$NON-NLS-1$
	public static final String TAG_OBJECT = "object"; //$NON-NLS-1$
	public static final String TAG_UL = "ul"; //$NON-NLS-1$
	public static final String TAG_CODE = "code"; //$NON-NLS-1$
	public static final String TAG_PRE = "pre"; //$NON-NLS-1$
	public static final String TAG_B = "b"; //$NON-NLS-1$
	public static final String TAG_I = "i"; //$NON-NLS-1$
	public static final String TAG_U = "u"; //$NON-NLS-1$
	public static final String TAG_LABEL = "label"; //$NON-NLS-1$
	public static final String TAG_A = "a"; //$NON-NLS-1$
	public static final String TAG_H1 = "h1"; //$NON-NLS-1$
	public static final String TAG_H2 = "h2"; //$NON-NLS-1$
	public static final String TAG_H3 = "h3"; //$NON-NLS-1$
	public static final String TAG_H4 = "h4"; //$NON-NLS-1$
	public static final String TAG_H5 = "h5"; //$NON-NLS-1$
	public static final String TAG_H6 = "h6"; //$NON-NLS-1$
	public static final String TAG_FORM = "form"; //$NON-NLS-1$
	
	/*
	 * Use this class if you want to wrap a text node in a span that
	 * must not affect visual representation of the text node.
	 *  
	 * See also EditorOverride.css .
	 */
	public static final String CLASS_VPE_TEXT = "vpe-text"; //$NON-NLS-1$

	public static final String ATTR_ID = "id"; //$NON-NLS-1$
	public static final String ATTR_TYPE = "type"; //$NON-NLS-1$
	public static final String ATTR_TEXT = "text"; //$NON-NLS-1$
	public static final String ATTR_CLASS = "class"; //$NON-NLS-1$
	public static final String ATTR_TITLE = "title"; //$NON-NLS-1$
	public static final String ATTR_NAME = "name"; //$NON-NLS-1$
	public static final String ATTR_VALUE = "value"; //$NON-NLS-1$
	public static final String ATTR_STYLE = "style"; //$NON-NLS-1$
	public static final String ATTR_SIZE = "size"; //$NON-NLS-1$
	public static final String ATTR_MULTIPLE = "multiple"; //$NON-NLS-1$
	public static final String ATTR_COLSPAN = "colspan"; //$NON-NLS-1$
	public static final String ATTR_CELLSPACING = "cellspacing"; //$NON-NLS-1$
	public static final String ATTR_CELLPADDING = "cellpadding"; //$NON-NLS-1$
	public static final String ATTR_WIDTH = "width"; //$NON-NLS-1$
	public static final String ATTR_HEIGHT = "height"; //$NON-NLS-1$
	public static final String ATTR_HSPACE = "hspace"; //$NON-NLS-1$
	public static final String ATTR_VSPACE = "vspace"; //$NON-NLS-1$
	public static final String ATTR_BORDER = "border"; //$NON-NLS-1$
	public static final String ATTR_FOR = "for"; //$NON-NLS-1$
	public static final String ATTR_DIR = "dir"; //$NON-NLS-1$
	public static final String ATTR_DISABLED = "disabled"; //$NON-NLS-1$
	public static final String ATTR_FRAME = "frame"; //$NON-NLS-1$
	public static final String ATTR_HREF = "href"; //$NON-NLS-1$
	public static final String ATTR_ROWSPAN = "rowspan"; //$NON-NLS-1$
	public static final String ATTR_ROWS = "rows"; //$NON-NLS-1$
	public static final String ATTR_COLS = "cols"; //$NON-NLS-1$
	public static final String ATTR_VALIGN = "valign"; //$NON-NLS-1$
	public static final String ATTR_ALIGN = "align"; //$NON-NLS-1$
	public static final String ATTR_SRC = "src"; //$NON-NLS-1$
	public static final String ATTR_ALT = "alt"; //$NON-NLS-1$
	public static final String ATTR_JSFC = "jsfc"; //$NON-NLS-1$
	public static final String ATTR_DISPLAY = "display"; //$NON-NLS-1$
	public static final String ATTR_READONLY = "readonly"; //$NON-NLS-1$
	public static final String ATTR_SCOPE = "scope"; //$NON-NLS-1$
	public static final String ATTR_SPAN = "span"; //$NON-NLS-1$
	public static final String ATTR_BACKGROUND = "background"; //$NON-NLS-1$
	public static final String ATTR_BGCOLOR = "bgcolor"; //$NON-NLS-1$
	public static final String ATTR_XMLNS = "xmlns"; //$NON-NLS-1$

	/*
	 * Use this constant if you have to span a column to entire row.
	 * While in HTML 4.01 standard "colspan='0'" should be used for this purpose, 
	 * it will not work with documents without DOCTYPE. It is the reason
	 * why the value '100' is used.
	 */
	public static final String VALUE_COLSPAN_ALL = "100"; //$NON-NLS-1$

	public static final String VALUE_ALIGN_TOP = "top"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_RIGHT = "right"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_LEFT = "left"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_BOTTOM = "bottom"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_MIDDLE = "middle"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_CENTER = "center"; //$NON-NLS-1$
	public static final String VALUE_ALIGN_JUSTIFY = "justify"; //$NON-NLS-1$
	public static final String VALUE_CLASS_DELIMITER = " "; //$NON-NLS-1$
	public static final String VALUE_STYLE_DELIMITER = ";"; //$NON-NLS-1$
	public static final String VALUE_TYPE_TEXT = "text"; //$NON-NLS-1$
	public static final String VALUE_TYPE_PASSWORD = "password"; //$NON-NLS-1$
	public static final String VALUE_TYPE_IMAGE = "image"; //$NON-NLS-1$
	public static final String VALUE_TYPE_CHECKBOX = "checkbox"; //$NON-NLS-1$
	public static final String VALUE_TYPE_RADIO = "radio"; //$NON-NLS-1$
	public static final String VALUE_TYPE_HIDDEN = "hidden"; //$NON-NLS-1$
	public static final String VALUE_TYPE_BUTTON= "button"; //$NON-NLS-1$
	public static final String VALUE_CLEAR_BOTH = "both"; //$NON-NLS-1$
	public static final String VALUE_INLINE = "inline"; //$NON-NLS-1$
	public static final String VALUE_BLOCK = "block"; //$NON-NLS-1$
	public static final String VALUE_HREF_ANCHOR = "#"; //$NON-NLS-1$

	public static final String STYLE_PARAMETER_DISPLAY = "display"; //$NON-NLS-1$
	public static final String STYLE_VALUE_DEFAULT_DISPLAY = "";	//$NON-NLS-1$
	public static final String STYLE_VALUE_NONE = "none"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_WIDTH = "width"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_TOP = "top"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BOTTOM = "bottom"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_LEFT = "left"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_RIGHT = "right"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_HEIGHT = "height"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BACKGROUND_IMAGE = "background-image"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BACKGROUND_COLOR = "background-color"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BORDER = "border"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BORDER_WIDTH = "border-width"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_BORDER_STYLE = "border-style"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_MAX_HEIGHT = "max-height"; //$NON-NLS-1$	
	public static final String STYLE_PARAMETER_ZINDEX = "z-index"; //$NON-NLS-1$	
	public static final String STYLE_PARAMETER_CLEAR = "clear"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_OVERFLOW = "overflow"; //$NON-NLS-1$	
	public static final String STYLE_PARAMETER_TABLE_LAYOUT = "table-layout"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_OPACITY = "opacity"; //$NON-NLS-1$
	public static final String STYLE_VALUE_FIXED = "fixed"; //$NON-NLS-1$
	public static final String STYLE_VALUE_MIDDLE = "middle"; //$NON-NLS-1$
	public static final String STYLE_PARAMETER_POSITION = "position"; //$NON-NLS-1$;
	public static final String STYLE_VALUE_ABSOLUTE = "absolute"; //$NON-NLS-1$;
	
	public static final String STYLE_PRIORITY_DEFAULT = ""; //$NON-NLS-1$;
	public static final String STYLE_PRIORITY_IMPORTANT = "important"; //$NON-NLS-1$;
}
