summaryrefslogtreecommitdiffstats
path: root/src/xml/document.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/xml/document.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/xml/document.h')
-rw-r--r--src/xml/document.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/xml/document.h b/src/xml/document.h
new file mode 100644
index 000000000..8dc286a38
--- /dev/null
+++ b/src/xml/document.h
@@ -0,0 +1,50 @@
+/*
+ * Inkscape::XML::Document - interface for XML documents
+ *
+ * Copyright 2005 MenTaLguY <mental@rydia.net>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * See the file COPYING for details.
+ *
+ */
+
+#ifndef SEEN_INKSCAPE_XML_SP_REPR_DOC_H
+#define SEEN_INKSCAPE_XML_SP_REPR_DOC_H
+
+#include "xml/node.h"
+#include "xml/session.h"
+
+namespace Inkscape {
+namespace XML {
+
+struct Document : virtual public Node {
+public:
+ Node *createElementNode(char const *name) {
+ return session()->createElementNode(name);
+ }
+ Node *createTextNode(char const *content) {
+ return session()->createTextNode(content);
+ }
+ Node *createCommentNode(char const *content) {
+ return session()->createCommentNode(content);
+ }
+};
+
+}
+}
+
+#endif
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :