2
* @brief Element node implementation
4
/* Copyright 2004-2005 MenTaLguY <mental@rydia.net>
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.
11
* See the file COPYING for details.
15
#ifndef SEEN_INKSCAPE_XML_ELEMENT_NODE_H
16
#define SEEN_INKSCAPE_XML_ELEMENT_NODE_H
18
#include "xml/simple-node.h"
25
* @brief Element node, e.g. <group />
27
class ElementNode : public SimpleNode {
29
ElementNode(int code, Document *doc)
30
: SimpleNode(code, doc) {}
31
ElementNode(ElementNode const &other, Document *doc)
32
: SimpleNode(other, doc) {}
34
Inkscape::XML::NodeType type() const { return Inkscape::XML::ELEMENT_NODE; }
37
SimpleNode *_duplicate(Document* doc) const { return new ElementNode(*this, doc); }
48
c-file-style:"stroustrup"
49
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :