~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/xml/element-node.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
 * @brief Element node 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
 */
 
14
 
 
15
#ifndef SEEN_INKSCAPE_XML_ELEMENT_NODE_H
 
16
#define SEEN_INKSCAPE_XML_ELEMENT_NODE_H
 
17
 
 
18
#include "xml/simple-node.h"
 
19
 
 
20
namespace Inkscape {
 
21
 
 
22
namespace XML {
 
23
 
 
24
/**
 
25
 * @brief Element node, e.g. &lt;group /&gt;
 
26
 */
 
27
class ElementNode : public SimpleNode {
 
28
public:
 
29
    ElementNode(int code, Document *doc)
 
30
    : SimpleNode(code, doc) {}
 
31
    ElementNode(ElementNode const &other, Document *doc)
 
32
    : SimpleNode(other, doc) {}
 
33
 
 
34
    Inkscape::XML::NodeType type() const { return Inkscape::XML::ELEMENT_NODE; }
 
35
 
 
36
protected:
 
37
    SimpleNode *_duplicate(Document* doc) const { return new ElementNode(*this, doc); }
 
38
};
 
39
 
 
40
}
 
41
 
 
42
}
 
43
 
 
44
#endif
 
45
/*
 
46
  Local Variables:
 
47
  mode:c++
 
48
  c-file-style:"stroustrup"
 
49
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
50
  indent-tabs-mode:nil
 
51
  fill-column:99
 
52
  End:
 
53
*/
 
54
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :