]> git.tokkee.org Git - inkscape.git/commitdiff

Code

don't need svg 'load and save'. in fact, it doesnt fit
authorishmal <ishmal@users.sourceforge.net>
Thu, 6 Jul 2006 20:38:48 +0000 (20:38 +0000)
committerishmal <ishmal@users.sourceforge.net>
Thu, 6 Jul 2006 20:38:48 +0000 (20:38 +0000)
src/dom/domconfig.h
src/dom/svg/svglsimpl.cpp [deleted file]
src/dom/svg/svglsimpl.h [deleted file]

index 41dce7a10756e3f08f2d0414b581e5a327f8b6b4..053e99712299d7f56dc7a48828cfb6e83dc2996e 100644 (file)
@@ -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 (file)
index 488f8ef..0000000
+++ /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 <stdarg.h>
-
-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 (file)
index af0f896..0000000
+++ /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
-#########################################################################*/
-