]> www.fi.muni.cz Git - evince.git/commitdiff
factory file name is gnome-pdf-viewer,
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Wed, 2 Oct 2002 21:21:11 +0000 (21:21 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Wed, 2 Oct 2002 21:21:11 +0000 (21:21 +0000)
* xpdf/Makefile.am: factory file name is gnome-pdf-viewer,
s/GNOME_XPDF.oafinfo/GNOME_PDF.oafinfo/

* xpdf/GNOME_PDF.oafinfo: s/XPDF/PDF/g, the factory file name
is now gnome-pdf-viewer, add oaf_server entry for the control

* xpdf/bonobo-application-x-pdf.cc (gpdf_factory): multi factory
function, replaces embeddable_factory, creates controls, too

* xpdf/gpdf-control.cc, xpdf/gpdf-control.h: new files, first code
for PDF viewer bonobo control.

* shell/gpdf.c: handle priv field in GPdfWindow, add code for using
a control instead of an embeddable (use it when USE_CONTROL != 0)

* shell/gpdf-window.h (GPdfWindow): add priv field, kill app field
(struct _Component) is private, moved back to gpdf.c

* configure.in: PACKAGE and VERSION are set by AM_INIT_AUTOMAKE,
kill explicit assignments

* xpdf/GNOME_XPDF.oafinfo: remove

pdf/xpdf/GNOME_PDF.oafinfo
pdf/xpdf/GNOME_XPDF.oafinfo [deleted file]
pdf/xpdf/Makefile.am

index 0918a158391c17106eccabbd3dc4720261d517a2..59f1025c681f00212dcd2c5ad1a3f5b1b58e119d 100644 (file)
@@ -1,23 +1,47 @@
 <oaf_info>
 
-<oaf_server iid="OAFIID:GNOME_XPDF_ComponentFactory"
+<oaf_server iid="OAFIID:GNOME_PDF_Factory"
             type="exe"
-            location="bonobo-application-x-pdf">
+            location="gnome-pdf-viewer">
 
        <oaf_attribute name="repo_ids" type="stringv">
                <item value="IDL:GNOME/GenericFactory:1.0"/>
        </oaf_attribute>
 
        <oaf_attribute name="description" type="string"
-                      value="application/x-pdf bonobo object factory"/>
+                      value="Gnome PDF viewer factory"/>
        <oaf_attribute name="name" type="string"
                       value="PDF document viewer factory"/>
 
 </oaf_server>
 
-<oaf_server iid="OAFIID:GNOME_XPDF_Embeddable"
+  <oaf_server iid="OAFIID:GNOME_PDF_Control"
+    type="factory"
+    location="OAFIID:GNOME_PDF_Factory">
+    
+    <oaf_attribute name="repo_ids" type="stringv">
+      <item value="IDL:Bonobo/Control:1.0"/>
+      <item value="IDL:Bonobo/PersistStream:1.0"/>
+      <item value="IDL:Bonobo/Persist:1.0"/>
+      <item value="IDL:Bonobo/Unknown:1.0"/>
+    </oaf_attribute>
+
+    <oaf_attribute name="description" type="string" value="Gnome PDF Viewer"/>
+    <oaf_attribute name="name" type="string" value="Gnome PDF Viewer"/>
+    <oaf_attribute name="bonobo:editable" type="boolean" value="false"/>
+    <oaf_attribute name="bonobo:supported_mime_types" type="stringv">
+      <item value="application/x-pdf"/>
+      <item value="application/pdf"/>
+    </oaf_attribute>
+    
+    <oaf_attribute name="nautilus:view_as_name" type="string"
+      value="PDF Document"/>
+
+  </oaf_server>
+
+<oaf_server iid="OAFIID:GNOME_PDF_Embeddable"
             type="factory"
-            location="OAFIID:GNOME_XPDF_ComponentFactory">
+            location="OAFIID:GNOME_PDF_Factory">
 
        <oaf_attribute name="repo_ids" type="stringv">
                <item value="IDL:Bonobo/Embeddable:1.0"/>
@@ -27,9 +51,9 @@
        </oaf_attribute>
 
        <oaf_attribute name="description" type="string"
-                      value="application/x-pdf bonobo object"/>
+                      value="Embeddable Gnome PDF document"/>
        <oaf_attribute name="name" type="string"
-                      value="PDF document viewer"/>
+                      value="Embeddable PDF document"/>
 
        <oaf_attribute name="bonobo:editable" type="boolean" value="true"/>
        <oaf_attribute name="bonobo:supported_mime_types" type="stringv">
@@ -37,9 +61,6 @@
        <item value="application/pdf"/>
        </oaf_attribute>
 
-       <oaf_attribute name="nautilus:view_as_name" type="string"
-                      value="PDF Document"/>
-
 </oaf_server>
 
 </oaf_info>
diff --git a/pdf/xpdf/GNOME_XPDF.oafinfo b/pdf/xpdf/GNOME_XPDF.oafinfo
deleted file mode 100644 (file)
index 0918a15..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<oaf_info>
-
-<oaf_server iid="OAFIID:GNOME_XPDF_ComponentFactory"
-            type="exe"
-            location="bonobo-application-x-pdf">
-
-       <oaf_attribute name="repo_ids" type="stringv">
-               <item value="IDL:GNOME/GenericFactory:1.0"/>
-       </oaf_attribute>
-
-       <oaf_attribute name="description" type="string"
-                      value="application/x-pdf bonobo object factory"/>
-       <oaf_attribute name="name" type="string"
-                      value="PDF document viewer factory"/>
-
-</oaf_server>
-
-<oaf_server iid="OAFIID:GNOME_XPDF_Embeddable"
-            type="factory"
-            location="OAFIID:GNOME_XPDF_ComponentFactory">
-
-       <oaf_attribute name="repo_ids" type="stringv">
-               <item value="IDL:Bonobo/Embeddable:1.0"/>
-               <item value="IDL:Bonobo/Unknown:1.0"/>
-               <item value="IDL:Bonobo/PersistStream:1.0"/>
-               <item value="IDL:Bonobo/Persist:1.0"/>
-       </oaf_attribute>
-
-       <oaf_attribute name="description" type="string"
-                      value="application/x-pdf bonobo object"/>
-       <oaf_attribute name="name" type="string"
-                      value="PDF document viewer"/>
-
-       <oaf_attribute name="bonobo:editable" type="boolean" value="true"/>
-       <oaf_attribute name="bonobo:supported_mime_types" type="stringv">
-       <item value="application/x-pdf"/>
-       <item value="application/pdf"/>
-       </oaf_attribute>
-
-       <oaf_attribute name="nautilus:view_as_name" type="string"
-                      value="PDF Document"/>
-
-</oaf_server>
-
-</oaf_info>
index 549810ef8f2944dda1371e91e23657d8306a80ff..5965b8705e2f939b2c6e0cc2fde79675ab6e88be 100644 (file)
@@ -14,7 +14,7 @@ else
 gui = xpdf
 endif
 
-bin_PROGRAMS =         $(gui)  bonobo-application-x-pdf
+bin_PROGRAMS =         $(gui)  gnome-pdf-viewer
 #      pdftops pdftotext       
 #      pdfinfo pdftopbm        
 #      pdfimages               
@@ -99,7 +99,7 @@ common_sources =              \
        XRef.cc                 \
        XRef.h
 
-bonobo_application_x_pdf_SOURCES =     \
+gnome_pdf_viewer_SOURCES =             \
        $(common_sources)               \
        BonoboStream.h                  \
        BonoboStream.cc                 \
@@ -107,6 +107,8 @@ bonobo_application_x_pdf_SOURCES =  \
        GOutputDev.h                    \
        bonobo-application-x-pdf.cc     \
        bonobo-application-x-pdf.h      \
+       gpdf-control.cc                 \
+       gpdf-control.h                  \
        gpdf-embeddable.cc              \
        gpdf-embeddable.h               \
        gpdf-embeddable-view.cc         \
@@ -119,7 +121,7 @@ bonobo_application_x_pdf_SOURCES =  \
        pdf-view.cc                     \
        pdf-view.h
 
-bonobo_application_x_pdf_LDADD =       \
+gnome_pdf_viewer_LDADD =               \
        ../goo/libgoo.a                 \
        $(GTK_LIBS)                     \
        $(GNOME_LIBDIR)                 \
@@ -203,7 +205,7 @@ ltk =                       \
        xpdf.ltk
 
 oafdir = $(datadir)/oaf
-oaf_DATA = GNOME_XPDF.oafinfo
+oaf_DATA = GNOME_PDF.oafinfo
 
 XML_FILES =                            \
        gpdf-ui.xml                     \
@@ -214,5 +216,3 @@ ui_DATA = $(XML_FILES)
 
 EXTRA_DIST = $(stock_DATA) ChangeLog $(ltk)    \
              $(oaf_DATA) config.h $(XML_FILES)
-
-