2
* Inkscape::XML::TextNode - simple text 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_TEXT_NODE_H
16
#define SEEN_INKSCAPE_XML_TEXT_NODE_H
18
#include <glib/gquark.h>
19
#include "xml/simple-node.h"
25
struct TextNode : public SimpleNode {
26
TextNode(Util::SharedCStringPtr content)
27
: SimpleNode(g_quark_from_static_string("string"))
32
Inkscape::XML::NodeType type() const { return Inkscape::XML::TEXT_NODE; }
35
SimpleNode *_duplicate() const { return new TextNode(*this); }
46
c-file-style:"stroustrup"
47
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :