/*
5 * Authors: see git history
7 * Copyright (C) 2011 Authors
8 * Copyright 2005 MenTaLguY <mental@rydia.net>
10 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
13#ifndef SEEN_INKSCAPE_XML_SP_REPR_DOC_H
14#define SEEN_INKSCAPE_XML_SP_REPR_DOC_H
Enumeration of all XML event types.
Interface for XML node observers.
Interface for refcounted XML nodes.
virtual char const * name() const =0
Get the name of the element node.
virtual char const * content() const =0
Get the content of a text or comment node.
Helper class to stream background task notifications as a series of messages.
Interface for XML documents.
virtual bool inTransaction()=0
Checks whether there is an active transaction for this document.
virtual Event * commitUndoable()=0
Commit a transaction and store the events for later use.
virtual NodeObserver * logger()=0
Get the event logger for this document.
virtual void commit()=0
Commit a transaction and discard change data.
Document * duplicate(Document *doc) const override=0
Create a duplicate of this node.
virtual Node * createTextNode(char const *content)=0
virtual Node * createTextNode(char const *content, bool is_CData)=0
virtual Node * createElement(char const *name)=0
virtual Node * createComment(char const *content)=0
virtual Node * createPI(char const *target, char const *content)=0
virtual void rollback()=0
Restore the state of the document prior to the transaction.
virtual void beginTransaction()=0
Begin a transaction and start recording changes.