diff options
Diffstat (limited to 'backend/impress')
-rw-r--r-- | backend/impress/Makefile.am | 31 | ||||
-rw-r--r-- | backend/impress/impress-document.c | 7 | ||||
-rw-r--r-- | backend/impress/impress-document.h | 5 | ||||
-rw-r--r-- | backend/impress/impressdocument.evince-backend.in | 4 |
4 files changed, 36 insertions, 11 deletions
diff --git a/backend/impress/Makefile.am b/backend/impress/Makefile.am index 526839b..dec003d 100644 --- a/backend/impress/Makefile.am +++ b/backend/impress/Makefile.am @@ -1,10 +1,15 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/libdocument \ - $(SHELL_CFLAGS) \ - -DDATADIR=\""$(datadir)"\" +backenddir = $(libdir)/evince/backends -noinst_LTLIBRARIES = libimpressdocument.la +INCLUDES = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/libdocument \ + -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ + -DDATADIR=\""$(datadir)"\" \ + $(BACKEND_CFLAGS) \ + $(WARN_CFLAGS) \ + $(DISABLE_DEPRECATED) + +backend_LTLIBRARIES = libimpressdocument.la libimpressdocument_la_SOURCES = \ $(IMPOSTER_SOURCE_FILES) \ @@ -36,3 +41,17 @@ IMPOSTER_RENDER_SOURCE_FILES = \ IMPOSTER_RENDER_INCLUDE_FILES = \ render.h +libimpressdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) +libimpressdocument_la_LIBADD = \ + $(top_builddir)/libdocument/libevbackend.la \ + $(BACKEND_LIBS) + +backend_in_files = impressdocument.evince-backend.in + +%.evince-backend: %.evince-backend.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache + +backend_DATA = $(backend_in_files:.evince-backend.in=.evince-backend) + +EXTRA_DIST = $(backend_DATA) + +CLEANFILES = $(backend_DATA) diff --git a/backend/impress/impress-document.c b/backend/impress/impress-document.c index 74d335a..687972b 100644 --- a/backend/impress/impress-document.c +++ b/backend/impress/impress-document.c @@ -18,6 +18,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" + #include <gtk/gtk.h> #include <glib/gi18n.h> #include <string.h> @@ -58,9 +60,8 @@ typedef struct _ImpressDocumentClass ImpressDocumentClass; static void impress_document_document_iface_init (EvDocumentIface *iface); static void impress_document_document_thumbnails_iface_init (EvDocumentThumbnailsIface *iface); -G_DEFINE_TYPE_WITH_CODE (ImpressDocument, impress_document, G_TYPE_OBJECT, - { G_IMPLEMENT_INTERFACE (EV_TYPE_DOCUMENT, - impress_document_document_iface_init); +EV_BACKEND_REGISTER_WITH_CODE (ImpressDocument, impress_document, + { G_IMPLEMENT_INTERFACE (EV_TYPE_DOCUMENT_THUMBNAILS, impress_document_document_thumbnails_iface_init); }); diff --git a/backend/impress/impress-document.h b/backend/impress/impress-document.h index 7698e98..9f84498 100644 --- a/backend/impress/impress-document.h +++ b/backend/impress/impress-document.h @@ -30,8 +30,9 @@ G_BEGIN_DECLS typedef struct _ImpressDocument ImpressDocument; -ImpressDocument *impress_document_new (void); -GType impress_document_get_type (void) G_GNUC_CONST; +GType impress_document_get_type (void) G_GNUC_CONST; + +G_MODULE_EXPORT GType register_evince_backend (GTypeModule *module); G_END_DECLS diff --git a/backend/impress/impressdocument.evince-backend.in b/backend/impress/impressdocument.evince-backend.in new file mode 100644 index 0000000..61de77a --- /dev/null +++ b/backend/impress/impressdocument.evince-backend.in @@ -0,0 +1,4 @@ +[Evince Backend] +Module=impressdocument +_TypeDescription=Impress Slides +MimeType=application/vnd.sun.xml.impress;application/vnd.oasis.opendocument.presentation; |