Code

Remove obsolete C macro use.
[inkscape.git] / src / extension / output.h
index 455b4a8aef25959b269af4c593820a28a68517b3..584fafda8a276f9477d52265ed27f999633b94d4 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <gtk/gtkdialog.h>
 #include "extension.h"
-struct Document;
+struct SPDocument;
 
 namespace Inkscape {
 namespace Extension {
@@ -31,12 +31,13 @@ public:
     class save_failed {};        /**< Generic failure for an undescribed reason */
     class save_cancelled {};     /**< Saving was cancelled */
     class no_extension_found {}; /**< Failed because we couldn't find an extension to match the filename */
+    class file_read_only {};     /**< The existing file can not be opened for writing */
 
                  Output (Inkscape::XML::Node * in_repr,
                          Implementation::Implementation * in_imp);
     virtual     ~Output (void);
     virtual bool check                (void);
-    void         save (Document *doc,
+    void         save (SPDocument *doc,
                        gchar const *uri);
     bool         prefs (void);
     gchar *      get_mimetype(void);