Back to index

lightning-sunbird  0.9+nobinonly
nsHTMLTagList.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either of the GNU General Public License Version 2 or later (the "GPL"),
00026  * or 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 HTML tags 
00041   See nsHTMLTags.h for access to the enum values for tags
00042 
00043   It is designed to be used as inline input to nsHTMLTags.cpp and
00044   nsHTMLContentSink *only* through the magic of C preprocessing.
00045 
00046   All entires must be enclosed in the macro HTML_TAG which will have cruel
00047   and unusual things done to it
00048 
00049   It is recommended (but not strictly necessary) to keep all entries
00050   in alphabetical order
00051 
00052   The first argument to HTML_TAG is both the enum identifier of the
00053   property and the string value. The second argument is the "creator"
00054   method of the form NS_New$TAGNAMEElement, that will be used by
00055   nsHTMLContentSink.cpp to create a content object for a tag of that
00056   type. Use NOTUSED, if the particular tag has a non-standard creator.
00057 
00058   The HTML_OTHER macro is for values in the nsHTMLTag enum that are
00059   not strictly tags.
00060 
00061   Entries *must* use only lowercase characters.
00062 
00063   ** Break these invarient and bad things will happen. **    
00064 
00065  ******/
00066 HTML_TAG(a, Anchor)
00067 HTML_TAG(abbr, Span)
00068 HTML_TAG(acronym, Span)
00069 HTML_TAG(address, Span)
00070 HTML_TAG(applet, Applet)
00071 HTML_TAG(area, Area)
00072 HTML_TAG(b, Span)
00073 HTML_TAG(base, Shared)
00074 HTML_TAG(basefont, Shared)
00075 HTML_TAG(bdo, Span)
00076 HTML_TAG(bgsound, Span)
00077 HTML_TAG(big, Span)
00078 HTML_TAG(blink, Span)
00079 HTML_TAG(blockquote, Shared)
00080 HTML_TAG(body, Body)
00081 HTML_TAG(br, BR)
00082 HTML_TAG(button, Button)
00083 HTML_TAG(canvas, Canvas)
00084 HTML_TAG(caption, TableCaption)
00085 HTML_TAG(center, Span)
00086 HTML_TAG(cite, Span)
00087 HTML_TAG(code, Span)
00088 HTML_TAG(col, TableCol)
00089 HTML_TAG(colgroup, TableCol)
00090 HTML_TAG(dd, Span)
00091 HTML_TAG(del, Mod)
00092 HTML_TAG(dfn, Span)
00093 HTML_TAG(dir, Shared)
00094 HTML_TAG(div, Div)
00095 HTML_TAG(dl, SharedList)
00096 HTML_TAG(dt, Span)
00097 HTML_TAG(em, Span)
00098 HTML_TAG(embed, Shared)
00099 HTML_TAG(fieldset, FieldSet)
00100 HTML_TAG(font, Font)
00101 HTML_TAG(form, NOTUSED)
00102 HTML_TAG(frame, Frame)
00103 HTML_TAG(frameset, FrameSet)
00104 HTML_TAG(h1, Heading)
00105 HTML_TAG(h2, Heading)
00106 HTML_TAG(h3, Heading)
00107 HTML_TAG(h4, Heading)
00108 HTML_TAG(h5, Heading)
00109 HTML_TAG(h6, Heading)
00110 HTML_TAG(head, Head)
00111 HTML_TAG(hr, HR)
00112 HTML_TAG(html, Html)
00113 HTML_TAG(i, Span)
00114 HTML_TAG(iframe, IFrame)
00115 HTML_TAG(image, Span)
00116 HTML_TAG(img, Image)
00117 HTML_TAG(input, Input)
00118 HTML_TAG(ins, Mod)
00119 HTML_TAG(isindex, Shared)
00120 HTML_TAG(kbd, Span)
00121 HTML_TAG(keygen, Span)
00122 HTML_TAG(label, Label)
00123 HTML_TAG(legend, Legend)
00124 HTML_TAG(li, LI)
00125 HTML_TAG(link, Link)
00126 HTML_TAG(listing, Span)
00127 HTML_TAG(map, Map)
00128 HTML_TAG(marquee, Div)
00129 HTML_TAG(menu, Shared)
00130 HTML_TAG(meta, Meta)
00131 HTML_TAG(multicol, Span)
00132 HTML_TAG(nobr, Span)
00133 HTML_TAG(noembed, Div)
00134 HTML_TAG(noframes, Div)
00135 HTML_TAG(noscript, Div)
00136 HTML_TAG(object, Object)
00137 HTML_TAG(ol, SharedList)
00138 HTML_TAG(optgroup, OptGroup)
00139 HTML_TAG(option, Option)
00140 HTML_TAG(p, Paragraph)
00141 HTML_TAG(param, Shared)
00142 HTML_TAG(plaintext, Span)
00143 HTML_TAG(pre, Pre)
00144 HTML_TAG(q, Shared)
00145 HTML_TAG(s, Span)
00146 HTML_TAG(samp, Span)
00147 HTML_TAG(script, Script)
00148 HTML_TAG(select, Select)
00149 HTML_TAG(server, Span)
00150 HTML_TAG(small, Span)
00151 HTML_TAG(sound, Span)
00152 HTML_TAG(spacer, Shared)
00153 HTML_TAG(span, Span)
00154 HTML_TAG(strike, Span)
00155 HTML_TAG(strong, Span)
00156 HTML_TAG(style, Style)
00157 HTML_TAG(sub, Span)
00158 HTML_TAG(sup, Span)
00159 HTML_TAG(table, Table)
00160 HTML_TAG(tbody, TableSection)
00161 HTML_TAG(td, TableCell)
00162 HTML_TAG(textarea, TextArea)
00163 HTML_TAG(tfoot, TableSection)
00164 HTML_TAG(th, TableCell)
00165 HTML_TAG(thead, TableSection)
00166 HTML_TAG(title, Title)
00167 HTML_TAG(tr, TableRow)
00168 HTML_TAG(tt, Span)
00169 HTML_TAG(u, Span)
00170 HTML_TAG(ul, SharedList)
00171 HTML_TAG(var, Span)
00172 HTML_TAG(wbr, Shared)
00173 HTML_TAG(xmp, Span)
00174 
00175 
00176 /* These are not for tags. But they will be included in the nsHTMLTag
00177    enum anyway */
00178 
00179 HTML_OTHER(text)
00180 HTML_OTHER(whitespace)
00181 HTML_OTHER(newline)
00182 HTML_OTHER(comment)
00183 HTML_OTHER(entity)
00184 HTML_OTHER(doctypeDecl)
00185 HTML_OTHER(markupDecl)
00186 HTML_OTHER(instruction)