1 /*
2 * Inkscape::XML::ElementNode - simple XML element implementation
3 *
4 * Copyright 2004-2005 MenTaLguY <mental@rydia.net>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * See the file COPYING for details.
12 *
13 */
15 #ifndef SEEN_INKSCAPE_XML_ELEMENT_NODE_H
16 #define SEEN_INKSCAPE_XML_ELEMENT_NODE_H
18 #include "xml/simple-node.h"
20 namespace Inkscape {
22 namespace XML {
24 class ElementNode : public SimpleNode {
25 public:
26 ElementNode(int code, Document *doc)
27 : SimpleNode(code, doc) {}
28 ElementNode(ElementNode const &other, Document *doc)
29 : SimpleNode(other, doc) {}
31 Inkscape::XML::NodeType type() const { return Inkscape::XML::ELEMENT_NODE; }
33 protected:
34 SimpleNode *_duplicate(Document* doc) const { return new ElementNode(*this, doc); }
35 };
37 }
39 }
41 #endif
42 /*
43 Local Variables:
44 mode:c++
45 c-file-style:"stroustrup"
46 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
47 indent-tabs-mode:nil
48 fill-column:99
49 End:
50 */
51 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :