Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ev-document-factory.c')
-rw-r--r--backend/ev-document-factory.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c
index e3f384f..23364a2 100644
--- a/backend/ev-document-factory.c
+++ b/backend/ev-document-factory.c
@@ -28,6 +28,8 @@
#include "ev-poppler.h"
#include "pixbuf-document.h"
#include "tiff-document.h"
+#include "impress-document.h"
+
#ifdef ENABLE_PS
#include "ps-document.h"
#endif
@@ -67,6 +69,11 @@ const EvDocumentType document_types[] = {
{"image/x-eps", EV_BACKEND_PS, ps_document_get_type},
#endif
+#ifdef ENABLE_IMPRESS
+ /* Impress slides: */
+ {"application/vnd.sun.xml.impress", EV_BACKEND_IMPRESS, impress_document_get_type},
+#endif
+
#ifdef ENABLE_TIFF
/* Tiff: */
{"image/tiff", EV_BACKEND_TIFF, tiff_document_get_type},
@@ -395,6 +402,16 @@ ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document)
}
#endif
+#ifdef ENABLE_IMPRESS
+ if (document == NULL || backend == EV_BACKEND_IMPRESS) {
+ default_filter = filter = gtk_file_filter_new ();
+ gtk_file_filter_set_name (filter, _("Impress Slides"));
+ mime_types = ev_document_factory_get_mime_types (EV_BACKEND_IMPRESS);
+ file_filter_add_mime_list_and_free (filter, mime_types);
+ gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
+ }
+#endif
+
filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("All Files"));
gtk_file_filter_add_pattern (filter, "*");