2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: Mode.h /main/1 1996/07/29 16:57:54 cde-hp $ */
24 // Copyright (c) 1994 James Clark
25 // See the file COPYING for copying permission.
28 #define Mode_INCLUDED 1
31 namespace SP_NAMESPACE {
36 alitMode, // attribute value literals starting with LIT
37 alitaMode, // attribute value literals starting with LITA
38 aliteMode, // attribute value literals inside entity
39 talitMode, // tokenized attribute value literal
42 mdMode, // markup declaration
43 mdMinusMode, // markup declaration, also recognize minus
44 mdPeroMode, // markup declaration, also recognize pero
46 sdcomMode, // comment in an SGML declaration
47 piMode, // processing instruction
49 imsMode, // ignored marked section
50 cmsMode, // cdata marked section
51 rcmsMode, // rcdata marked section
52 // These modes are needed only for the prologue.
54 dsMode, // declaration subset not in marked section
56 dsiMode, // declaration subset in marked section or
58 plitMode, // parameter literal starting with LIT
59 plitaMode, // paramater literal starting with LITA
60 pliteMode, // parameter literal inside entity
61 sdplitMode, // parameter literal starting with LIT
62 // in an SGML declaration
63 sdplitaMode, // parameter literal starting with LIT
64 // in an SGML declaration
65 grpsufMode, // group suffix
66 mlitMode, // minimum literal starting with LIT
67 mlitaMode, // minimum literal starting with LITA
68 asMode, // data/link/result attribute specification
69 slitMode, // system id literal starting with LIT
70 slitaMode, // system id literal starting with LITA
71 // These modes are needed only for the instance.
72 cconMode, // CDATA content
73 rcconMode, // RCDATA content
74 cconnetMode, // CDATA content, recognize NET
75 rcconnetMode, // RCDATA content, recognize NET
76 rcconeMode, // RCDATA content inside entity
77 tagMode, // start- or end-tag
78 econMode, // element content
79 mconMode, // mixed content
80 econnetMode, // element content, recognize NET
81 mconnetMode // mixed content, recognize NET
84 const int nModes = mconnetMode + 1;
86 enum { minShortrefMode = econMode };
92 #endif /* not Mode_INCLUDED */