X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fextension%2Fextension.h;h=81629a2dcaa53b386c0579479c55907c9ef91536;hb=7150f0829e7f5452f5cab605b8014a245f9b7e7c;hp=2e05865018a361a409a03432577aad5105048baa;hpb=fcc198ade86e2e1fd0eb563b983c92acf1437c84;p=inkscape.git diff --git a/src/extension/extension.h b/src/extension/extension.h index 2e0586501..81629a2dc 100644 --- a/src/extension/extension.h +++ b/src/extension/extension.h @@ -22,6 +22,7 @@ #include #include #include "xml/repr.h" +#include "document.h" #include "extension/extension-forward.h" /** The key that is used to identify that the I/O should be autodetected */ @@ -42,6 +43,9 @@ /** Defines the key for Postscript printing */ #define SP_MODULE_KEY_PRINT_PS "org.inkscape.print.ps" +/** Defines the key for PDF printing */ +#define SP_MODULE_KEY_PRINT_PDF "org.inkscape.print.pdf" +#define SP_MODULE_KEY_PRINT_CAIRO_PDF "org.inkscape.print.pdf.cairo" /** Defines the key for LaTeX printing */ #define SP_MODULE_KEY_PRINT_LATEX "org.inkscape.print.latex" /** Defines the key for printing with GNOME Print */ @@ -143,25 +147,33 @@ private: #endif public: bool get_param_bool (const gchar * name, - const Inkscape::XML::Document * doc = NULL); + const SPDocument * doc = NULL, + const Inkscape::XML::Node * node = NULL); int get_param_int (const gchar * name, - const Inkscape::XML::Document * doc = NULL); + const SPDocument * doc = NULL, + const Inkscape::XML::Node * node = NULL); float get_param_float (const gchar * name, - const Inkscape::XML::Document * doc = NULL); + const SPDocument * doc = NULL, + const Inkscape::XML::Node * node = NULL); const gchar * get_param_string (const gchar * name, - const Inkscape::XML::Document * doc = NULL); + const SPDocument * doc = NULL, + const Inkscape::XML::Node * node = NULL); bool set_param_bool (const gchar * name, bool value, - Inkscape::XML::Document * doc = NULL); + SPDocument * doc = NULL, + Inkscape::XML::Node * node = NULL); int set_param_int (const gchar * name, int value, - Inkscape::XML::Document * doc = NULL); + SPDocument * doc = NULL, + Inkscape::XML::Node * node = NULL); float set_param_float (const gchar * name, float value, - Inkscape::XML::Document * doc = NULL); + SPDocument * doc = NULL, + Inkscape::XML::Node * node = NULL); const gchar * set_param_string (const gchar * name, const gchar * value, - Inkscape::XML::Document * doc = NULL); + SPDocument * doc = NULL, + Inkscape::XML::Node * node = NULL); /* Error file handling */ public: @@ -169,7 +181,7 @@ public: static void error_file_close (void); public: - Gtk::Widget * autogui (void); + Gtk::Widget * autogui (SPDocument * doc, Inkscape::XML::Node * node); Glib::ustring * paramString (void); /* Extension editor dialog stuff */