Code

Redirected opening of AI files to the poppler-based PDF import extension
authormiklosh <miklosh@users.sourceforge.net>
Wed, 1 Aug 2007 11:00:23 +0000 (11:00 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Wed, 1 Aug 2007 11:00:23 +0000 (11:00 +0000)
src/extension/internal/pdfinput/pdf-input.cpp

index 4a9377b9a2ffd6aae297ce43318eb5301a31cbe8..47057cccf09584c8f777f9701a439cea33466ebb 100644 (file)
@@ -104,6 +104,7 @@ void
 PdfInput::init(void) {
     Inkscape::Extension::Extension * ext;
 
+    /* PDF in */
     ext = Inkscape::Extension::build_from_mem(
         "<inkscape-extension>\n"
             "<name>PDF Input</name>\n"
@@ -111,8 +112,21 @@ PdfInput::init(void) {
             "<input>\n"
                 "<extension>.pdf</extension>\n"
                 "<mimetype>application/pdf</mimetype>\n"
-                "<filetypename>Adobe PDF (*.pdf) [native]</filetypename>\n"
-                "<filetypetooltip>PDF Document</filetypetooltip>\n"
+                "<filetypename>Adobe PDF (*.pdf) [via poppler]</filetypename>\n"
+                "<filetypetooltip>Adobe Portable Document Format</filetypetooltip>\n"
+            "</input>\n"
+        "</inkscape-extension>", new PdfInput());
+
+    /* AI in */
+    ext = Inkscape::Extension::build_from_mem(
+        "<inkscape-extension>\n"
+            "<name>AI Input</name>\n"
+            "<id>org.inkscape.input.ai</id>\n"
+            "<input>\n"
+                "<extension>.ai</extension>\n"
+                "<mimetype>image/x-adobe-illustrator</mimetype>\n"
+                "<filetypename>Adobe Illustrator (*.ai) [PDF-based]</filetypename>\n"
+                "<filetypetooltip>Open files saved with recent versions of Adobe Illustrator</filetypetooltip>\n"
             "</input>\n"
         "</inkscape-extension>", new PdfInput());
 } // init