Back to index

lightning-sunbird  0.9+nobinonly
nsEditPropertyAtomList.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is editor atom table.
00015  *
00016  * The Initial Developer of the Original Code is
00017  * Netscape Communications Corp.
00018  * Portions created by the Initial Developer are Copyright (C) 2003
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *   Alec Flett <alecf@netscape.com>
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 /******
00039 
00040   This file contains the list of all editor nsIAtoms and their values
00041   
00042   It is designed to be used as inline input to nsEditProperty.cpp *only*
00043   through the magic of C preprocessing.
00044 
00045   All entries must be enclosed in the macro EDITOR_ATOM which will have cruel
00046   and unusual things done to it
00047 
00048   It is recommended (but not strictly necessary) to keep all entries
00049   in alphabetical order
00050 
00051   The first argument to EDITOR_ATOM is the C++ identifier of the atom
00052   The second argument is the string value of the atom
00053 
00054  ******/
00055 
00056 #ifdef WINCE
00057 #undef small
00058 #endif
00059 
00060 EDITOR_ATOM(b, "b")       
00061 EDITOR_ATOM(big, "big")   
00062 EDITOR_ATOM(i, "i")     
00063 EDITOR_ATOM(small, "small") 
00064 EDITOR_ATOM(strike, "strike")
00065 EDITOR_ATOM(s, "s")
00066 EDITOR_ATOM(sub, "sub")   
00067 EDITOR_ATOM(sup, "sup")   
00068 EDITOR_ATOM(tt, "tt")    
00069 EDITOR_ATOM(u, "u")     
00070 EDITOR_ATOM(em, "em")    
00071 EDITOR_ATOM(strong, "strong")
00072 EDITOR_ATOM(dfn, "dfn")   
00073 EDITOR_ATOM(blink, "blink")  
00074 EDITOR_ATOM(code, "code")  
00075 EDITOR_ATOM(samp, "samp")  
00076 EDITOR_ATOM(kbd, "kbd")   
00077 EDITOR_ATOM(var, "var")   
00078 EDITOR_ATOM(cite, "cite")  
00079 EDITOR_ATOM(abbr, "abbr")  
00080 EDITOR_ATOM(acronym, "acronym")
00081 EDITOR_ATOM(font, "font")  
00082 EDITOR_ATOM(a, "a")     
00083 EDITOR_ATOM(href, "href")     // Use to differentiate between "a" for link, "a" for named anchor
00084 EDITOR_ATOM(name, "name")   
00085 EDITOR_ATOM(img, "img")   
00086 EDITOR_ATOM(object, "object")
00087 EDITOR_ATOM(br, "br")    
00088 EDITOR_ATOM(script, "script")
00089 EDITOR_ATOM(map, "map")   
00090 EDITOR_ATOM(q, "q")     
00091 EDITOR_ATOM(span, "span")  
00092 EDITOR_ATOM(bdo, "bdo")   
00093 EDITOR_ATOM(input, "input") 
00094 EDITOR_ATOM(select, "select")
00095 EDITOR_ATOM(textarea, "textarea")
00096 EDITOR_ATOM(label, "label")
00097 EDITOR_ATOM(button, "button")
00098   // block tags
00099 EDITOR_ATOM(p, "p")
00100 EDITOR_ATOM(div, "div")
00101 EDITOR_ATOM(center, "center")
00102 EDITOR_ATOM(blockquote, "blockquote")
00103 EDITOR_ATOM(h1, "h1")
00104 EDITOR_ATOM(h2, "h2")
00105 EDITOR_ATOM(h3, "h3")
00106 EDITOR_ATOM(h4, "h4")
00107 EDITOR_ATOM(h5, "h5")
00108 EDITOR_ATOM(h6, "h6")
00109 EDITOR_ATOM(ul, "ul")
00110 EDITOR_ATOM(ol, "ol")
00111 EDITOR_ATOM(dl, "dl")
00112 EDITOR_ATOM(pre, "pre")
00113 EDITOR_ATOM(noscript, "noscript")
00114 EDITOR_ATOM(form, "form")
00115 EDITOR_ATOM(hr, "hr")
00116 EDITOR_ATOM(table, "table")
00117 EDITOR_ATOM(fieldset, "fieldset")
00118 EDITOR_ATOM(address, "address")
00119   // Unclear from 
00120   // DTD, block?
00121 EDITOR_ATOM(body, "body")
00122 EDITOR_ATOM(head, "head")
00123 EDITOR_ATOM(html, "html")
00124 EDITOR_ATOM(tr, "tr")
00125 EDITOR_ATOM(td, "td")
00126 EDITOR_ATOM(th, "th")
00127 EDITOR_ATOM(caption, "caption")
00128 EDITOR_ATOM(col, "col")
00129 EDITOR_ATOM(colgroup, "colgroup")
00130 EDITOR_ATOM(tbody, "tbody")
00131 EDITOR_ATOM(thead, "thead")
00132 EDITOR_ATOM(tfoot, "tfoot")
00133 EDITOR_ATOM(li, "li")
00134 EDITOR_ATOM(dt, "dt")
00135 EDITOR_ATOM(dd, "dd")
00136 EDITOR_ATOM(legend, "legend")
00137   // inline properties
00138 EDITOR_ATOM(color, "color")
00139 EDITOR_ATOM(face, "face")
00140 EDITOR_ATOM(size, "size")
00141   
00142 EDITOR_ATOM(cssBackgroundColor, "background-color")
00143 EDITOR_ATOM(cssBackgroundImage, "background-image")
00144 EDITOR_ATOM(cssBorder, "border")
00145 EDITOR_ATOM(cssBottom, "bottom")
00146 EDITOR_ATOM(cssCaptionSide, "caption-side")
00147 EDITOR_ATOM(cssColor, "color")
00148 EDITOR_ATOM(cssDirection, "direction")
00149 EDITOR_ATOM(cssFloat, "float")
00150 EDITOR_ATOM(cssFontFamily, "font-family")
00151 EDITOR_ATOM(cssFontSize, "font-size")
00152 EDITOR_ATOM(cssFontStyle, "font-style")
00153 EDITOR_ATOM(cssFontWeight, "font-weight")
00154 EDITOR_ATOM(cssHeight, "height")
00155 EDITOR_ATOM(cssListStyleType, "list-style-type")
00156 EDITOR_ATOM(cssLeft, "left")
00157 EDITOR_ATOM(cssMarginRight, "margin-right")
00158 EDITOR_ATOM(cssMarginLeft, "margin-left")
00159 EDITOR_ATOM(cssPosition, "position")
00160 EDITOR_ATOM(cssRight, "right")
00161 EDITOR_ATOM(cssTextAlign, "text-align")
00162 EDITOR_ATOM(cssTextDecoration, "text-decoration")
00163 EDITOR_ATOM(cssTop, "top")
00164 EDITOR_ATOM(cssVerticalAlign, "vertical-align")
00165 EDITOR_ATOM(cssWhitespace, "white-space")
00166 EDITOR_ATOM(cssWidth, "width")
00167 EDITOR_ATOM(cssZIndex, "z-index")
00168 
00169 EDITOR_ATOM(cssMozUserSelect, "-moz-user-select")
00170 
00171 EDITOR_ATOM(cssPxUnit, "px")
00172 EDITOR_ATOM(cssEmUnit, "em")
00173 EDITOR_ATOM(cssCmUnit, "cm")
00174 EDITOR_ATOM(cssPercentUnit, "%")
00175 EDITOR_ATOM(cssInUnit, "in")
00176 EDITOR_ATOM(cssMmUnit, "mm")
00177 EDITOR_ATOM(cssPtUnit, "pt")
00178 EDITOR_ATOM(cssPcUnit, "pc")
00179 EDITOR_ATOM(cssExUnit, "ex")