Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / trace / trace.cpp
index cff464e9f1fba1c57e71fd953c17eced7f9a59f5..48d25d0c45c9add015b360b28398094c486c5669 100644 (file)
@@ -4,6 +4,8 @@
  *
  * Authors:
  *   Bob Jamison <rjamison@earthlink.net>
+ *   Jon A. Cruz <jon@joncruz.org>
+ *   Abhishek Sharma
  *
  * Copyright (C) 2004-2006 Bob Jamison
  *
@@ -443,7 +445,7 @@ void Tracer::traceThread()
         return;
         }
     SPDocument *doc = SP_ACTIVE_DOCUMENT;
-    doc->ensure_up_to_date();
+    doc->ensureUpToDate();
 
 
     SPImage *img = getSelectedSPImage();
@@ -482,7 +484,7 @@ void Tracer::traceThread()
         }
 
     //### Get pointers to the <image> and its parent
-       //XML Tree being used directly here while it shouldn't be.
+    //XML Tree being used directly here while it shouldn't be.
     Inkscape::XML::Node *imgRepr   = SP_OBJECT(img)->getRepr();
     Inkscape::XML::Node *par       = sp_repr_parent(imgRepr);
 
@@ -519,7 +521,7 @@ void Tracer::traceThread()
 
     //#OK.  Now let's start making new nodes
 
-    Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+    Inkscape::XML::Document *xml_doc = desktop->doc()->getReprDoc();
     Inkscape::XML::Node *groupRepr = NULL;
 
     //# if more than 1, make a <g>roup of <path>s
@@ -569,7 +571,7 @@ void Tracer::traceThread()
         }
 
     //## inform the document, so we can undo
-    SPDocumentUndo::done(doc, SP_VERB_SELECTION_TRACE, _("Trace bitmap"));
+    DocumentUndo::done(doc, SP_VERB_SELECTION_TRACE, _("Trace bitmap"));
 
     engine = NULL;