]> git.tokkee.org Git - inkscape.git/commitdiff

Code

PNG output for Cairo renderer
authormiklosh <miklosh@users.sourceforge.net>
Sun, 1 Oct 2006 14:01:48 +0000 (14:01 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Sun, 1 Oct 2006 14:01:48 +0000 (14:01 +0000)
src/extension/internal/cairo-png-out.h [new file with mode: 0644]

diff --git a/src/extension/internal/cairo-png-out.h b/src/extension/internal/cairo-png-out.h
new file mode 100644 (file)
index 0000000..fe02bc1
--- /dev/null
@@ -0,0 +1,46 @@
+/*\r
+ * A quick hack to use the print output to write out a file.  This\r
+ * then makes 'save as...' PNG.\r
+ *\r
+ * Authors:\r
+ *   Ted Gould <ted@gould.cx>\r
+ *   Ulf Erikson <ulferikson@users.sf.net>\r
+ *\r
+ * Copyright (C) 2004-2006 Authors\r
+ *\r
+ * Released under GNU GPL, read the file 'COPYING' for more information\r
+ */\r
+\r
+#ifndef EXTENSION_INTERNAL_CAIRO_PNG_OUT_H\r
+#define EXTENSION_INTERNAL_CAIRO_PNG_OUT_H\r
+\r
+#include "extension/implementation/implementation.h"\r
+\r
+namespace Inkscape {\r
+namespace Extension {\r
+namespace Internal {\r
+\r
+class CairoRendererOutput : Inkscape::Extension::Implementation::Implementation {\r
+\r
+public:\r
+    bool check(Inkscape::Extension::Extension *module);\r
+    void save(Inkscape::Extension::Output *mod,\r
+              SPDocument *doc,\r
+              gchar const *uri);\r
+    static void init();\r
+};\r
+\r
+} } }  /* namespace Inkscape, Extension, Implementation */\r
+\r
+#endif /* !EXTENSION_INTERNAL_CAIRO_PNG_OUT_H */\r
+\r
+/*\r
+  Local Variables:\r
+  mode:c++\r
+  c-file-style:"stroustrup"\r
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
+  indent-tabs-mode:nil\r
+  fill-column:99\r
+  End:\r
+*/\r
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :\r