lsimpl.cpp revision fd81cca9448f3ec45db258eb73b8de41f301e4e1
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Phoebe DOM Implementation.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * This is a C++ approximation of the W3C DOM model, which follows
c869993e79c1eafbec61a56bf6cea848fe754c71xy * fairly closely the specifications in the various .idl files, copies of
c869993e79c1eafbec61a56bf6cea848fe754c71xy * which are provided for reference. Most important is this one:
c869993e79c1eafbec61a56bf6cea848fe754c71xy * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Authors:
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Bob Jamison
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Copyright (C) 2005-2007 Bob Jamison
c869993e79c1eafbec61a56bf6cea848fe754c71xy * This library is free software; you can redistribute it and/or
c869993e79c1eafbec61a56bf6cea848fe754c71xy * modify it under the terms of the GNU Lesser General Public
c869993e79c1eafbec61a56bf6cea848fe754c71xy * License as published by the Free Software Foundation; either
c869993e79c1eafbec61a56bf6cea848fe754c71xy * version 2.1 of the License, or (at your option) any later version.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * This library is distributed in the hope that it will be useful,
c869993e79c1eafbec61a56bf6cea848fe754c71xy * but WITHOUT ANY WARRANTY; without even the implied warranty of
c869993e79c1eafbec61a56bf6cea848fe754c71xy * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Lesser General Public License for more details.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * You should have received a copy of the GNU Lesser General Public
c869993e79c1eafbec61a56bf6cea848fe754c71xy * License along with this library; if not, write to the Free Software
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*#########################################################################
c869993e79c1eafbec61a56bf6cea848fe754c71xy## LSParserImpl
c869993e79c1eafbec61a56bf6cea848fe754c71xy#########################################################################*/
c869993e79c1eafbec61a56bf6cea848fe754c71xy return false;
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#### Check the various inputs of 'input' in order, according
c869993e79c1eafbec61a56bf6cea848fe754c71xy //# to the L&S spec
c869993e79c1eafbec61a56bf6cea848fe754c71xy while (true)
c869993e79c1eafbec61a56bf6cea848fe754c71xy while (true)
c869993e79c1eafbec61a56bf6cea848fe754c71xy //lets not do this yet
c869993e79c1eafbec61a56bf6cea848fe754c71xy //lets not do this yet
c869993e79c1eafbec61a56bf6cea848fe754c71xyDocumentPtr LSParserImpl::parseURI(const DOMString &/*uri*/)
c869993e79c1eafbec61a56bf6cea848fe754c71xyNodePtr LSParserImpl::parseWithContext(const LSInput &/*input*/,
c869993e79c1eafbec61a56bf6cea848fe754c71xy unsigned short /*action*/)
c869993e79c1eafbec61a56bf6cea848fe754c71xy//##################
c869993e79c1eafbec61a56bf6cea848fe754c71xy//# Non-API methods
c869993e79c1eafbec61a56bf6cea848fe754c71xy//##################
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*#########################################################################
c869993e79c1eafbec61a56bf6cea848fe754c71xy## LSSerializerImpl
c869993e79c1eafbec61a56bf6cea848fe754c71xy#########################################################################*/
c869993e79c1eafbec61a56bf6cea848fe754c71xy //## Check in order specified in the L&S specs
c869993e79c1eafbec61a56bf6cea848fe754c71xy return true;
c869993e79c1eafbec61a56bf6cea848fe754c71xy LSOutputStream *outputStream = destination.getByteStream();
c869993e79c1eafbec61a56bf6cea848fe754c71xy return true;
c869993e79c1eafbec61a56bf6cea848fe754c71xy //DO SOMETHING
c869993e79c1eafbec61a56bf6cea848fe754c71xy return true;
c869993e79c1eafbec61a56bf6cea848fe754c71xy return false;
c869993e79c1eafbec61a56bf6cea848fe754c71xy return false;
c869993e79c1eafbec61a56bf6cea848fe754c71xy return false;
c869993e79c1eafbec61a56bf6cea848fe754c71xyDOMString LSSerializerImpl::writeToString(const NodePtr nodeArg)
c869993e79c1eafbec61a56bf6cea848fe754c71xy//##################
c869993e79c1eafbec61a56bf6cea848fe754c71xy//# Non-API methods
c869993e79c1eafbec61a56bf6cea848fe754c71xy//##################
c869993e79c1eafbec61a56bf6cea848fe754c71xy for (int i=0 ; i<indent ; i++)
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //# DOCUMENT
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //# ELEMENT
c869993e79c1eafbec61a56bf6cea848fe754c71xy //#############
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Start open tag
c869993e79c1eafbec61a56bf6cea848fe754c71xy //if (nrAttrs>0)
c869993e79c1eafbec61a56bf6cea848fe754c71xy // pos(newLine);
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Attributes
c869993e79c1eafbec61a56bf6cea848fe754c71xy for (int i=0 ; i<nrAttrs ; i++)
c869993e79c1eafbec61a56bf6cea848fe754c71xy //pos(newLine);
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Finish open tag
c869993e79c1eafbec61a56bf6cea848fe754c71xy //if (nrAttrs>0)
c869993e79c1eafbec61a56bf6cea848fe754c71xy // spaces();
c869993e79c1eafbec61a56bf6cea848fe754c71xy //pos(newLine);
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Contents
c869993e79c1eafbec61a56bf6cea848fe754c71xy //spaces();
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Children
c869993e79c1eafbec61a56bf6cea848fe754c71xy //### Close tag
c869993e79c1eafbec61a56bf6cea848fe754c71xy //spaces();
c869993e79c1eafbec61a56bf6cea848fe754c71xy} //namespace ls
c869993e79c1eafbec61a56bf6cea848fe754c71xy} //namespace dom
c869993e79c1eafbec61a56bf6cea848fe754c71xy} //namespace w3c
c869993e79c1eafbec61a56bf6cea848fe754c71xy} //namespace org
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*#########################################################################
c869993e79c1eafbec61a56bf6cea848fe754c71xy## E N D O F F I L E
c869993e79c1eafbec61a56bf6cea848fe754c71xy#########################################################################*/