~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/xml/document.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#define SEEN_INKSCAPE_XML_SP_REPR_DOC_H
17
17
 
18
18
#include "xml/node.h"
19
 
#include "xml/session.h"
20
19
 
21
20
namespace Inkscape {
22
21
namespace XML {
23
22
 
 
23
class Event;
 
24
class NodeObserver;
 
25
 
24
26
struct Document : virtual public Node {
25
27
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
 
    }
 
28
    virtual NodeObserver *logger()=0;
 
29
 
 
30
    virtual bool inTransaction()=0;
 
31
 
 
32
    virtual void beginTransaction()=0;
 
33
    virtual void rollback()=0;
 
34
    virtual void commit()=0;
 
35
    virtual Inkscape::XML::Event *commitUndoable()=0;
 
36
 
 
37
    virtual Node *createElement(char const *name)=0;
 
38
    virtual Node *createTextNode(char const *content)=0;
 
39
    virtual Node *createComment(char const *content)=0;
35
40
};
36
41
 
37
42
}