Back to index

lightning-sunbird  0.9+nobinonly
nsCSSPseudoElementList.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 atom lists for CSS pseudos.
00016  *
00017  * The Initial Developer of the Original Code is 
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   L. David Baron <dbaron@dbaron.org>
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 /*
00040  * This file contains the list of nsIAtoms and their values for CSS
00041  * pseudo-elements.  It is designed to be used as inline input to
00042  * nsCSSPseudoElements.cpp *only* through the magic of C preprocessing.  All
00043  * entries must be enclosed either in the macro CSS_PSEUDO_ELEMENT or in the
00044  * macro CSS2_PSEUDO_ELEMENT; these macros will have cruel and unusual things
00045  * done to them.  The difference between the two macros is that the
00046  * pseudo-elements enclosed in CSS2_PSEUDO_ELEMENT are the pseudo-elements
00047  * which are allowed to have only a single ':' in stylesheets.  The entries
00048  * should be kept in some sort of logical order.  The first argument to all the
00049  * macros is the C++ identifier of the atom.  The second argument is the string
00050  * value of the atom.
00051  *
00052  * Code including this file MUST define CSS_PSEUDO_ELEMENT.  If desired, it can
00053  * also define CSS2_PSEUDO_ELEMENT to perform special handling of the CSS2
00054  * pseudo-elements.
00055  */
00056 
00057 // OUTPUT_CLASS=nsCSSPseudoElements
00058 // MACRO_NAME=CSS_PSEUDO_ELEMENT
00059 
00060 #ifndef CSS2_PSEUDO_ELEMENT
00061 #define DEFINED_CSS2_PSEUDO_ELEMENT
00062 #define CSS2_PSEUDO_ELEMENT(name_, value_) CSS_PSEUDO_ELEMENT(name_, value_)
00063 #endif // CSS2_PSEUDO_ELEMENT
00064 
00065 CSS2_PSEUDO_ELEMENT(after, ":after")
00066 CSS2_PSEUDO_ELEMENT(before, ":before")
00067 
00068 CSS2_PSEUDO_ELEMENT(firstLetter, ":first-letter")
00069 CSS2_PSEUDO_ELEMENT(firstLine, ":first-line")
00070 
00071 CSS_PSEUDO_ELEMENT(mozSelection, ":-moz-selection")
00072 
00073 CSS_PSEUDO_ELEMENT(mozFocusInner, ":-moz-focus-inner")
00074 CSS_PSEUDO_ELEMENT(mozFocusOuter, ":-moz-focus-outer")
00075 
00076 CSS_PSEUDO_ELEMENT(mozListBullet, ":-moz-list-bullet")
00077 CSS_PSEUDO_ELEMENT(mozListNumber, ":-moz-list-number")
00078 
00079 CSS_PSEUDO_ELEMENT(horizontalFramesetBorder, ":-moz-hframeset-border")
00080 CSS_PSEUDO_ELEMENT(verticalFramesetBorder, ":-moz-vframeset-border")
00081 
00082 #ifdef DEFINED_CSS2_PSEUDO_ELEMENT
00083 #undef CSS2_PSEUDO_ELEMENT
00084 #endif