1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
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
15 * The Original Code is mozilla.org code.
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.
23 * Original Author: Mike Pinkerton (pinkerton@netscape.com)
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 MPL, 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 MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
41 This file contains the list of all Widget nsIAtoms and their values
43 It is designed to be used as inline input to nsWidgetAtoms.cpp *only*
44 through the magic of C preprocessing.
46 All entires must be enclosed in the macro WIDGET_ATOM which will have cruel
47 and unusual things done to it
49 It is recommended (but not strictly necessary) to keep all entries
52 The first argument to WIDGET_ATOM is the C++ identifier of the atom
53 The second argument is the string value of the atom
57 WIDGET_ATOM(accesskey
, "accesskey") // The shortcut key for a menu or menu item
58 WIDGET_ATOM(active
, "active")
59 WIDGET_ATOM(ascending
, "ascending")
60 WIDGET_ATOM(autocheck
, "autocheck")
61 WIDGET_ATOM(Back
, "Back")
62 WIDGET_ATOM(Bookmarks
, "Bookmarks")
63 WIDGET_ATOM(checkbox
, "checkbox")
64 WIDGET_ATOM(checked
, "checked")
65 WIDGET_ATOM(_class
, "class")
66 WIDGET_ATOM(collapsed
, "collapsed")
67 WIDGET_ATOM(comboboxControlFrame
, "ComboboxControlFrame")
68 WIDGET_ATOM(command
, "command")
69 WIDGET_ATOM(curpos
, "curpos")
70 WIDGET_ATOM(_default
, "default")
71 WIDGET_ATOM(descending
, "descending")
72 WIDGET_ATOM(dir
, "dir")
73 WIDGET_ATOM(disabled
, "disabled")
74 WIDGET_ATOM(_false
, "false")
75 WIDGET_ATOM(firsttab
, "first-tab")
76 WIDGET_ATOM(focused
, "focused")
77 WIDGET_ATOM(Forward
, "Forward")
78 WIDGET_ATOM(Home
, "Home")
79 WIDGET_ATOM(hidden
, "hidden")
80 WIDGET_ATOM(hidecolumnpicker
, "hidecolumnpicker")
81 WIDGET_ATOM(horizontal
, "horizontal")
82 WIDGET_ATOM(vertical
, "vertical")
84 WIDGET_ATOM(image
, "image")
85 WIDGET_ATOM(input
, "input")
86 WIDGET_ATOM(key
, "key") // The key element / attribute
87 WIDGET_ATOM(label
, "label")
88 WIDGET_ATOM(lasttab
, "last-tab")
89 WIDGET_ATOM(max
, "max")
90 WIDGET_ATOM(maxpos
, "maxpos")
91 WIDGET_ATOM(menu
, "menu") // Represents an XP menu
92 WIDGET_ATOM(menuitem
, "menuitem") // Represents an XP menu item
93 WIDGET_ATOM(menupopup
, "menupopup") // The XP menu's children.
94 WIDGET_ATOM(menuseparator
, "menuseparator") // Divider between menu items
95 WIDGET_ATOM(menuFrame
, "MenuFrame")
96 WIDGET_ATOM(minpos
, "minpos")
97 WIDGET_ATOM(mode
, "mode")
98 WIDGET_ATOM(modifiers
, "modifiers") // The modifiers attribute
99 WIDGET_ATOM(mozmenuactive
, "_moz-menuactive")
100 WIDGET_ATOM(name
, "name")
101 WIDGET_ATOM(onAppCommand
, "onAppCommand")
102 WIDGET_ATOM(open
, "open") // Whether or not a menu, tree, etc. is open
103 WIDGET_ATOM(orient
, "orient")
104 WIDGET_ATOM(pageincrement
, "pageincrement")
105 WIDGET_ATOM(parentfocused
, "parentfocused")
106 WIDGET_ATOM(radio
, "radio")
107 WIDGET_ATOM(readonly
, "readonly")
108 WIDGET_ATOM(Reload
, "Reload")
109 WIDGET_ATOM(sbattr
, "sbattr")
110 WIDGET_ATOM(scrollbarFrame
, "ScrollbarFrame")
111 WIDGET_ATOM(scrollbarDownBottom
, "scrollbar-down-bottom")
112 WIDGET_ATOM(scrollbarDownTop
, "scrollbar-down-top")
113 WIDGET_ATOM(scrollbarUpBottom
, "scrollbar-up-bottom")
114 WIDGET_ATOM(scrollbarUpTop
, "scrollbar-up-top")
115 WIDGET_ATOM(Search
, "Search")
116 WIDGET_ATOM(selected
, "selected")
117 WIDGET_ATOM(sortdirection
, "sortDirection")
118 WIDGET_ATOM(state
, "state")
119 WIDGET_ATOM(step
, "step")
120 WIDGET_ATOM(Stop
, "Stop")
121 WIDGET_ATOM(_true
, "true")
122 WIDGET_ATOM(tree
, "tree")
123 WIDGET_ATOM(treecolpicker
, "treecolpicker")
124 WIDGET_ATOM(type
, "type")
125 WIDGET_ATOM(value
, "value")