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:
042: package org.netbeans.modules.visualweb.designer.cssengine;
043:
044: import org.apache.batik.css.engine.value.FloatValue;
045: import org.apache.batik.css.engine.value.RGBColorValue;
046: import org.apache.batik.css.engine.value.StringValue;
047: import org.apache.batik.css.engine.value.Value;
048: import org.apache.batik.css.engine.value.svg.SVGValueConstants;
049: import org.w3c.dom.css.CSSPrimitiveValue;
050:
051: public interface CssValueConstants extends SVGValueConstants {
052:
053: // Numbers missing from ValueConstants and SVGValueConstants
054: Value NUMBER_3 = new FloatValue(CSSPrimitiveValue.CSS_NUMBER, 3);
055: Value NUMBER_5 = new FloatValue(CSSPrimitiveValue.CSS_NUMBER, 5);
056:
057: /*
058: Make sure you don't add the following in here:
059: I'm relying on these getting inherited from the parent class
060: and having a local copy would confuse code which refers
061: to CssValueConstants.INHERIT or NONE
062: INHERIT_VALUE
063: NONE_VALUE
064: */
065:
066: // "transparent", as used for fill-colors in border-colors,
067: // background-colors, etc.
068: Value TRANSPARENT_VALUE = new StringValue(
069: CSSPrimitiveValue.CSS_IDENT,
070: CssConstants.CSS_TRANSPARENT_VALUE);
071:
072: Value TRANSPARENT_RGB_VALUE = new RGBColorValue(NUMBER_255,
073: NUMBER_255, NUMBER_255);
074:
075: // Border Styles
076: Value HIDDEN_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
077: CssConstants.CSS_HIDDEN_VALUE);
078:
079: Value DOTTED_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
080: CssConstants.CSS_DOTTED_VALUE);
081:
082: Value DASHED_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
083: CssConstants.CSS_DASHED_VALUE);
084:
085: Value SOLID_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
086: CssConstants.CSS_SOLID_VALUE);
087:
088: Value DOUBLE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
089: CssConstants.CSS_DOUBLE_VALUE);
090:
091: Value GROOVE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
092: CssConstants.CSS_GROOVE_VALUE);
093:
094: Value RIDGE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
095: CssConstants.CSS_RIDGE_VALUE);
096:
097: Value INSET_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
098: CssConstants.CSS_INSET_VALUE);
099:
100: Value OUTSET_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
101: CssConstants.CSS_OUTSET_VALUE);
102:
103: // Border thicknesses
104: Value THIN_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
105: CssConstants.CSS_THIN_VALUE);
106:
107: Value MEDIUM_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
108: CssConstants.CSS_MEDIUM_VALUE);
109:
110: Value THICK_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
111: CssConstants.CSS_THICK_VALUE);
112:
113: // Position types
114: Value STATIC_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
115: CssConstants.CSS_STATIC_VALUE);
116: Value RELATIVE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
117: CssConstants.CSS_RELATIVE_VALUE);
118: Value ABSOLUTE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
119: CssConstants.CSS_ABSOLUTE_VALUE);
120: Value FIXED_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
121: CssConstants.CSS_FIXED_VALUE);
122:
123: // Float types
124: Value LEFT_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
125: CssConstants.CSS_LEFT_VALUE);
126: Value RIGHT_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
127: CssConstants.CSS_RIGHT_VALUE);
128:
129: // Background Repeat values
130: Value REPEAT_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
131: CssConstants.CSS_REPEAT_VALUE);
132:
133: Value REPEAT_X_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
134: CssConstants.CSS_REPEAT_X_VALUE);
135:
136: Value REPEAT_Y_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
137: CssConstants.CSS_REPEAT_Y_VALUE);
138:
139: Value NO_REPEAT_VALUE = new StringValue(
140: CSSPrimitiveValue.CSS_IDENT,
141: CssConstants.CSS_NO_REPEAT_VALUE);
142:
143: // Text Alignment Values
144: Value CENTER_VALUE = // also used for background-positioning etc.
145: new StringValue(CSSPrimitiveValue.CSS_IDENT,
146: CssConstants.CSS_CENTER_VALUE);
147:
148: // BEGIN RAVE MODIFICATIONS
149: Value RAVECENTER_VALUE = new StringValue(
150: CSSPrimitiveValue.CSS_IDENT,
151: CssConstants.CSS_RAVECENTER_VALUE);
152: // END RAVE MODIFICATIONS
153:
154: Value JUSTIFY_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
155: CssConstants.CSS_JUSTIFY_VALUE);
156:
157: // List Style Type choices
158: Value LOWER_ROMAN_VALUE = new StringValue(
159: CSSPrimitiveValue.CSS_IDENT,
160: CssConstants.CSS_LOWER_ROMAN_VALUE);
161:
162: Value DISC_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
163: CssConstants.CSS_DISC_VALUE);
164:
165: Value CIRCLE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
166: CssConstants.CSS_CIRCLE_VALUE);
167:
168: Value DECIMAL_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
169: CssConstants.CSS_DECIMAL_VALUE);
170:
171: Value DECIMAL_LEADING_ZERO_VALUE = new StringValue(
172: CSSPrimitiveValue.CSS_IDENT,
173: CssConstants.CSS_DECIMAL_LEADING_ZERO_VALUE);
174:
175: Value UPPER_ROMAN_VALUE = new StringValue(
176: CSSPrimitiveValue.CSS_IDENT,
177: CssConstants.CSS_UPPER_ROMAN_VALUE);
178:
179: Value LOWER_LATIN_VALUE = new StringValue(
180: CSSPrimitiveValue.CSS_IDENT,
181: CssConstants.CSS_LOWER_LATIN_VALUE);
182:
183: Value LOWER_ALPHA_VALUE = new StringValue(
184: CSSPrimitiveValue.CSS_IDENT,
185: CssConstants.CSS_LOWER_ALPHA_VALUE);
186:
187: Value UPPER_LATIN_VALUE = new StringValue(
188: CSSPrimitiveValue.CSS_IDENT,
189: CssConstants.CSS_UPPER_LATIN_VALUE);
190:
191: Value UPPER_ALPHA_VALUE = new StringValue(
192: CSSPrimitiveValue.CSS_IDENT,
193: CssConstants.CSS_UPPER_ALPHA_VALUE);
194:
195: // -rave-layout choices
196: Value GRID_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
197: CssConstants.CSS_GRID_VALUE);
198: Value FLOW_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
199: CssConstants.CSS_FLOW_VALUE);
200:
201: // Border Collapse choices
202: Value COLLAPSE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
203: CssConstants.CSS_COLLAPSE_VALUE);
204: Value SEPARATE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
205: CssConstants.CSS_SEPARATE_VALUE);
206:
207: // Whitespace choices
208: Value PRE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
209: CssConstants.CSS_PRE_VALUE);
210: Value NOWRAP_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
211: CssConstants.CSS_NOWRAP_VALUE);
212: Value PRE_WRAP_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
213: CssConstants.CSS_PRE_WRAP_VALUE);
214: Value PRE_LINE_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
215: CssConstants.CSS_PRE_LINE_VALUE);
216:
217: // Clear values
218: Value BOTH_VALUE = new StringValue(CSSPrimitiveValue.CSS_IDENT,
219: CssConstants.CSS_BOTH_VALUE);
220:
221: // Text Transform values
222: Value CAPITALIZE_VALUE = new StringValue(
223: CSSPrimitiveValue.CSS_IDENT,
224: CssConstants.CSS_CAPITALIZE_VALUE);
225: Value UPPERCASE_VALUE = new StringValue(
226: CSSPrimitiveValue.CSS_IDENT,
227: CssConstants.CSS_UPPERCASE_VALUE);
228: Value LOWERCASE_VALUE = new StringValue(
229: CSSPrimitiveValue.CSS_IDENT,
230: CssConstants.CSS_LOWERCASE_VALUE);
231: }
|