Code

Added missing (and very important) file.
[inkscape.git] / src / extension / implementation / script.h
index 6a6256f3c4a7f93f078cf9fb8a1b516b7f9f625b..4620375f928f584dfc320eb09f64cd41b32b4fdc 100644 (file)
@@ -62,6 +62,8 @@ public:
      */
     virtual bool check(Inkscape::Extension::Extension *module);
 
+       ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * view);
+
     /**
      *
      */
@@ -85,13 +87,6 @@ public:
     virtual void save(Inkscape::Extension::Output *module,
                       SPDocument *doc,
                       gchar const *filename);
-    /**
-     *
-     */
-    virtual Gtk::Widget *prefs_effect(Inkscape::Extension::Effect *module,
-                                      Inkscape::UI::View::View * view,
-                                      sigc::signal<void> * changeSignal,
-                                                                         ImplementationDocumentCache * docCache);
 
     /**
      *
@@ -154,7 +149,7 @@ private:
         
     public:
         file_listener () : _dead(false) { };
-        ~file_listener () {
+        virtual ~file_listener () {
             _conn.disconnect();
         };
 
@@ -194,6 +189,7 @@ private:
 
         void toFile (const Glib::ustring &name) {
             Glib::RefPtr<Glib::IOChannel> stdout_file = Glib::IOChannel::create_from_file(name, "w");
+            stdout_file->set_encoding();
             stdout_file->write(_string);
             return;
         };
@@ -203,6 +199,20 @@ private:
                  const std::list<std::string> &in_params,
                  const Glib::ustring &filein,
                  file_listener &fileout);
+
+       void pump_events (void);
+
+       /** \brief  A definition of an interpreter, which can be specified
+                   in the INX file, but we need to know what to call */
+       struct interpreter_t {
+                       gchar const *identity;    /**< The ID that is in the INX file */
+                       gchar const *prefstring;  /**< The preferences key that can override the default */
+                       gchar const *defaultval;  /**< The default value if there are no preferences */
+       };
+    static interpreter_t const interpreterTab[];
+
+       Glib::ustring resolveInterpreterExecutable(const Glib::ustring &interpNameArg);
+
 }; // class Script