summaryrefslogtreecommitdiffstats
path: root/src/xml/event-fns.h
blob: f3a6e522e32fb4e81acad0582a6bc08e2d84c3bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: GPL-2.0-or-later
/** @file
 * TODO: insert short description here
 *//*
 * Authors: see git history
 *
 * Copyright (C) 2013 Authors
 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
 */
#ifndef SEEN_INKSCAPE_XML_SP_REPR_ACTION_FNS_H
#define SEEN_INKSCAPE_XML_SP_REPR_ACTION_FNS_H

namespace Inkscape {
namespace XML {

struct Document;
class Event;
class NodeObserver;

void replay_log_to_observer(Event const *log, NodeObserver &observer);
void undo_log_to_observer(Event const *log, NodeObserver &observer);

}
}

void sp_repr_begin_transaction (Inkscape::XML::Document *doc);
void sp_repr_rollback (Inkscape::XML::Document *doc);
void sp_repr_commit (Inkscape::XML::Document *doc);
Inkscape::XML::Event *sp_repr_commit_undoable (Inkscape::XML::Document *doc);

void sp_repr_undo_log (Inkscape::XML::Event *log);
void sp_repr_replay_log (Inkscape::XML::Event *log);
Inkscape::XML::Event *sp_repr_coalesce_log (Inkscape::XML::Event *a, Inkscape::XML::Event *b);
void sp_repr_free_log (Inkscape::XML::Event *log);
void sp_repr_debug_print_log(Inkscape::XML::Event const *log);

#endif