~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/xml/document.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Inkscape::XML::Document - interface for XML documents
 
3
 *
 
4
 * Copyright 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
 */
 
14
 
 
15
#ifndef SEEN_INKSCAPE_XML_SP_REPR_DOC_H
 
16
#define SEEN_INKSCAPE_XML_SP_REPR_DOC_H
 
17
 
 
18
#include "xml/node.h"
 
19
#include "xml/session.h"
 
20
 
 
21
namespace Inkscape {
 
22
namespace XML {
 
23
 
 
24
struct Document : virtual public Node {
 
25
public:
 
26
    Node *createElementNode(char const *name) {
 
27
        return session()->createElementNode(name);
 
28
    }
 
29
    Node *createTextNode(char const *content) {
 
30
        return session()->createTextNode(content);
 
31
    }
 
32
    Node *createCommentNode(char const *content) {
 
33
        return session()->createCommentNode(content);
 
34
    }
 
35
};
 
36
 
 
37
}
 
38
}
 
39
 
 
40
#endif
 
41
/*
 
42
  Local Variables:
 
43
  mode:c++
 
44
  c-file-style:"stroustrup"
 
45
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
46
  indent-tabs-mode:nil
 
47
  fill-column:99
 
48
  End:
 
49
*/
 
50
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :