From 8b04d0db6c55e36935690d37defb6f9b68945796 Mon Sep 17 00:00:00 2001 From: johnce Date: Wed, 5 Aug 2009 05:40:36 +0000 Subject: SPDocument->Document (bzr r8404) --- src/document-undo.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/document-undo.cpp') diff --git a/src/document-undo.cpp b/src/document-undo.cpp index ae1c82e71..9dbf5db25 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -23,8 +23,8 @@ * stack. Two methods exist to indicate that the given action is completed: * * \verbatim - void sp_document_done (SPDocument *document); - void sp_document_maybe_done (SPDocument *document, const unsigned char *key) \endverbatim + void sp_document_done (Document *document); + void sp_document_maybe_done (Document *document, const unsigned char *key) \endverbatim * * Both move the recent action list into the undo stack and clear the * list afterwards. While the first method does an unconditional push, @@ -85,7 +85,7 @@ sp_document_set_undo_sensitive(document, saved); \endverbatim */ void -sp_document_set_undo_sensitive (SPDocument *doc, bool sensitive) +sp_document_set_undo_sensitive (Document *doc, bool sensitive) { g_assert (doc != NULL); g_assert (doc->priv != NULL); @@ -112,7 +112,7 @@ sp_document_set_undo_sensitive (SPDocument *doc, bool sensitive) * the saved bools in a stack. Perhaps this is why the above solution is better. */ -bool sp_document_get_undo_sensitive(SPDocument const *document) { +bool sp_document_get_undo_sensitive(Document const *document) { g_assert(document != NULL); g_assert(document->priv != NULL); @@ -120,7 +120,7 @@ bool sp_document_get_undo_sensitive(SPDocument const *document) { } void -sp_document_done (SPDocument *doc, const unsigned int event_type, Glib::ustring event_description) +sp_document_done (Document *doc, const unsigned int event_type, Glib::ustring event_description) { sp_document_maybe_done (doc, NULL, event_type, event_description); } @@ -128,7 +128,7 @@ sp_document_done (SPDocument *doc, const unsigned int event_type, Glib::ustring void sp_document_reset_key (Inkscape::Application */*inkscape*/, SPDesktop */*desktop*/, GtkObject *base) { - SPDocument *doc = (SPDocument *) base; + Document *doc = (Document *) base; doc->actionkey = NULL; } @@ -145,7 +145,7 @@ typedef SimpleEvent InteractionEvent; class CommitEvent : public InteractionEvent { public: - CommitEvent(SPDocument *doc, const gchar *key, const unsigned int type) + CommitEvent(Document *doc, const gchar *key, const unsigned int type) : InteractionEvent(share_static_string("commit")) { _addProperty(share_static_string("timestamp"), timestamp()); @@ -165,7 +165,7 @@ public: } void -sp_document_maybe_done (SPDocument *doc, const gchar *key, const unsigned int event_type, +sp_document_maybe_done (Document *doc, const gchar *key, const unsigned int event_type, Glib::ustring event_description) { g_assert (doc != NULL); @@ -209,7 +209,7 @@ sp_document_maybe_done (SPDocument *doc, const gchar *key, const unsigned int ev } void -sp_document_cancel (SPDocument *doc) +sp_document_cancel (Document *doc) { g_assert (doc != NULL); g_assert (doc->priv != NULL); @@ -226,8 +226,8 @@ sp_document_cancel (SPDocument *doc) sp_repr_begin_transaction (doc->rdoc); } -static void finish_incomplete_transaction(SPDocument &doc) { - SPDocumentPrivate &priv=*doc.priv; +static void finish_incomplete_transaction(Document &doc) { + DocumentPrivate &priv=*doc.priv; Inkscape::XML::Event *log=sp_repr_commit_undoable(doc.rdoc); if (log || priv.partial) { g_warning ("Incomplete undo transaction:"); @@ -241,7 +241,7 @@ static void finish_incomplete_transaction(SPDocument &doc) { } gboolean -sp_document_undo (SPDocument *doc) +sp_document_undo (Document *doc) { using Inkscape::Debug::EventTracker; using Inkscape::Debug::SimpleEvent; @@ -287,7 +287,7 @@ sp_document_undo (SPDocument *doc) } gboolean -sp_document_redo (SPDocument *doc) +sp_document_redo (Document *doc) { using Inkscape::Debug::EventTracker; using Inkscape::Debug::SimpleEvent; @@ -333,7 +333,7 @@ sp_document_redo (SPDocument *doc) } void -sp_document_clear_undo (SPDocument *doc) +sp_document_clear_undo (Document *doc) { if (doc->priv->undo) doc->priv->undoStackObservers.notifyClearUndoEvent(); @@ -351,7 +351,7 @@ sp_document_clear_undo (SPDocument *doc) } void -sp_document_clear_redo (SPDocument *doc) +sp_document_clear_redo (Document *doc) { if (doc->priv->redo) doc->priv->undoStackObservers.notifyClearRedoEvent(); -- cgit v1.2.3