Back to index

lightning-sunbird  0.9+nobinonly
nsLayoutAtomList.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 layout nsIAtoms and their values
00041   
00042   It is designed to be used as inline input to nsLayoutAtoms.cpp *only*
00043   through the magic of C preprocessing.
00044 
00045   All entires must be enclosed in the macro LAYOUT_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 LAYOUT_ATOM is the C++ identifier of the atom
00052   The second argument is the string value of the atom
00053 
00054  ******/
00055 
00056 // OUTPUT_CLASS=nsLayoutAtoms
00057 // MACRO_NAME=LAYOUT_ATOM
00058 
00059   // Alphabetical list of media type atoms
00060 LAYOUT_ATOM(all, "all")  // Media atoms must be lower case
00061 LAYOUT_ATOM(aural, "aural")
00062 LAYOUT_ATOM(braille, "braille")
00063 LAYOUT_ATOM(embossed, "embossed")
00064 LAYOUT_ATOM(handheld, "handheld")
00065 LAYOUT_ATOM(print, "print")
00066 LAYOUT_ATOM(projection, "projection")
00067 LAYOUT_ATOM(screen, "screen")
00068 LAYOUT_ATOM(tty, "tty")
00069 LAYOUT_ATOM(tv, "tv")
00070 
00071   // Alphabetical list of standard name space prefixes
00072 LAYOUT_ATOM(xmlNameSpace, "xml")
00073 LAYOUT_ATOM(xmlnsNameSpace, "xmlns")
00074 
00075   // Alphabetical list of frame additional child list names
00076 LAYOUT_ATOM(absoluteList, "Absolute-list")
00077 LAYOUT_ATOM(bulletList, "Bullet-list")
00078 LAYOUT_ATOM(captionList, "Caption-list")
00079 LAYOUT_ATOM(colGroupList, "ColGroup-list")
00080 LAYOUT_ATOM(editorDisplayList, "EditorDisplay-List")
00081 LAYOUT_ATOM(fixedList, "Fixed-list")
00082 LAYOUT_ATOM(floatList, "Float-list")
00083 LAYOUT_ATOM(overflowList, "Overflow-list")
00084 LAYOUT_ATOM(overflowOutOfFlowList, "OverflowOutOfFlow-list")
00085 LAYOUT_ATOM(popupList, "Popup-list")
00086 
00087 LAYOUT_ATOM(commentTagName, "#comment")
00088 LAYOUT_ATOM(textTagName, "#text")
00089 LAYOUT_ATOM(cdataTagName, "#cdata-section")
00090 LAYOUT_ATOM(processingInstructionTagName, "#processing-instruction")
00091 LAYOUT_ATOM(documentFragmentNodeName, "#document-fragment")
00092 
00093   // Alphabetical list of frame types
00094 LAYOUT_ATOM(areaFrame, "AreaFrame")
00095 LAYOUT_ATOM(bcTableCellFrame, "BCTableCellFrame") // table cell in border collapsing model
00096 LAYOUT_ATOM(blockFrame, "BlockFrame")
00097 LAYOUT_ATOM(boxFrame, "BoxFrame")
00098 LAYOUT_ATOM(brFrame, "BRFrame")
00099 LAYOUT_ATOM(bulletFrame, "BulletFrame")
00100 LAYOUT_ATOM(columnSetFrame, "ColumnSetFrame")
00101 LAYOUT_ATOM(fieldSetFrame, "FieldSetFrame")
00102 LAYOUT_ATOM(frameSetFrame, "FrameSetFrame")
00103 LAYOUT_ATOM(gfxButtonControlFrame, "gfxButtonControlFrame")
00104 LAYOUT_ATOM(HTMLCanvasFrame, "HTMLCanvasFrame")
00105 LAYOUT_ATOM(subDocumentFrame, "subDocumentFrame")
00106 LAYOUT_ATOM(imageBoxFrame, "ImageBoxFrame")
00107 LAYOUT_ATOM(imageFrame, "ImageFrame")
00108 LAYOUT_ATOM(imageControlFrame, "ImageControlFrame")
00109 LAYOUT_ATOM(inlineFrame, "InlineFrame")
00110 LAYOUT_ATOM(legendFrame, "LegendFrame")
00111 LAYOUT_ATOM(letterFrame, "LetterFrame")
00112 LAYOUT_ATOM(lineFrame, "LineFrame")
00113 LAYOUT_ATOM(listControlFrame,"ListControlFrame")
00114 LAYOUT_ATOM(menuPopupFrame, "MenuPopupFrame")
00115 LAYOUT_ATOM(objectFrame, "ObjectFrame")
00116 LAYOUT_ATOM(pageFrame, "PageFrame")
00117 LAYOUT_ATOM(pageBreakFrame, "PageBreakFrame")
00118 LAYOUT_ATOM(pageContentFrame, "PageContentFrame")
00119 LAYOUT_ATOM(placeholderFrame, "PlaceholderFrame")
00120 LAYOUT_ATOM(positionedInlineFrame, "PositionedInlineFrame")
00121 LAYOUT_ATOM(canvasFrame, "CanvasFrame")
00122 LAYOUT_ATOM(rootFrame, "RootFrame")
00123 LAYOUT_ATOM(scrollFrame, "ScrollFrame")
00124 LAYOUT_ATOM(sequenceFrame, "SequenceFrame")
00125 LAYOUT_ATOM(sliderFrame, "SliderFrame")
00126 LAYOUT_ATOM(tableCaptionFrame, "TableCaptionFrame")
00127 LAYOUT_ATOM(tableCellFrame, "TableCellFrame")
00128 LAYOUT_ATOM(tableColFrame, "TableColFrame")
00129 LAYOUT_ATOM(tableColGroupFrame, "TableColGroupFrame")
00130 LAYOUT_ATOM(tableFrame, "TableFrame")
00131 LAYOUT_ATOM(tableOuterFrame, "TableOuterFrame")
00132 LAYOUT_ATOM(tableRowGroupFrame, "TableRowGroupFrame")
00133 LAYOUT_ATOM(tableRowFrame, "TableRowFrame")
00134 LAYOUT_ATOM(textInputFrame,"TextInputFrame")
00135 LAYOUT_ATOM(textFrame, "TextFrame")
00136 LAYOUT_ATOM(viewportFrame, "ViewportFrame")
00137 
00138   // Alphabetical list of frame property names
00139 LAYOUT_ATOM(boxMetricsProperty, "BoxMetricsProperty") // nsBoxLayoutMetrics*
00140 LAYOUT_ATOM(changeListProperty, "ChangeListProperty") // void*
00141 LAYOUT_ATOM(collapseOffsetProperty, "CollapseOffsetProperty")  // nsPoint*
00142 LAYOUT_ATOM(computedOffsetProperty, "ComputedOffsetProperty")  // nsPoint*
00143 LAYOUT_ATOM(IBSplitSpecialPrevSibling, "IBSplitSpecialPrevSibling")// nsIFrame*
00144 LAYOUT_ATOM(IBSplitSpecialSibling, "IBSplitSpecialSibling")    // nsIFrame*
00145 LAYOUT_ATOM(lineCursorProperty, "LineCursorProperty") // nsLineBox*
00146 LAYOUT_ATOM(maxElementWidthProperty, "MaxElementWidthProperty")  // nscoord*
00147 LAYOUT_ATOM(overflowAreaProperty, "OverflowArea")              // nsRect*
00148 LAYOUT_ATOM(overflowProperty, "OverflowProperty")              // list of nsIFrame*
00149 LAYOUT_ATOM(overflowLinesProperty, "OverflowLinesProperty")    // list of nsLineBox*
00150 LAYOUT_ATOM(overflowOutOfFlowsProperty, "OverflowOutOfFlowsProperty")      // nsFrameList*
00151 LAYOUT_ATOM(overflowPlaceholdersProperty, "OverflowPlaceholdersProperty")  // nsFrameList*
00152 LAYOUT_ATOM(rowUnpaginatedHeightProperty, "RowUnpaginatedHeightProperty")  // nscoord*
00153 LAYOUT_ATOM(spaceManagerProperty, "SpaceManagerProperty")      // the space manager for a block
00154 LAYOUT_ATOM(tableBCProperty, "TableBCProperty")                // table border collapsing info (e.g. damage area, table border widths)
00155 LAYOUT_ATOM(viewProperty, "ViewProperty")                      
00156 
00157   // Alphabetical list of event handler names
00158 LAYOUT_ATOM(onabort, "onabort")
00159 LAYOUT_ATOM(onbeforeunload, "onbeforeunload")
00160 LAYOUT_ATOM(onblur, "onblur")
00161 LAYOUT_ATOM(onbroadcast, "onbroadcast")
00162 LAYOUT_ATOM(onchange, "onchange")
00163 LAYOUT_ATOM(onclick, "onclick")
00164 LAYOUT_ATOM(onclose, "onclose")
00165 LAYOUT_ATOM(oncommand, "oncommand")
00166 LAYOUT_ATOM(oncommandupdate, "oncommandupdate")
00167 LAYOUT_ATOM(oncontextmenu, "oncontextmenu")
00168 LAYOUT_ATOM(onDOMActivate, "onDOMActivate")
00169 LAYOUT_ATOM(onDOMFocusIn, "onDOMFocusIn")
00170 LAYOUT_ATOM(onDOMFocusOut, "onDOMFocusOut")
00171 LAYOUT_ATOM(ondblclick, "ondblclick")
00172 LAYOUT_ATOM(ondragdrop, "ondragdrop")
00173 LAYOUT_ATOM(ondragenter, "ondragenter")
00174 LAYOUT_ATOM(ondragexit, "ondragexit")
00175 LAYOUT_ATOM(ondraggesture, "ondraggesture")
00176 LAYOUT_ATOM(ondragover, "ondragover")
00177 LAYOUT_ATOM(onerror, "onerror")
00178 LAYOUT_ATOM(onfocus, "onfocus")
00179 LAYOUT_ATOM(oninput, "oninput")
00180 LAYOUT_ATOM(onkeydown, "onkeydown")
00181 LAYOUT_ATOM(onkeypress, "onkeypress")
00182 LAYOUT_ATOM(onkeyup, "onkeyup")
00183 LAYOUT_ATOM(oncompositionstart, "oncompositionstart")
00184 LAYOUT_ATOM(oncompositionend, "oncompositionend")
00185 LAYOUT_ATOM(onload, "onload")
00186 LAYOUT_ATOM(onmousedown, "onmousedown")
00187 LAYOUT_ATOM(onmousemove, "onmousemove")
00188 LAYOUT_ATOM(onmouseout, "onmouseout")
00189 LAYOUT_ATOM(onmouseover, "onmouseover")
00190 LAYOUT_ATOM(onmouseup, "onmouseup")
00191 LAYOUT_ATOM(onpaint, "onpaint")
00192 LAYOUT_ATOM(onpopuphidden, "onpopuphidden")
00193 LAYOUT_ATOM(onpopuphiding, "onpopuphiding")
00194 LAYOUT_ATOM(onpopupshowing, "onpopupshowing")
00195 LAYOUT_ATOM(onpopupshown, "onpopupshown")
00196 LAYOUT_ATOM(onreset, "onreset")
00197 LAYOUT_ATOM(onresize, "onresize")
00198 LAYOUT_ATOM(onscroll, "onscroll")
00199 LAYOUT_ATOM(onselect, "onselect")
00200 LAYOUT_ATOM(onsubmit, "onsubmit")
00201 LAYOUT_ATOM(ontext, "ontext")
00202 LAYOUT_ATOM(onunload, "onunload")
00203 
00204 // scrolling
00205 LAYOUT_ATOM(onoverflow, "onoverflow")
00206 LAYOUT_ATOM(onunderflow, "onunderflow")
00207 LAYOUT_ATOM(onoverflowchanged, "onoverflowchanged")
00208 
00209 // mutation events
00210 LAYOUT_ATOM(onDOMSubtreeModified, "onDOMSubtreeModified")
00211 LAYOUT_ATOM(onDOMNodeInserted, "onDOMNodeInserted")
00212 LAYOUT_ATOM(onDOMNodeRemoved, "onDOMNodeRemoved")
00213 LAYOUT_ATOM(onDOMNodeRemovedFromDocument, "onDOMNodeRemovedFromDocument")
00214 LAYOUT_ATOM(onDOMNodeInsertedIntoDocument, "onDOMNodeInsertedIntoDocument")
00215 LAYOUT_ATOM(onDOMAttrModified, "onDOMAttrModified")
00216 LAYOUT_ATOM(onDOMCharacterDataModified, "onDOMCharacterDataModified")
00217 
00218 // pagetransition events
00219 LAYOUT_ATOM(onpageshow, "onpageshow")
00220 LAYOUT_ATOM(onpagehide, "onpagehide")
00221 
00222 #ifdef MOZ_SVG
00223 // Note: the attribute name for the 'SVGLoad' event is actually 'onload' etc.
00224 LAYOUT_ATOM(onSVGLoad, "onSVGLoad")
00225 LAYOUT_ATOM(onSVGUnload, "onSVGUnload")
00226 LAYOUT_ATOM(onSVGAbort, "onSVGAbort")
00227 LAYOUT_ATOM(onSVGError, "onSVGError")
00228 LAYOUT_ATOM(onSVGResize, "onSVGResize")
00229 LAYOUT_ATOM(onSVGScroll, "onSVGScroll")
00230 LAYOUT_ATOM(onSVGZoom, "onSVGZoom")
00231 #endif // MOZ_SVG
00232 
00233   // Alphabetical list of languages for lang-specific transforms
00234 LAYOUT_ATOM(Japanese, "ja")
00235 LAYOUT_ATOM(Chinese, "zh-CN")
00236 LAYOUT_ATOM(Taiwanese, "zh-TW")
00237 LAYOUT_ATOM(HongKongChinese, "zh-HK")
00238 LAYOUT_ATOM(Unicode, "x-unicode")
00239 
00240   // other
00241 LAYOUT_ATOM(wildcard, "*")
00242 LAYOUT_ATOM(_moz_target, "_moz_target")
00243 LAYOUT_ATOM(mozdirty, "_moz_dirty")
00244 LAYOUT_ATOM(stylesheet, "stylesheet")
00245 LAYOUT_ATOM(transform, "transform")
00246 LAYOUT_ATOM(show, "show")
00247 LAYOUT_ATOM(actuate, "actuate")
00248 
00249 LAYOUT_ATOM(autoAtom, "auto")
00250 LAYOUT_ATOM(none, "none")
00251 LAYOUT_ATOM(normal, "normal")
00252 LAYOUT_ATOM(transparent, "transparent")
00253 
00254 LAYOUT_ATOM(directionalFrame, "DirectionalFrame")
00255 LAYOUT_ATOM(baseLevel, "BaseLevel")                            // PRUint8
00256 LAYOUT_ATOM(embeddingLevel, "EmbeddingLevel")                  // PRUint8
00257 LAYOUT_ATOM(endsInDiacritic, "EndsInDiacritic")                // PRUint32
00258 LAYOUT_ATOM(nextBidi, "NextBidi")                              // nsIFrame*
00259 LAYOUT_ATOM(charType, "charType")                              // PRUint8
00260 LAYOUT_ATOM(scriptEnabledBeforePrintPreview, "scriptEnabledBeforePrintPreview") // PRBool
00261 
00262 #ifdef MOZ_SVG
00263   // Alphabetical list of SVG frame types
00264 LAYOUT_ATOM(svgCircleFrame,"SVGCircleFrame")
00265 LAYOUT_ATOM(svgClipPathFrame,"SVGClipPathFrame")
00266 LAYOUT_ATOM(svgDefsFrame,"SVGDefsFrame")
00267 LAYOUT_ATOM(svgEllipseFrame,"SVGEllipseFrame")
00268 #ifdef MOZ_SVG_FOREIGNOBJECT
00269 LAYOUT_ATOM(svgForeignObjectFrame,"SVGForeignObjectFrame")
00270 #endif
00271 LAYOUT_ATOM(svgGenericContainerFrame,"SVGGenericContainerFrame")
00272 LAYOUT_ATOM(svgGFrame,"SVGGFrame")
00273 LAYOUT_ATOM(svgGlyphFrame,"SVGGlyphFrame")
00274 LAYOUT_ATOM(svgGradientFrame,"SVGGradientFrame")
00275 LAYOUT_ATOM(svgImageFrame,"SVGImageFrame")
00276 LAYOUT_ATOM(svgInnerSVGFrame,"SVGInnerSVGFrame")
00277 LAYOUT_ATOM(svgLinearGradientFrame,"SVGLinearGradientFrame")
00278 LAYOUT_ATOM(svgLineFrame,"SVGLineFrame")
00279 LAYOUT_ATOM(svgMarkerFrame,"SVGMarkerFrame")
00280 LAYOUT_ATOM(svgOuterSVGFrame,"SVGOuterSVGFrame")
00281 LAYOUT_ATOM(svgPathFrame,"SVGPathFrame")
00282 LAYOUT_ATOM(svgPathGeometryFrame,"SVGPathGeometryFrame")
00283 LAYOUT_ATOM(svgPatternFrame,"SVGPatternFrame")
00284 LAYOUT_ATOM(svgPolylineFrame,"SVGPolylineFrame")
00285 LAYOUT_ATOM(svgPolygonFrame,"SVGPolygonFrame")
00286 LAYOUT_ATOM(svgRadialGradientFrame,"SVGRadialGradientFrame")
00287 LAYOUT_ATOM(svgRectFrame,"SVGRectFrame")
00288 LAYOUT_ATOM(svgStopFrame,"SVGStopFrame")
00289 LAYOUT_ATOM(svgTextFrame,"SVGTextFrame")
00290 LAYOUT_ATOM(svgTextPathFrame,"SVGTextPathFrame")
00291 LAYOUT_ATOM(svgTSpanFrame,"SVGTSpanFrame")
00292 LAYOUT_ATOM(svgUseFrame,"SVGUseFrame")
00293 #endif // MOZ_SVG
00294 
00295 #ifdef DEBUG
00296   // Alphabetical list of atoms used by debugging code
00297 LAYOUT_ATOM(cellMap, "TableCellMap")
00298 LAYOUT_ATOM(imageMap, "ImageMap")
00299 LAYOUT_ATOM(lineBoxBig, "LineBox:inline,big")
00300 LAYOUT_ATOM(lineBoxBlockBig, "LineBox:block,big")
00301 LAYOUT_ATOM(lineBoxBlockSmall, "LineBox:block,small")
00302 LAYOUT_ATOM(lineBoxFloats, "LineBoxFloats")
00303 LAYOUT_ATOM(lineBoxSmall, "LineBox:inline,small")
00304 LAYOUT_ATOM(spaceManager, "SpaceManager")
00305 LAYOUT_ATOM(tableColCache, "TableColumnCache")
00306 LAYOUT_ATOM(tableStrategy, "TableLayoutStrategy")
00307 LAYOUT_ATOM(textRun, "TextRun")
00308 LAYOUT_ATOM(xml_document_entities, "XMLDocumentEntities")
00309 LAYOUT_ATOM(xml_document_notations, "XMLDocumentNotations")
00310 #endif