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 librararies 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: OutputState.h /main/1 1996/07/29 16:59:49 cde-hp $ */
24 // Copyright (c) 1994 James Clark
25 // See the file COPYING for copying permission.
27 #ifndef OutputState_INCLUDED
28 #define OutputState_INCLUDED 1
38 #include "EventsWanted.h"
41 namespace SP_NAMESPACE {
44 struct OutputStateLevel : public Link {
46 Boolean hasPendingRe() const;
47 char state; // should be OutputState::State
48 unsigned long reSerial;
59 void handleRe(EventHandler &, Allocator &, const EventsWanted &,
60 Char, const Location &);
61 void noteRs(EventHandler &, Allocator &, const EventsWanted &);
62 void noteMarkup(EventHandler &, Allocator &, const EventsWanted &);
63 void noteData(EventHandler &, Allocator &, const EventsWanted &);
64 void noteStartElement(Boolean included,
65 EventHandler &, Allocator &, const EventsWanted &);
66 void noteEndElement(Boolean included,
67 EventHandler &, Allocator &, const EventsWanted &);
69 OutputState(const OutputState &); // undefined
70 void operator=(const OutputState &); // undefined
78 IList<OutputStateLevel> stack_;
79 OutputStateLevel &top();
81 unsigned long nextSerial_;
82 friend struct OutputStateLevel;
86 Boolean OutputStateLevel::hasPendingRe() const
88 return int(state) >= int(OutputState::pendingAfterRsOrRe);
92 OutputStateLevel &OutputState::top()
94 return *stack_.head();
101 #endif /* not OutputState_INCLUDED */