Code

implement rendering of clips/masks in outline mode; make all outline colors stored...
[inkscape.git] / src / xml / simple-document.h
1 /*
2  * Inkscape::XML::SimpleDocument - generic XML document 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_SIMPLE_DOCUMENT_H
16 #define SEEN_INKSCAPE_XML_SIMPLE_DOCUMENT_H
18 #include "xml/document.h"
19 #include "xml/simple-node.h"
21 namespace Inkscape {
23 namespace XML {
25 struct SimpleDocument : public SimpleNode, public Inkscape::XML::Document {
26     explicit SimpleDocument(int code) : SimpleNode(code) {
27         _initBindings();
28     }
30     Inkscape::XML::NodeType type() const { return Inkscape::XML::DOCUMENT_NODE; }
32 protected:
33     SimpleDocument(SimpleDocument const &doc) : Inkscape::XML::Node(), SimpleNode(doc), Inkscape::XML::Document() {
34         _initBindings();
35     }
37     SimpleNode *_duplicate() const { return new SimpleDocument(*this); }
39 private:
40     void _initBindings();
41 };
43 }
45 }
47 #endif
48 /*
49   Local Variables:
50   mode:c++
51   c-file-style:"stroustrup"
52   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
53   indent-tabs-mode:nil
54   fill-column:99
55   End:
56 */
57 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :