From: ishmal Date: Thu, 6 Jul 2006 20:38:48 +0000 (+0000) Subject: don't need svg 'load and save'. in fact, it doesnt fit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e36a6b1f3d057c188ee91ff06f6337522725e19e;p=inkscape.git don't need svg 'load and save'. in fact, it doesnt fit --- diff --git a/src/dom/domconfig.h b/src/dom/domconfig.h index 41dce7a10..053e99712 100644 --- a/src/dom/domconfig.h +++ b/src/dom/domconfig.h @@ -37,7 +37,7 @@ * or GlibMM's Glib::ustring. If neither one is defined, then DOMString * is defined as stdc++'s std::string. */ -#define DOM_STRING_GLIBMM +//#define DOM_STRING_GLIBMM //#define DOM_STRING_OWN diff --git a/src/dom/svg/svglsimpl.cpp b/src/dom/svg/svglsimpl.cpp deleted file mode 100644 index 488f8efc6..000000000 --- a/src/dom/svg/svglsimpl.cpp +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2004 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -// File: http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/ls.idl - -#include "svglsimpl.h" - -#include - -namespace org { -namespace w3c { -namespace dom { -namespace svg { - - - - -/*######################################################################### -## SVGLSParserImpl -#########################################################################*/ - - -/** - * - */ -Document *SVGLSParserImpl::parse(const LSInput &inputArg) - throw(dom::DOMException, LSException) -{ - Document *doc = LSParserImpl::parse(inputArg); - - if (!doc) - { - return NULL; - } - - svg::SvgParser svgParser; - - Document *svgdoc = svgParser.parse(doc); - - delete doc; - - return svgdoc; -} - - - - - -/*######################################################################### -## SVGLSSerializerImpl -#########################################################################*/ - - -/** - * - */ -void SVGLSSerializerImpl::writeNode(const Node *nodeArg) -{ - LSSerializerImpl::writeNode(nodeArg); -} - - - - - - - - - -} //namespace svg -} //namespace dom -} //namespace w3c -} //namespace org - - - - - -/*######################################################################### -## E N D O F F I L E -#########################################################################*/ - diff --git a/src/dom/svg/svglsimpl.h b/src/dom/svg/svglsimpl.h deleted file mode 100644 index af0f89664..000000000 --- a/src/dom/svg/svglsimpl.h +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (c) 2004 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -// File: http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/ls.idl - -#ifndef __SVGLSIMPL_H__ -#define __SVGLSIMPL_H__ - -#include "dom/lsimpl.h" -#include "svgparser.h" - - - -namespace org { -namespace w3c { -namespace dom { -namespace svg { - -typedef dom::ls::LSInput LSInput; -typedef dom::ls::LSOutput LSOutput; -typedef dom::ls::LSParserImpl LSParserImpl; -typedef dom::ls::LSException LSException; -typedef dom::ls::LSSerializerImpl LSSerializerImpl; -typedef dom::ls::DOMImplementationLS DOMImplementationLS; -typedef dom::ls::LSException LSException; - - -/*######################################################################### -## SVGLSParser -#########################################################################*/ - -/** - * - */ -class SVGLSParserImpl : virtual public LSParserImpl -{ -public: - - /** - * - */ - virtual Document *parse(const LSInput &input) - throw(dom::DOMException, LSException); - - - - //################## - //# Non-API methods - //################## - - /** - * - */ - SVGLSParserImpl() - {} - - /** - * - */ - virtual ~SVGLSParserImpl() - {} - - - - //################## - //# Internals - //################## - - -protected: - - - -}; - - -/*######################################################################### -## SVGLSSerializerImpl -#########################################################################*/ - -/** - * - */ -class SVGLSSerializerImpl : virtual public LSSerializerImpl -{ -public: - - //################## - //# Non-API methods - //################## - - /** - * - */ - SVGLSSerializerImpl() - { - } - - /** - * - */ - virtual ~SVGLSSerializerImpl() - {} - - - -protected: - - /** - * Overload me to change behaviour - */ - virtual void writeNode(const Node *nodeArg); - - - - -}; - - - - - -/*######################################################################### -## SVGDOMImplementationLSImpl -#########################################################################*/ - -/** - * - */ -class SVGDOMImplementationLSImpl : virtual public DOMImplementationLS -{ -public: - - /** - * - */ - virtual dom::ls::LSParser &createLSParser(unsigned short mode, - const DOMString &schemaType) - throw (dom::DOMException) - { - SVGLSParserImpl newParser; - parser = newParser; - return parser; - } - - - /** - * - */ - virtual dom::ls::LSSerializer &createLSSerializer() - { - SVGLSSerializerImpl newSerializer; - serializer = newSerializer; - return serializer; - } - - - /** - * - */ - virtual LSInput createLSInput() - { - LSInput input; - return input; - } - - /** - * - */ - virtual LSOutput createLSOutput() - { - LSOutput output; - return output; - } - - //################## - //# Non-API methods - //################## - - /** - * - */ - SVGDOMImplementationLSImpl() {} - - /** - * - */ - virtual ~SVGDOMImplementationLSImpl() {} - -protected: - - SVGLSParserImpl parser; - SVGLSSerializerImpl serializer; -}; - - - - - - - -} //namespace svg -} //namespace dom -} //namespace w3c -} //namespace org - - - - -#endif /* __SVGLSIMPL_H__ */ - -/*######################################################################### -## E N D O F F I L E -#########################################################################*/ -