001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: package org.netbeans.modules.visualweb.api.designer.cssengine;
042:
043: /**
044: * Common XHTML CSS definitions
045: *
046: * @author Tor Norbye
047: */
048: public class XhtmlCss {
049:
050: //
051: // The property indexes - KEEP IN SYNC WITH VALUE MANAGERS IN XhtmlCssEngine!
052: //
053: public final static int BACKGROUND_COLOR_INDEX = 0;
054: public final static int BACKGROUND_IMAGE_INDEX = BACKGROUND_COLOR_INDEX + 1;
055: public final static int BACKGROUND_POSITION_INDEX = BACKGROUND_IMAGE_INDEX + 1;
056: public final static int BACKGROUND_REPEAT_INDEX = BACKGROUND_POSITION_INDEX + 1;
057: public final static int BORDER_COLLAPSE_INDEX = BACKGROUND_REPEAT_INDEX + 1;
058: public final static int BORDER_LEFT_COLOR_INDEX = BORDER_COLLAPSE_INDEX + 1;
059: public final static int BORDER_RIGHT_COLOR_INDEX = BORDER_LEFT_COLOR_INDEX + 1;
060: public final static int BORDER_TOP_COLOR_INDEX = BORDER_RIGHT_COLOR_INDEX + 1;
061: public final static int BORDER_BOTTOM_COLOR_INDEX = BORDER_TOP_COLOR_INDEX + 1;
062: public final static int BORDER_LEFT_STYLE_INDEX = BORDER_BOTTOM_COLOR_INDEX + 1;
063: public final static int BORDER_RIGHT_STYLE_INDEX = BORDER_LEFT_STYLE_INDEX + 1;
064: public final static int BORDER_TOP_STYLE_INDEX = BORDER_RIGHT_STYLE_INDEX + 1;
065: public final static int BORDER_BOTTOM_STYLE_INDEX = BORDER_TOP_STYLE_INDEX + 1;
066: public final static int BORDER_LEFT_WIDTH_INDEX = BORDER_BOTTOM_STYLE_INDEX + 1;
067: public final static int BORDER_RIGHT_WIDTH_INDEX = BORDER_LEFT_WIDTH_INDEX + 1;
068: public final static int BORDER_TOP_WIDTH_INDEX = BORDER_RIGHT_WIDTH_INDEX + 1;
069: public final static int BORDER_BOTTOM_WIDTH_INDEX = BORDER_TOP_WIDTH_INDEX + 1;
070: public final static int CAPTION_SIDE_INDEX = BORDER_BOTTOM_WIDTH_INDEX + 1;
071: public final static int CLEAR_INDEX = CAPTION_SIDE_INDEX + 1;
072: public final static int CLIP_INDEX = CLEAR_INDEX + 1;
073: public final static int COLOR_INDEX = CLIP_INDEX + 1;
074: public final static int DIRECTION_INDEX = COLOR_INDEX + 1;
075: public final static int DISPLAY_INDEX = DIRECTION_INDEX + 1;
076: public final static int FLOAT_INDEX = DISPLAY_INDEX + 1;
077: public final static int FONT_FAMILY_INDEX = FLOAT_INDEX + 1;
078: public final static int FONT_SIZE_INDEX = FONT_FAMILY_INDEX + 1;
079: public final static int FONT_SIZE_ADJUST_INDEX = FONT_SIZE_INDEX + 1;
080: public final static int FONT_STRETCH_INDEX = FONT_SIZE_ADJUST_INDEX + 1;
081: public final static int FONT_STYLE_INDEX = FONT_STRETCH_INDEX + 1;
082: public final static int FONT_VARIANT_INDEX = FONT_STYLE_INDEX + 1;
083: public final static int FONT_WEIGHT_INDEX = FONT_VARIANT_INDEX + 1;
084: public final static int HEIGHT_INDEX = FONT_WEIGHT_INDEX + 1;
085: public final static int LINE_HEIGHT_INDEX = HEIGHT_INDEX + 1;
086: public final static int LIST_STYLE_IMAGE_INDEX = LINE_HEIGHT_INDEX + 1;
087: public final static int LIST_STYLE_TYPE_INDEX = LIST_STYLE_IMAGE_INDEX + 1;
088: public final static int MARGIN_LEFT_INDEX = LIST_STYLE_TYPE_INDEX + 1;
089: public final static int MARGIN_RIGHT_INDEX = MARGIN_LEFT_INDEX + 1;
090: public final static int MARGIN_TOP_INDEX = MARGIN_RIGHT_INDEX + 1;
091: public final static int MARGIN_BOTTOM_INDEX = MARGIN_TOP_INDEX + 1;
092: public final static int LEFT_INDEX = MARGIN_BOTTOM_INDEX + 1;
093: public final static int RIGHT_INDEX = LEFT_INDEX + 1;
094: public final static int TOP_INDEX = RIGHT_INDEX + 1;
095: public final static int BOTTOM_INDEX = TOP_INDEX + 1;
096: public final static int OVERFLOW_INDEX = BOTTOM_INDEX + 1;
097: public final static int PADDING_LEFT_INDEX = OVERFLOW_INDEX + 1;
098: public final static int PADDING_RIGHT_INDEX = PADDING_LEFT_INDEX + 1;
099: public final static int PADDING_TOP_INDEX = PADDING_RIGHT_INDEX + 1;
100: public final static int PADDING_BOTTOM_INDEX = PADDING_TOP_INDEX + 1;
101: public final static int POSITION_INDEX = PADDING_BOTTOM_INDEX + 1;
102: public final static int TABLE_LAYOUT_INDEX = POSITION_INDEX + 1;
103: public final static int TEXT_ALIGN_INDEX = TABLE_LAYOUT_INDEX + 1;
104: public final static int TEXT_DECORATION_INDEX = TEXT_ALIGN_INDEX + 1;
105: public final static int TEXT_INDENT_INDEX = TEXT_DECORATION_INDEX + 1;
106: public final static int TEXT_TRANSFORM_INDEX = TEXT_INDENT_INDEX + 1;
107: public final static int UNICODE_BIDI_INDEX = TEXT_TRANSFORM_INDEX + 1;
108: public final static int VERTICAL_ALIGN_INDEX = UNICODE_BIDI_INDEX + 1;
109: public final static int VISIBILITY_INDEX = VERTICAL_ALIGN_INDEX + 1;
110: public final static int WHITE_SPACE_INDEX = VISIBILITY_INDEX + 1;
111: public final static int WIDTH_INDEX = WHITE_SPACE_INDEX + 1;
112: public final static int Z_INDEX = WIDTH_INDEX + 1;
113: public final static int RAVELAYOUT_INDEX = Z_INDEX + 1;
114: public final static int RAVELINKCOLOR_INDEX = RAVELAYOUT_INDEX + 1;
115: /** XXX See the only suspicious usage in XhtmlCssEngine. */
116: public final static int FINAL_INDEX = RAVELINKCOLOR_INDEX;
117: }
|