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: SGMLApplication.C /main/1 1996/07/29 17:03:08 cde-hp $ */
24 // Copyright (c) 1995 James Clark
25 // See the file COPYING for copying permission.
28 #pragma implementation
33 #include "SGMLApplication.h"
35 SGMLApplication::~SGMLApplication()
39 void SGMLApplication::appinfo(const AppinfoEvent &)
43 void SGMLApplication::startDtd(const StartDtdEvent &)
47 void SGMLApplication::endDtd(const EndDtdEvent &)
51 void SGMLApplication::endProlog(const EndPrologEvent &)
55 void SGMLApplication::startElement(const StartElementEvent &)
59 void SGMLApplication::endElement(const EndElementEvent &)
63 void SGMLApplication::data(const DataEvent &)
67 void SGMLApplication::sdata(const SdataEvent &)
71 void SGMLApplication::pi(const PiEvent &)
75 void SGMLApplication::externalDataEntityRef(const ExternalDataEntityRefEvent &)
79 void SGMLApplication::subdocEntityRef(const SubdocEntityRefEvent &)
83 void SGMLApplication::commentDecl(const CommentDeclEvent &)
87 void SGMLApplication::markedSectionStart(const MarkedSectionStartEvent &)
91 void SGMLApplication::markedSectionEnd(const MarkedSectionEndEvent &)
95 void SGMLApplication::ignoredChars(const IgnoredCharsEvent &)
99 void SGMLApplication::generalEntity(const GeneralEntityEvent &)
103 void SGMLApplication::error(const ErrorEvent &)
107 void SGMLApplication::openEntityChange(const OpenEntityPtr &)
112 SGMLApplication::OpenEntity::OpenEntity()
117 SGMLApplication::OpenEntity::~OpenEntity()
121 SGMLApplication::OpenEntityPtr::OpenEntityPtr()
126 SGMLApplication::OpenEntityPtr::OpenEntityPtr(const OpenEntityPtr &ptr)
133 SGMLApplication::OpenEntityPtr::~OpenEntityPtr()
137 if (ptr_->count_ == 0)
142 void SGMLApplication::OpenEntityPtr::operator=(OpenEntity *p)
148 if (ptr_->count_ == 0)
154 SGMLApplication::Location::Location()
159 SGMLApplication::Location::Location(const OpenEntityPtr &ptr, Position pos)
162 *this = ptr->location(pos);
167 void SGMLApplication::Location::init()
173 lineNumber = (unsigned long)-1;
174 columnNumber = (unsigned long)-1;
175 byteOffset = (unsigned long)-1;
176 entityOffset = (unsigned long)-1;