source: trunk/third/mozilla/htmlparser/public/nsHTMLTagList.h @ 22482

Revision 22482, 5.7 KB checked in by rbasch, 18 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r22481, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Netscape Public License
6 * Version 1.1 (the "License"); you may not use this file except in
7 * compliance with the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/NPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1999
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39/******
40
41  This file contains the list of all HTML tags
42  See nsHTMLTags.h for access to the enum values for tags
43
44  It is designed to be used as inline input to nsHTMLTags.cpp and
45  nsHTMLContentSink *only* through the magic of C preprocessing.
46
47  All entires must be enclosed in the macro HTML_TAG which will have cruel
48  and unusual things done to it
49
50  It is recommended (but not strictly necessary) to keep all entries
51  in alphabetical order
52
53  The first argument to HTML_TAG is both the enum identifier of the
54  property and the string value. The second argument is the "creator"
55  method of the form NS_New$TAGNAMEElement, that will be used by
56  nsHTMLContentSink.cpp to create a content object for a tag of that
57  type. Use NOTUSED, if the particular tag has a non-standard creator.
58
59  The HTML_OTHER macro is for values in the nsHTMLTag enum that are
60  not strictly tags.
61
62  Entries *must* use only lowercase characters.
63
64  ** Break these invarient and bad things will happen. **   
65
66 ******/
67HTML_TAG(a, Anchor)
68HTML_TAG(abbr, Span)
69HTML_TAG(acronym, Span)
70HTML_TAG(address, Span)
71HTML_TAG(applet, Applet)
72HTML_TAG(area, Area)
73HTML_TAG(b, Span)
74HTML_TAG(base, SharedLeaf)
75HTML_TAG(basefont, BaseFont)
76HTML_TAG(bdo, Span)
77HTML_TAG(bgsound, Span)
78HTML_TAG(big, Span)
79HTML_TAG(blink, Span)
80HTML_TAG(blockquote, Quote)
81HTML_TAG(body, Body)
82HTML_TAG(br, BR)
83HTML_TAG(button, Button)
84HTML_TAG(caption, TableCaption)
85HTML_TAG(center, Span)
86HTML_TAG(cite, Span)
87HTML_TAG(code, Span)
88HTML_TAG(col, TableCol)
89HTML_TAG(colgroup, TableCol)
90HTML_TAG(counter, Span)
91HTML_TAG(dd, Span)
92HTML_TAG(del, Del)
93HTML_TAG(dfn, Span)
94HTML_TAG(dir, Directory)
95HTML_TAG(div, Div)
96HTML_TAG(dl, DList)
97HTML_TAG(dt, Span)
98HTML_TAG(em, Span)
99HTML_TAG(embed, SharedLeaf)
100HTML_TAG(endnote, Span)
101HTML_TAG(fieldset, FieldSet)
102HTML_TAG(font, Font)
103HTML_TAG(form, NOTUSED)
104HTML_TAG(frame, Frame)
105HTML_TAG(frameset, FrameSet)
106HTML_TAG(h1, Heading)
107HTML_TAG(h2, Heading)
108HTML_TAG(h3, Heading)
109HTML_TAG(h4, Heading)
110HTML_TAG(h5, Heading)
111HTML_TAG(h6, Heading)
112HTML_TAG(head, Head)
113HTML_TAG(hr, HR)
114HTML_TAG(html, Html)
115HTML_TAG(i, Span)
116HTML_TAG(iframe, IFrame)
117HTML_TAG(image, Span)
118HTML_TAG(img, Image)
119HTML_TAG(input, Input)
120HTML_TAG(ins, Ins)
121HTML_TAG(isindex, SharedLeaf)
122HTML_TAG(kbd, Span)
123HTML_TAG(keygen, Span)
124HTML_TAG(label, Label)
125HTML_TAG(legend, Legend)
126HTML_TAG(li, LI)
127HTML_TAG(link, Link)
128HTML_TAG(listing, Span)
129HTML_TAG(map, Map)
130HTML_TAG(marquee, Div)
131HTML_TAG(menu, Menu)
132HTML_TAG(meta, Meta)
133HTML_TAG(multicol, Span)
134HTML_TAG(nobr, Span)
135HTML_TAG(noembed, Div)
136HTML_TAG(noframes, Div)
137HTML_TAG(noscript, Div)
138HTML_TAG(object, Object)
139HTML_TAG(ol, OList)
140HTML_TAG(optgroup, OptGroup)
141HTML_TAG(option, Option)
142HTML_TAG(p, Paragraph)
143HTML_TAG(param, SharedLeaf)
144HTML_TAG(plaintext, Span)
145HTML_TAG(pre, Pre)
146HTML_TAG(q, Quote)
147HTML_TAG(s, Span)
148HTML_TAG(samp, Span)
149HTML_TAG(script, Script)
150HTML_TAG(select, Select)
151HTML_TAG(server, Span)
152HTML_TAG(small, Span)
153HTML_TAG(sound, Span)
154HTML_TAG(spacer, SharedLeaf)
155HTML_TAG(span, Span)
156HTML_TAG(strike, Span)
157HTML_TAG(strong, Span)
158HTML_TAG(style, Style)
159HTML_TAG(sub, Span)
160HTML_TAG(sup, Span)
161HTML_TAG(table, Table)
162HTML_TAG(tbody, TableSection)
163HTML_TAG(td, TableCell)
164HTML_TAG(textarea, TextArea)
165HTML_TAG(tfoot, TableSection)
166HTML_TAG(th, TableCell)
167HTML_TAG(thead, TableSection)
168HTML_TAG(title, Title)
169HTML_TAG(tr, TableRow)
170HTML_TAG(tt, Span)
171HTML_TAG(u, Span)
172HTML_TAG(ul, UList)
173HTML_TAG(var, Span)
174HTML_TAG(wbr, SharedLeaf)
175HTML_TAG(xmp, Span)
176
177
178/* These are not for tags. But they will be included in the nsHTMLTag
179   enum anyway */
180
181/* XXX: The second parameters in some of the following entries look
182   like they are just wrong. They should really be NOTUSED. For now,
183   I'm just emulating what nsHTMLContentSink has done all along.
184*/
185HTML_OTHER(text, Span)
186HTML_OTHER(whitespace, Span)
187HTML_OTHER(newline, Span)
188HTML_OTHER(comment, Span)
189HTML_OTHER(entity, Span)
190HTML_OTHER(doctypeDecl, Span)
191HTML_OTHER(markupDecl, Span)
192HTML_OTHER(instruction, Span)
Note: See TracBrowser for help on using the repository browser.