From 4b00949a4ac2bb998bc636338709a3a16e30de57 Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Mon, 30 Sep 2002 20:48:26 +0000 Subject: get PDFDoc from GPdfPersistStream, not directly from our embeddable * xpdf/pdf-view.cc: get PDFDoc from GPdfPersistStream, not directly from our embeddable (various places). * xpdf/Makefile.am: fix gui variable, add gpdf-persist-stream files * xpdf/bonobo-application-x-pdf.cc: include GlobalParams.h, (embeddable_factory): create a GPdfPersistStream first, then create an embeddable. * xpdf/gpdf-embeddable.cc (bed_free_data): move to gpdf-persist-stream.cc as delete_pdf_doc_full (load_pdf_from_stream): move to gpdf-persist-stream.cc (finalize): free priv field (class_init): kill pdf_changed signal, GPdfPersistStream has set_pdf signal, use finalize (gpdf_embeddable_add_interfaces): kill (gpdf_embeddable_construct): take GPdfPersistStream param, use bonobo_object_add_interface not gpdf_embeddable_add_intf (gpdf_embeddable_new): take GPdfPersistStream param * xpdf/gpdf-embeddable.h: remove extern "C" around bonobo includes, they protect themselves. Introduce private struct, still public. Use GPdfPersistStream * xpdf/gpdf-persist-stream.cc, xpdf/gpdf-persist-stream.h: files for new GPdfPersistStream class. Contains PDF loading code * xpdf/BonoboStream.h: hide GList before including gnome headers --- diff --git a/pdf/xpdf/Makefile.am b/pdf/xpdf/Makefile.am index 5b98d0c..549810e 100644 --- a/pdf/xpdf/Makefile.am +++ b/pdf/xpdf/Makefile.am @@ -9,7 +9,7 @@ INCLUDES = \ $(libpaper_CFLAGS) if WITH_GNOME -gui = "" +gui = else gui = xpdf endif @@ -111,6 +111,8 @@ bonobo_application_x_pdf_SOURCES = \ gpdf-embeddable.h \ gpdf-embeddable-view.cc \ gpdf-embeddable-view.h \ + gpdf-persist-stream.cc \ + gpdf-persist-stream.h \ gpdf-util.h \ gtkgesture.c \ gtkgesture.h \ -- cgit v0.9.1