Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / nsgmls / Mode.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
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.
26
27 #ifndef Mode_INCLUDED
28 #define Mode_INCLUDED 1
29
30 #ifdef SP_NAMESPACE
31 namespace SP_NAMESPACE {
32 #endif
33
34 enum Mode {
35   grpMode,                      // group
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
40   talitaMode,
41   taliteMode,
42   mdMode,                       // markup declaration
43   mdMinusMode,                  // markup declaration, also recognize minus
44   mdPeroMode,                   // markup declaration, also recognize pero
45   comMode,                      // comment
46   sdcomMode,                    // comment in an SGML declaration
47   piMode,                       // processing instruction
48   refMode,                      // reference
49   imsMode,                      // ignored marked section
50   cmsMode,                      // cdata marked section
51   rcmsMode,                     // rcdata marked section
52   // These modes are needed only for the prologue.
53   proMode,                      // prologue
54   dsMode,                       // declaration subset not in marked section
55                                 // nor in entity
56   dsiMode,                      // declaration subset in marked section or
57                                 // in entity
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
82   };
83
84 const int nModes = mconnetMode + 1;
85
86 enum { minShortrefMode = econMode };
87
88 #ifdef SP_NAMESPACE
89 }
90 #endif
91
92 #endif /* not Mode_INCLUDED */