2001-09-25 01:32:19 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-17 21:52:36 +00:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-07-18 00:13:35 +00:00
|
|
|
*
|
2004-04-17 21:52:36 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
1999-07-18 00:13:35 +00:00
|
|
|
*
|
2001-09-25 01:32:19 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
1999-07-18 00:13:35 +00:00
|
|
|
*
|
1999-11-06 03:40:37 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-17 21:52:36 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-25 01:32:19 +00:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1999
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 03:40:37 +00:00
|
|
|
*
|
2001-09-25 01:32:19 +00:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-17 21:52:36 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-09-25 01:32:19 +00:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-17 21:52:36 +00:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-25 01:32:19 +00:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-17 21:52:36 +00:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-25 01:32:19 +00:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-07-18 00:13:35 +00:00
|
|
|
|
|
|
|
/******
|
|
|
|
|
|
|
|
This file contains the list of all layout nsIAtoms and their values
|
|
|
|
|
|
|
|
It is designed to be used as inline input to nsLayoutAtoms.cpp *only*
|
|
|
|
through the magic of C preprocessing.
|
|
|
|
|
|
|
|
All entires must be enclosed in the macro LAYOUT_ATOM which will have cruel
|
|
|
|
and unusual things done to it
|
|
|
|
|
|
|
|
It is recommended (but not strictly necessary) to keep all entries
|
|
|
|
in alphabetical order
|
|
|
|
|
|
|
|
The first argument to LAYOUT_ATOM is the C++ identifier of the atom
|
|
|
|
The second argument is the string value of the atom
|
|
|
|
|
|
|
|
******/
|
|
|
|
|
2003-04-02 04:51:07 +00:00
|
|
|
// OUTPUT_CLASS=nsLayoutAtoms
|
|
|
|
// MACRO_NAME=LAYOUT_ATOM
|
1999-07-18 00:13:35 +00:00
|
|
|
|
|
|
|
// Alphabetical list of media type atoms
|
|
|
|
LAYOUT_ATOM(all, "all") // Media atoms must be lower case
|
|
|
|
LAYOUT_ATOM(aural, "aural")
|
|
|
|
LAYOUT_ATOM(braille, "braille")
|
|
|
|
LAYOUT_ATOM(embossed, "embossed")
|
|
|
|
LAYOUT_ATOM(handheld, "handheld")
|
|
|
|
LAYOUT_ATOM(print, "print")
|
|
|
|
LAYOUT_ATOM(projection, "projection")
|
|
|
|
LAYOUT_ATOM(screen, "screen")
|
|
|
|
LAYOUT_ATOM(tty, "tty")
|
|
|
|
LAYOUT_ATOM(tv, "tv")
|
|
|
|
|
|
|
|
// Alphabetical list of standard name space prefixes
|
|
|
|
LAYOUT_ATOM(htmlNameSpace, "html")
|
|
|
|
LAYOUT_ATOM(xmlNameSpace, "xml")
|
|
|
|
LAYOUT_ATOM(xmlnsNameSpace, "xmlns")
|
|
|
|
|
|
|
|
// Alphabetical list of frame additional child list names
|
|
|
|
LAYOUT_ATOM(absoluteList, "Absolute-list")
|
|
|
|
LAYOUT_ATOM(bulletList, "Bullet-list")
|
2000-01-28 02:19:45 +00:00
|
|
|
LAYOUT_ATOM(captionList, "Caption-list")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(colGroupList, "ColGroup-list")
|
1999-12-17 03:28:50 +00:00
|
|
|
LAYOUT_ATOM(editorDisplayList, "EditorDisplay-List")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(fixedList, "Fixed-list")
|
2003-10-13 21:51:02 +00:00
|
|
|
LAYOUT_ATOM(floatList, "Float-list")
|
2000-01-22 01:16:50 +00:00
|
|
|
LAYOUT_ATOM(overflowList, "Overflow-list")
|
2004-05-05 02:30:33 +00:00
|
|
|
LAYOUT_ATOM(overflowOutOfFlowList, "OverflowOutOfFlow-list")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(popupList, "Popup-list")
|
|
|
|
|
|
|
|
LAYOUT_ATOM(commentTagName, "__moz_comment")
|
|
|
|
LAYOUT_ATOM(textTagName, "__moz_text")
|
1999-08-08 01:05:05 +00:00
|
|
|
LAYOUT_ATOM(processingInstructionTagName, "__moz_pi")
|
2004-01-18 14:52:21 +00:00
|
|
|
LAYOUT_ATOM(documentFragmentNodeName, "#document-fragment")
|
1999-07-18 00:13:35 +00:00
|
|
|
|
|
|
|
// Alphabetical list of frame types
|
|
|
|
LAYOUT_ATOM(areaFrame, "AreaFrame")
|
2002-02-19 15:48:28 +00:00
|
|
|
LAYOUT_ATOM(bcTableCellFrame, "BCTableCellFrame") // table cell in border collapsing model
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(blockFrame, "BlockFrame")
|
2001-12-07 14:51:12 +00:00
|
|
|
LAYOUT_ATOM(boxFrame, "BoxFrame")
|
2000-02-15 04:26:44 +00:00
|
|
|
LAYOUT_ATOM(brFrame, "BRFrame")
|
1999-10-14 23:08:31 +00:00
|
|
|
LAYOUT_ATOM(bulletFrame, "BulletFrame")
|
2002-12-03 16:02:42 +00:00
|
|
|
LAYOUT_ATOM(fieldSetFrame, "FieldSetFrame")
|
2001-06-30 00:25:09 +00:00
|
|
|
LAYOUT_ATOM(gfxButtonControlFrame, "gfxButtonControlFrame")
|
2004-01-10 05:36:32 +00:00
|
|
|
LAYOUT_ATOM(subDocumentFrame, "subDocumentFrame")
|
2004-07-27 23:31:08 +00:00
|
|
|
LAYOUT_ATOM(imageBoxFrame, "ImageBoxFrame")
|
1999-08-31 03:09:40 +00:00
|
|
|
LAYOUT_ATOM(imageFrame, "ImageFrame")
|
2001-11-01 15:31:13 +00:00
|
|
|
LAYOUT_ATOM(imageControlFrame, "ImageControlFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(inlineFrame, "InlineFrame")
|
2002-12-03 16:02:42 +00:00
|
|
|
LAYOUT_ATOM(legendFrame, "LegendFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(letterFrame, "LetterFrame")
|
|
|
|
LAYOUT_ATOM(lineFrame, "LineFrame")
|
2001-07-10 23:57:28 +00:00
|
|
|
LAYOUT_ATOM(listControlFrame,"ListControlFrame")
|
1999-09-13 21:26:05 +00:00
|
|
|
LAYOUT_ATOM(objectFrame, "ObjectFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(pageFrame, "PageFrame")
|
2002-03-17 21:35:08 +00:00
|
|
|
LAYOUT_ATOM(pageBreakFrame, "PageBreakFrame")
|
2002-01-25 03:32:19 +00:00
|
|
|
LAYOUT_ATOM(pageContentFrame, "PageContentFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(placeholderFrame, "PlaceholderFrame")
|
|
|
|
LAYOUT_ATOM(positionedInlineFrame, "PositionedInlineFrame")
|
2000-04-18 23:05:15 +00:00
|
|
|
LAYOUT_ATOM(canvasFrame, "CanvasFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(rootFrame, "RootFrame")
|
|
|
|
LAYOUT_ATOM(scrollFrame, "ScrollFrame")
|
2002-03-04 12:55:20 +00:00
|
|
|
LAYOUT_ATOM(sequenceFrame, "SequenceFrame")
|
2000-01-28 02:19:45 +00:00
|
|
|
LAYOUT_ATOM(tableCaptionFrame, "TableCaptionFrame")
|
1999-10-02 00:02:54 +00:00
|
|
|
LAYOUT_ATOM(tableCellFrame, "TableCellFrame")
|
|
|
|
LAYOUT_ATOM(tableColFrame, "TableColFrame")
|
|
|
|
LAYOUT_ATOM(tableColGroupFrame, "TableColGroupFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(tableFrame, "TableFrame")
|
1999-10-02 00:02:54 +00:00
|
|
|
LAYOUT_ATOM(tableOuterFrame, "TableOuterFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(tableRowGroupFrame, "TableRowGroupFrame")
|
|
|
|
LAYOUT_ATOM(tableRowFrame, "TableRowFrame")
|
2000-06-09 05:15:58 +00:00
|
|
|
LAYOUT_ATOM(textInputFrame,"TextInputFrame")
|
1999-07-18 00:13:35 +00:00
|
|
|
LAYOUT_ATOM(textFrame, "TextFrame")
|
|
|
|
LAYOUT_ATOM(viewportFrame, "ViewportFrame")
|
1999-09-01 01:10:02 +00:00
|
|
|
|
1999-10-21 05:11:43 +00:00
|
|
|
// Alphabetical list of frame property names
|
2003-01-22 07:56:13 +00:00
|
|
|
LAYOUT_ATOM(changeListProperty, "ChangeListProperty") // void*
|
1999-12-06 15:49:53 +00:00
|
|
|
LAYOUT_ATOM(collapseOffsetProperty, "CollapseOffsetProperty") // nsPoint*
|
2004-01-11 04:29:09 +00:00
|
|
|
LAYOUT_ATOM(computedOffsetProperty, "ComputedOffsetProperty") // nsPoint*
|
2002-03-27 02:38:13 +00:00
|
|
|
LAYOUT_ATOM(IBSplitSpecialPrevSibling, "IBSplitSpecialPrevSibling")// nsIFrame*
|
|
|
|
LAYOUT_ATOM(IBSplitSpecialSibling, "IBSplitSpecialSibling") // nsIFrame*
|
2004-03-07 18:04:24 +00:00
|
|
|
LAYOUT_ATOM(lineCursorProperty, "LineCursorProperty") // nsLineBox*
|
2003-01-09 14:26:32 +00:00
|
|
|
LAYOUT_ATOM(maxElementWidthProperty, "MaxElementWidthProperty") // nscoord*
|
1999-12-06 15:49:53 +00:00
|
|
|
LAYOUT_ATOM(overflowAreaProperty, "OverflowArea") // nsRect*
|
|
|
|
LAYOUT_ATOM(overflowProperty, "OverflowProperty") // list of nsIFrame*
|
|
|
|
LAYOUT_ATOM(overflowLinesProperty, "OverflowLinesProperty") // list of nsLineBox*
|
2004-05-05 02:30:33 +00:00
|
|
|
LAYOUT_ATOM(overflowOutOfFlowsProperty, "OverflowOutOfFlowsProperty") // nsFrameList*
|
2002-12-04 00:25:43 +00:00
|
|
|
LAYOUT_ATOM(overflowPlaceholdersProperty, "OverflowPlaceholdersProperty") // nsPlaceholder*
|
2001-11-29 15:41:07 +00:00
|
|
|
LAYOUT_ATOM(rowUnpaginatedHeightProperty, "RowUnpaginatedHeightProperty") // nscoord*
|
2000-03-22 23:19:10 +00:00
|
|
|
LAYOUT_ATOM(spaceManagerProperty, "SpaceManagerProperty") // the space manager for a block
|
2002-02-19 15:48:28 +00:00
|
|
|
LAYOUT_ATOM(tableBCProperty, "TableBCProperty") // table border collapsing info (e.g. damage area, table border widths)
|
|
|
|
LAYOUT_ATOM(viewProperty, "ViewProperty")
|
1999-10-21 05:11:43 +00:00
|
|
|
|
1999-11-25 00:05:21 +00:00
|
|
|
// Alphabetical list of event handler names
|
|
|
|
LAYOUT_ATOM(onabort, "onabort")
|
2004-02-11 06:09:51 +00:00
|
|
|
LAYOUT_ATOM(onbeforeunload, "onbeforeunload")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(onblur, "onblur")
|
|
|
|
LAYOUT_ATOM(onbroadcast, "onbroadcast")
|
|
|
|
LAYOUT_ATOM(onchange, "onchange")
|
|
|
|
LAYOUT_ATOM(onclick, "onclick")
|
1999-12-01 22:35:33 +00:00
|
|
|
LAYOUT_ATOM(onclose, "onclose")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(oncommand, "oncommand")
|
|
|
|
LAYOUT_ATOM(oncommandupdate, "oncommandupdate")
|
2001-03-23 03:22:56 +00:00
|
|
|
LAYOUT_ATOM(oncontextmenu, "oncontextmenu")
|
2004-04-30 23:55:16 +00:00
|
|
|
LAYOUT_ATOM(onDOMActivate, "onDOMActivate")
|
|
|
|
LAYOUT_ATOM(onDOMFocusIn, "onDOMFocusIn")
|
|
|
|
LAYOUT_ATOM(onDOMFocusOut, "onDOMFocusOut")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(ondblclick, "ondblclick")
|
|
|
|
LAYOUT_ATOM(ondragdrop, "ondragdrop")
|
|
|
|
LAYOUT_ATOM(ondragenter, "ondragenter")
|
|
|
|
LAYOUT_ATOM(ondragexit, "ondragexit")
|
|
|
|
LAYOUT_ATOM(ondraggesture, "ondraggesture")
|
|
|
|
LAYOUT_ATOM(ondragover, "ondragover")
|
|
|
|
LAYOUT_ATOM(onerror, "onerror")
|
|
|
|
LAYOUT_ATOM(onfocus, "onfocus")
|
|
|
|
LAYOUT_ATOM(oninput, "oninput")
|
|
|
|
LAYOUT_ATOM(onkeydown, "onkeydown")
|
|
|
|
LAYOUT_ATOM(onkeypress, "onkeypress")
|
|
|
|
LAYOUT_ATOM(onkeyup, "onkeyup")
|
|
|
|
LAYOUT_ATOM(onload, "onload")
|
|
|
|
LAYOUT_ATOM(onmousedown, "onmousedown")
|
|
|
|
LAYOUT_ATOM(onmousemove, "onmousemove")
|
|
|
|
LAYOUT_ATOM(onmouseout, "onmouseout")
|
2004-04-30 23:55:16 +00:00
|
|
|
LAYOUT_ATOM(onmouseover, "onmouseover")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(onmouseup, "onmouseup")
|
|
|
|
LAYOUT_ATOM(onpaint, "onpaint")
|
2004-04-30 23:55:16 +00:00
|
|
|
LAYOUT_ATOM(onpopuphidden, "onpopuphidden")
|
|
|
|
LAYOUT_ATOM(onpopuphiding, "onpopuphiding")
|
|
|
|
LAYOUT_ATOM(onpopupshowing, "onpopupshowing")
|
|
|
|
LAYOUT_ATOM(onpopupshown, "onpopupshown")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(onreset, "onreset")
|
2000-05-17 05:27:22 +00:00
|
|
|
LAYOUT_ATOM(onresize, "onresize")
|
2000-05-17 06:53:58 +00:00
|
|
|
LAYOUT_ATOM(onscroll, "onscroll")
|
1999-11-25 00:05:21 +00:00
|
|
|
LAYOUT_ATOM(onselect, "onselect")
|
|
|
|
LAYOUT_ATOM(onsubmit, "onsubmit")
|
|
|
|
LAYOUT_ATOM(onunload, "onunload")
|
|
|
|
|
2000-06-23 05:15:04 +00:00
|
|
|
// scrolling
|
|
|
|
LAYOUT_ATOM(onoverflow, "onoverflow")
|
|
|
|
LAYOUT_ATOM(onunderflow, "onunderflow")
|
2000-06-28 00:00:18 +00:00
|
|
|
LAYOUT_ATOM(onoverflowchanged, "onoverflowchanged")
|
2000-06-23 05:15:04 +00:00
|
|
|
|
2000-11-27 07:55:20 +00:00
|
|
|
// mutation events
|
|
|
|
LAYOUT_ATOM(onDOMSubtreeModified, "onDOMSubtreeModified")
|
|
|
|
LAYOUT_ATOM(onDOMNodeInserted, "onDOMNodeInserted")
|
|
|
|
LAYOUT_ATOM(onDOMNodeRemoved, "onDOMNodeRemoved")
|
|
|
|
LAYOUT_ATOM(onDOMNodeRemovedFromDocument, "onDOMNodeRemovedFromDocument")
|
|
|
|
LAYOUT_ATOM(onDOMNodeInsertedIntoDocument, "onDOMNodeInsertedIntoDocument")
|
|
|
|
LAYOUT_ATOM(onDOMAttrModified, "onDOMAttrModified")
|
|
|
|
LAYOUT_ATOM(onDOMCharacterDataModified, "onDOMCharacterDataModified")
|
|
|
|
|
2000-09-20 22:59:20 +00:00
|
|
|
// Alphabetical list of languages for lang-specific transforms
|
|
|
|
LAYOUT_ATOM(Japanese, "ja")
|
2004-06-21 10:32:27 +00:00
|
|
|
LAYOUT_ATOM(Unicode, "x-unicode")
|
2000-09-20 22:59:20 +00:00
|
|
|
|
2000-06-28 04:17:26 +00:00
|
|
|
// other
|
|
|
|
LAYOUT_ATOM(wildcard, "*")
|
2000-09-10 07:04:07 +00:00
|
|
|
LAYOUT_ATOM(mozdirty, "_moz_dirty")
|
2002-09-04 06:57:25 +00:00
|
|
|
LAYOUT_ATOM(stylesheet, "stylesheet")
|
|
|
|
LAYOUT_ATOM(transform, "transform")
|
2003-04-02 04:51:07 +00:00
|
|
|
LAYOUT_ATOM(show, "show")
|
|
|
|
LAYOUT_ATOM(actuate, "actuate")
|
2000-06-28 04:17:26 +00:00
|
|
|
|
2004-01-18 02:42:27 +00:00
|
|
|
LAYOUT_ATOM(autoAtom, "auto")
|
|
|
|
LAYOUT_ATOM(none, "none")
|
|
|
|
LAYOUT_ATOM(normal, "normal")
|
|
|
|
LAYOUT_ATOM(transparent, "transparent")
|
|
|
|
|
2001-03-09 04:15:34 +00:00
|
|
|
LAYOUT_ATOM(directionalFrame, "DirectionalFrame")
|
|
|
|
LAYOUT_ATOM(baseLevel, "BaseLevel") // PRUint8
|
|
|
|
LAYOUT_ATOM(embeddingLevel, "EmbeddingLevel") // PRUint8
|
|
|
|
LAYOUT_ATOM(endsInDiacritic, "EndsInDiacritic") // PRUint32
|
|
|
|
LAYOUT_ATOM(nextBidi, "NextBidi") // nsIFrame*
|
|
|
|
LAYOUT_ATOM(charType, "charType") // PRUint8
|
|
|
|
|
1999-09-01 01:10:02 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
// Alphabetical list of atoms used by debugging code
|
1999-10-02 00:02:54 +00:00
|
|
|
LAYOUT_ATOM(cellMap, "TableCellMap")
|
1999-09-01 01:10:02 +00:00
|
|
|
LAYOUT_ATOM(imageMap, "ImageMap")
|
1999-10-14 23:08:31 +00:00
|
|
|
LAYOUT_ATOM(lineBoxBig, "LineBox:inline,big")
|
|
|
|
LAYOUT_ATOM(lineBoxBlockBig, "LineBox:block,big")
|
|
|
|
LAYOUT_ATOM(lineBoxBlockSmall, "LineBox:block,small")
|
2003-10-13 21:51:02 +00:00
|
|
|
LAYOUT_ATOM(lineBoxFloats, "LineBoxFloats")
|
1999-10-14 23:08:31 +00:00
|
|
|
LAYOUT_ATOM(lineBoxSmall, "LineBox:inline,small")
|
1999-10-02 00:52:01 +00:00
|
|
|
LAYOUT_ATOM(spaceManager, "SpaceManager")
|
1999-10-08 05:12:55 +00:00
|
|
|
LAYOUT_ATOM(tableColCache, "TableColumnCache")
|
1999-10-02 00:02:54 +00:00
|
|
|
LAYOUT_ATOM(tableStrategy, "TableLayoutStrategy")
|
1999-09-01 01:10:02 +00:00
|
|
|
LAYOUT_ATOM(textRun, "TextRun")
|
1999-10-07 00:31:41 +00:00
|
|
|
LAYOUT_ATOM(xml_document_entities, "XMLDocumentEntities")
|
|
|
|
LAYOUT_ATOM(xml_document_notations, "XMLDocumentNotations")
|
1999-09-01 01:10:02 +00:00
|
|
|
#endif
|