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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef SEEN_SP_DOCUMENT_PRIVATE_H
#define SEEN_SP_DOCUMENT_PRIVATE_H
/*
* Seldom needed document data
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2001-2002 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <map>
#include <stddef.h>
#include <sigc++/sigc++.h>
#include "xml/event-fns.h"
#include "sp-defs.h"
#include "sp-root.h"
#include "document.h"
#include "composite-undo-stack-observer.h"
#include "event-log.h"
// XXX only for testing!
#include "console-output-undo-observer.h"
namespace Inkscape {
namespace XML {
class Event;
}
}
struct SPDocumentPrivate {
typedef std::map<GQuark, SPDocument::IDChangedSignal> IDChangedSignalMap;
typedef std::map<GQuark, SPDocument::ResourcesChangedSignal> ResourcesChangedSignalMap;
GHashTable *iddef; /**< Dictionary of id -> SPObject mappings */
GHashTable *reprdef; /**< Dictionary of Inkscape::XML::Node -> SPObject mappings */
unsigned long serial;
/** Dictionary of signals for id changes */
IDChangedSignalMap id_changed_signals;
/* Resources */
/* It is GHashTable of GSLists */
GHashTable *resources;
ResourcesChangedSignalMap resources_changed_signals;
SPDocument::ModifiedSignal modified_signal;
SPDocument::URISetSignal uri_set_signal;
SPDocument::ResizedSignal resized_signal;
SPDocument::ReconstructionStart _reconstruction_start_signal;
SPDocument::ReconstructionFinish _reconstruction_finish_signal;
SPDocument::CommitSignal commit_signal;
/* Undo/Redo state */
bool sensitive: true; /* If we save actions to undo stack */
Inkscape::XML::Event * partial; /* partial undo log when interrupted */
int history_size;
GSList * undo; /* Undo stack of reprs */
GSList * redo; /* Redo stack of reprs */
/* Undo listener */
Inkscape::CompositeUndoStackObserver undoStackObservers;
// XXX only for testing!
Inkscape::ConsoleOutputUndoObserver console_output_undo_observer;
bool seeking;
};
#endif // SEEN_SP_DOCUMENT_PRIVATE_H
|