Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf
Commit message (Collapse)AuthorAgeFilesLines
* Add conditional ANNOTS_VIEW_SRCS. Change eog-hig-dialog inRemi Cohen-Scali2004-01-131-5/+59
| | | | | | | | | 2004-01-13 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Makefile.am: Add conditional ANNOTS_VIEW_SRCS. Change eog-hig-dialog in gpdf-hig-dialog. Added new files (srcs & icons) for sidebar and views.
* Reused eog HIG dialog in GPdf.Remi Cohen-Scali2004-01-132-0/+123
| | | | | | | | 2004-01-13 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/gpdf-hig-dialog.c: * xpdf/gpdf-hig-dialog.h: Reused eog HIG dialog in GPdf.
* Added getSubtype, getDict and getRefNum/Gen methods for easier annotsRemi Cohen-Scali2004-01-121-0/+12
| | | | | | | | | 2004-01-12 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Annot.h: Added getSubtype, getDict and getRefNum/Gen methods for easier annots identification. Added dict & subtype fields.
* :Annot): Extended Annot object to read several kind of annotations. SomeRemi Cohen-Scali2004-01-121-16/+16
| | | | | | | | | | 2004-01-12 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Annot.cc (Annot::Annot): Extended Annot object to read several kind of annotations. Some more work (in coord with xpdf) is needed... (Annots::Annots): Same extensions on annotations collection object.
* add --enable-deprecation-errors option, inspired by ggv's configure.Martin Kretzschmar2003-12-301-0/+1
| | | | | | | | | * configure.in: add --enable-deprecation-errors option, inspired by ggv's configure. * xpdf/Makefile.am, shell/Makefile.am, lib/recent-files/Makefile.am, lib/ggv-sidebar/Makefile.am (INCLUDES): use GPDF_DEPRECATED_CFLAGS.
* add xpdf/gpdf-print-progress-dialog.gladeMartin Kretzschmar2003-09-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | * POTFILES.in: add xpdf/gpdf-print-progress-dialog.glade * xpdf/gpdf-control.cc (gpdf_print_job_prepare, idle_print_handler: (gpdf_control_print_job_print, using_postscript_printer) (gpdf_control_no_preview_alert, gpdf_control_no_postscript_printer_alert) (gpdf_control_get_range_page, gpdf_control_print_dialog_new) (gpdf_control_print, verb_FilePrint_cb): implement printing. (gpdf_control_set_property): disable PersistStream implementation. * xpdf/gpdf-print-progress-dialog.glade: add. * xpdf/gpdf-control-ui.xml: add Print verb, menu item, tool item. * xpdf/Makefile.am (libgpdf_a_SOURCES): include PSOutputDev (glade_DATA): add gpdf-print-progress-dialog.glade. * xpdf/GNOME_PDF.server.in.in: don't advertise PersistStream * configure.in: bump version to 0.110.99; require libgnomeprint >= 2.3.0.
* (eog_hig_dialog_new): add terminating NULL in g_object_set.Martin Kretzschmar2003-08-061-1/+1
|
* use more informative error messages when emitting loading-failed. KillMartin Kretzschmar2003-07-181-1/+1
| | | | | | | | | | | | * xpdf/gpdf-persist-file.cc (impl_bonobo_persist_file_load): use more informative error messages when emitting loading-failed. Kill gotos :-). Whitespace cleanups. * xpdf/gpdf-control.cc (persist_file_loading_failed_cb): kill redundancy in error message; unset PDF document. * xpdf/eog-hig-dialog.c (eog_hig_dialog_new): remove a newline
* Add gpdf-persist-file.cc.Martin Kretzschmar2003-07-173-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | * po/POTFILES.in: Add gpdf-persist-file.cc. * xpdf/gpdf-persist-file.cc (gpdf_persist_file_class_init) (impl_bonobo_persist_file_load): emit (new) loading-failed signal if something goes wrong during load. * xpdf/gpdf-persist-file.h: add slot for loading-failed. * xpdf/gpdf-marshal.list: add VOID:STRING. * xpdf/gpdf-links-canvas-layer.cc: fix include (thanks Remi). * xpdf/gpdf-control.cc (gpdf_control_setup_persist) (gpdf_control_destroy): on loading-failed signal, display error alert. * xpdf/eog-hig-dialog.h, xpdf/eog-hig-dialog.c: copied from eog; HIG conforming alert dialog. * xpdf/Makefile.am (libgpdf_a_SOURCES): build eog-hig-dialog * NEWS: updated.
* GnomeFontFace wrapper class for embedded fonts. Originally by me, thisMartin Kretzschmar2003-06-251-0/+3
| | | | | | | | | | | | | | | | | | * xpdf/gpdf-font-face.c: GnomeFontFace wrapper class for embedded fonts. Originally by me, this class is from Filip Van Raemdonck. * xpdf/gpdf-font-face.h: header for GPdfFontFace. * xpdf/Makefile.am (libgpdf_a_SOURCES): build gpdf-font-face.[hc]. (INCLUDES): propagate cflags for private gnome-print headers. * xpdf/GPOutputDev.cc (getFontFaceEmbedded): s/gnome_font_face_download/gpdf_font_face_download/. * configure.in (HAVE_FONT_EMBEDDING): compile with font-embedding if complete private gnome-print headers are installed. * NEWS: updated.
* generate lib/ggv-sidebar/Makefile.Martin Kretzschmar2003-06-031-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: generate lib/ggv-sidebar/Makefile. * lib/Makefile.am (SUBDIRS): add ggv-sidebar. * lib/ggv-sidebar/ggvutils.h, lib/ggv-sidebar/ggv-prefs.h: everything we need from the ggv files of the same name. * lib/ggv-sidebar/ggvutils.c: plus their implementation. * lib/ggv-sidebar/Makefile.am: add ggvutils.[hc], ggv-prefs.h. * xpdf/Makefile.am: link with ggv-sidebar. * xpdf/gpdf-view.cc: implement GgvDocument interface. (gpdf_view_get_type): cannot use CLASS_BOILERPLATE with interfaces. (gpdf_view_get_page_count, gpdf_view_get_page_names) (gpdf_view_instance_init): for the interface. * xpdf/tests/test-gpdf-view.cc: add tests for GPdfView. * xpdf/tests/.cvsignore: ignore test-gpdf-view. * xpdf/tests/Makefile.am: add new test, link with ggv-sidebar.
* add tests for GPdfControlMartin Kretzschmar2003-05-291-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/tests/test-gpdf-control.cc: add tests for GPdfControl * xpdf/tests/Makefile.am, xpdf/tests/.cvsignore: add test-gpdf-control * xpdf/gpdf-control.cc: use BONOBO_CLASS_BOILERPLATE. (gpdf_control_new, gpdf_control_construct): kill, use construct time properties. (gpdf_control_class_init): install constructor, properties persist-stream and persist-file. (gpdf_control_constructor): constructor impl. (gpdf_control_setup_page_control, gpdf_control_setup_zoomable) (gpdf_control_setup_view_widgets): renamed from gc_setup_foo. (gpdf_control_setup_persist): ditto, connect to PersistFile, too. (gpdf_control_set_property): impl. (persist_file_set_pdf_cb): signal callback. (persist_stream_set_pdf_cb): renamed from gc_set_pdf_cb. (gpdf_control_pdf_doc_changed): factored out from gc_set_pdf_cb. (verb_FileProperties_cb): get PDFDoc from priv. * xpdf/gpdf-control.h: kill gpdf_control_new and _construct, * xpdf/bonobo-application-x-pdf.cc (gpdf_factory): also give the control a PersistFile implementation * xpdf/Makefile.am: moved more code into libgpdf.a. * xpdf/GNOME_PDF.server.in.in: state that we implement Bonobo/PersistFile. * shell/gpdf.c (bonobo_stream_for_uri): kill. (gw_control_load_pdf): changed to load through PersistFile.
* add tests for GPdfPersistFile.Martin Kretzschmar2003-05-271-0/+2
| | | | | | | | | | | | | | * xpdf/tests/test-pdf-loading.cc: add tests for GPdfPersistFile. * xpdf/gpdf-persist-stream.h: no need to include BonoboStream.h. * xpdf/gpdf-persist-file.h, xpdf/gpdf-persist-file.cc: new class, implements the PersistFile interface. * xpdf/Makefile.am (libgpdf_a_SOURCES): add gpdf-persist-file.cc, gpdf-persist-file.h. * xpdf/gpdf-control.cc: reorder includes.
* new test.Martin Kretzschmar2003-05-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/tests/test-pdf-loading.cc: new test. * xpdf/tests/Makefile.am (TESTS_NEEDING_PDFTEX): add test-pdf-loading. * xpdf/Makefile.am (libgpdf_a_SOURCES): move more files to the lib. * xpdf/gpdf-persist-stream.cc (gpdf_persist_stream_get_length): kill. (gpdf_persist_stream_delete_doc_and_stream): rename from delete_pdf_doc_full, simplify. (load_pdf_from_stream): make priv->pdf_stream local to this method, kill redundant test for catalog. * xpdf/gpdf-persist-stream.h (gpdf_persist_stream_get_length): kill. * xpdf/gpdf-control.cc (verb_FileProperties_cb): remove file size argument. * xpdf/nautilus-pdf-property-page.cc (gpdf_nautilus_property_page_set_uri): ditto. * xpdf/pdf-info-dict-util.cc (pdf_doc_process_properties): kill file size parameter. * xpdf/pdf-info-dict-util.h: ditto. * xpdf/pdf-properties-display.c: kill traces of the file size label.
* add (mouse) enter and leave signalsMartin Kretzschmar2003-05-201-11/+10
| | | | | | | | | | | | | | | | | | | * xpdf/gpdf-link-canvas-item.cc (gpdf_link_canvas_item_mouse_enter) (gpdf_link_canvas_item_mouse_leave) (gpdf_link_canvas_item_class_init): add (mouse) enter and leave signals * xpdf/gpdf-link-canvas-item.h: add signal slots for enter and leave * xpdf/tests/test-links.cc (link_item_enter_leave): test for the signals * xpdf/Makefile.am: now the marshallers sources are not shipped with the dist and correctly build when needed, finally * configure.in: version 0.102.99
* Version 0.102Martin Kretzschmar2003-05-191-6/+7
| | | | | | | * configure.in: Version 0.102 * xpdf/Makefile.am: don't do the DONT_DIST_SOURCE thing, breaks the distcheck
* don't distribute generated marshallersMartin Kretzschmar2003-05-191-2/+10
|
* tests/experimentsMartin Kretzschmar2003-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/tests/test-page-setup.cc, xpdf/tests/test-links.cc: tests/experiments * xpdf/tests/Makefile.am, xpdf/tests/.cvsignore: infrastructure * xpdf/gpdf-view.h: signal slots for close and quit requests * xpdf/gpdf-view.cc (gpdf_view_link_action_named, link_clicked_cb) (gpdf_view_class_init): implement some named action links: NextPage, PrevPage, FirstPage, LastPage, signals for Close and Quit * xpdf/Makefile.am (SUBDIRS): add tests * test-files/simple-links.tex: test file, simple pdf links * test-files/.cvsignore, test-files/Makefile.am: infrastructure * configure.in: check for pdftex (not a hard requirement) add test-files/Makefile and xpdf/tests/Makefile * NEWS: update * Makefile.am (SUBDIRS): add test-files
* add xpdf/gpdf-link-canvas-item.cc xpdf/gpdf-links-canvas-layer.ccMartin Kretzschmar2003-05-171-25/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * po/POTFILES.in: add xpdf/gpdf-link-canvas-item.cc xpdf/gpdf-links-canvas-layer.cc * xpdf/gpdf-view.cc (gpdf_view_motion_notify_event) (gpdf_view_handle_drag_motion): chain up to parent implementation of motion-notify, factor out dragging (gpdf_view_button_press_event): chain up to parent (gpdf_view_render_page): use GPdfLinksCanvasLayer to draw links (link_clicked_cb, gpdf_view_link_action_goto): implement simple GoTo links (gpdf_view_dispose): unref the links_layer * xpdf/gpdf-persist-stream.cc: store bonoboStream as BaseStream * xpdf/gpdf-marshal.list: add VOID:POINTER * xpdf/gpdf-links-canvas-layer.cc, xpdf/gpdf-links-canvas-layer.h: new class, links are grouped in such layers * xpdf/gpdf-link-canvas-item.cc, xpdf/gpdf-link-canvas-item.h: new class, representing links in the GPdfView * xpdf/Makefile.am: move away from $common_sources to convenience libraries, add gpdf-link-canvas-item.{cc,h}, gpdf-links-canvas-layer.{cc,h} * xpdf/BonoboStream.cc (bfread, bfseek): fix debug messages
* add GMutex (not used yet)Martin Kretzschmar2003-05-031-0/+2
| | | | | | | | | | | | | | | | | | | | * xpdf/gpdf-g-switch.h: add GMutex (not used yet) * shell/gpdf.c (gpdf_window_new): s/gtk_type_new/g_object_new/, use construction time properties (gw_setup_window): kill (replaced by constr. time props) (gpdf_window_construct): don't call gw_setup_window (gw_add_control_to_ui, gpdf_window_open): more simplifications due to BonoboWidget (gw_activate_control): ditto -> kill (gw_control_load_pdf, bonobo_stream_for_uri): extract the latter from the former (gw_setup_local_contents, gw_setup_toplevel_ui) (gw_setup_recent_menu, gw_setup_recent_toolitem): slot and ui_component moved to priv * shell/gpdf-window.h (struct _GPdfWindow): move away remaining public fields
* make static (gpdf_properties_display_class_init): install disposeMartin Kretzschmar2003-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/pdf-properties-display.c (gpdf_gtk_label_make_bold): make static (gpdf_properties_display_class_init): install dispose implementation * xpdf/pdf-info-dict-util.cc (pdf_doc_process_properties): format file size with %ld, not %d * xpdf/page-control.c: #include stdlib.h for strtol * xpdf/gpdf-view.cc (canonical_multiple_of_90): return statement was missing, I wonder why it worked (gpdf_view_key_press_event): silence warning (gpdf_view_key_press_event): ditto * xpdf/GPOutputDev.cc (initBase14Fonts): use guint as array index * xpdf/BonoboStream.cc (bfseek): silence warning * shell/gpdf.c (open_request_logger): don't define if not debugging * shell/gpdf-uri-input.h: add missing prototypes * shell/gpdf-uri-input.c (gpdf_uri_input_open_uri_list): add missing return type * xpdf/Makefile.am, shell/Makefile.am, configure.in: use maximum compiler warnings
* (CLEANFILES): rm GNOME_PDF.server.in on clean, not on distclean (fixesMartin Kretzschmar2003-04-231-2/+4
| | | | Bug #111404)
* (ui_DATA): no need for bonobo-application-x-pdf-ui.xml.Martin Kretzschmar2003-04-031-1/+0
|
* addMartin Kretzschmar2003-04-021-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gpdf.applications: add * Makefile.am install gpdf.applications * gpdf.keys.in: update. * goo/Makefile.am, shell/Makefile.am, xpdf/Makefile.am: add top_srcdir to include path for aconf2.h. * goo/Makefile.am, xpdf/Makefile.am: rename libgoo.a to libGoo.a for consistency with Xpdf, don't install this library; makefile.w32 is no more. * README: added note that this does not describe the GNOME version. * Makefile.am: don't distribute README.CVS, ANNOUNCE, makefile.w32, distribute aconf2.h. * CHANGES: added reference to ChangeLog and NEWS. * AUTHORS, NEWS: updated. * configure.in: add bugzilla url to AC_INIT. * xpdf/gpdf-view.cc, xpdf/gpdf-persist-stream.cc, xpdf/gpdf-control.cc, xpdf/GPOutputDev.cc: consistently wrap debug messages.
* Merge with Xpdf 2.02 and make it buildMartin Kretzschmar2003-04-0185-1008/+1691
|
* Import of Xpdf 2.02 for mergeMartin Kretzschmar2003-04-0126-346/+675
|
* updateMartin Kretzschmar2003-03-3119-898/+2253
| | | | | | | | | | | | | | | | | | | | | | | | * ANNOUNCE, CHANGES, README, aconf-win32.h: update * xpdf/CharCodeToUnicode.cc, xpdf/Decrypt.cc, xpdf/FTFont.cc, xpdf/FTFont.h, xpdf/FontEncodingTables.cc, xpdf/Gfx.cc, xpdf/GfxFont.cc, xpdf/GfxState.cc, xpdf/GfxState.h, xpdf/GlobalParams.cc, xpdf/GlobalParams.h, xpdf/Link.cc, xpdf/NameToUnicodeTable.h, xpdf/Stream.cc, xpdf/TextOutputDev.cc, xpdf/TextOutputDev.h, xpdf/XOutputDev.cc, xpdf/config.h, xpdf/pdftotext.cc, xpdf/xpdf.cc, xpdf/Outline.cc, xpdf/XPDFApp.cc, xpdf/XPDFApp.h, xpdf/XPDFCore.cc, xpdf/XPDFCore.h, xpdf/XPDFViewer.cc, xpdf/XPDFViewer.h: update. * goo/gfile.cc: update. * goo/Makefile.am: use GMutex.h * doc/pdffonts.1, doc/pdffonts.cat, doc/pdfimages.1, doc/pdfimages.cat, doc/pdfinfo.1, doc/pdfinfo.cat, doc/pdftopbm.1, doc/pdftopbm.cat, doc/pdftops.1, doc/pdftops.cat, doc/pdftotext.1, doc/pdftotext.cat, doc/pdftotext.hlp, doc/xpdf.1, doc/xpdf.cat, doc/xpdf.hlp, doc/xpdfrc.5, doc/xpdfrc.cat, doc/xpdfrc.hlp: update
* Import of Xpdf 2.01 for mergeMartin Kretzschmar2003-03-318-46/+72
|
* kill traces of ltk, incorporate new sourcesMartin Kretzschmar2003-03-3160-5409/+3578
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/Makefile.am: kill traces of ltk, incorporate new sources * Makefile.am, configure.in: don't build the ltk subdir * ANNOUNCE, CHANGES, ChangeLog, README, aconf-dj.h, aconf-win32.h, dj_make.bat, ms_make.bat, vms_make.com: update * xpdf/LTKOutputDev.cc, xpdf/LTKOutputDev.h, xpdf/postscript.xbm, xpdf/xpdf-flip.ltk, xpdf/xpdf-ltk.h, xpdf/xpdf-top.ltk, xpdf/xpdf.ltk: remove. * xpdf/Annot.cc, xpdf/Annot.h, xpdf/Array.cc, xpdf/Array.h, xpdf/BuiltinFont.cc, xpdf/BuiltinFont.h, xpdf/BuiltinFontTables.cc, xpdf/CMap.cc, xpdf/CMap.h, xpdf/Catalog.cc, xpdf/Catalog.h, xpdf/CharCodeToUnicode.cc, xpdf/CharCodeToUnicode.h, xpdf/Decrypt.cc, xpdf/Decrypt.h, xpdf/Dict.cc, xpdf/Dict.h, xpdf/Error.cc, xpdf/Error.h, xpdf/FTFont.cc, xpdf/FTFont.h, xpdf/FontFile.cc, xpdf/FontFile.h, xpdf/Function.cc, xpdf/Function.h, xpdf/Gfx.cc, xpdf/Gfx.h, xpdf/GfxFont.cc, xpdf/GfxFont.h, xpdf/GfxState.cc, xpdf/GfxState.h, xpdf/GlobalParams.cc, xpdf/GlobalParams.h, xpdf/ImageOutputDev.cc, xpdf/ImageOutputDev.h, xpdf/Lexer.cc, xpdf/Lexer.h, xpdf/Link.cc, xpdf/Link.h, xpdf/NameToCharCode.cc, xpdf/NameToCharCode.h, xpdf/NameToUnicodeTable.h, xpdf/Object.cc, xpdf/Object.h, xpdf/OutputDev.cc, xpdf/OutputDev.h, xpdf/PBMOutputDev.cc, xpdf/PBMOutputDev.h, xpdf/PDFDoc.cc, xpdf/PDFDoc.h, xpdf/PSOutputDev.cc, xpdf/PSOutputDev.h, xpdf/PSTokenizer.cc, xpdf/PSTokenizer.h, xpdf/Page.cc, xpdf/Page.h, xpdf/Parser.cc, xpdf/Parser.h, xpdf/SFont.cc, xpdf/SFont.h, xpdf/Stream.cc, xpdf/Stream.h, xpdf/T1Font.cc, xpdf/T1Font.h, xpdf/TTFont.cc, xpdf/TTFont.h, xpdf/TextOutputDev.cc, xpdf/TextOutputDev.h, xpdf/UnicodeMap.cc, xpdf/UnicodeMap.h, xpdf/XOutputDev.cc, xpdf/XOutputDev.h, xpdf/XRef.cc, xpdf/XRef.h, xpdf/config.h, xpdf/pdffonts.cc, xpdf/pdfimages.cc, xpdf/pdfinfo.cc, xpdf/pdftopbm.cc, xpdf/pdftops.cc, xpdf/pdftotext.cc, xpdf/vms_make.com, xpdf/xpdf.cc: update. * goo/GHash.cc, goo/GHash.h, goo/GList.cc, goo/GList.h, goo/GString.cc, goo/GString.h: mostly Mac OS X gcc fixage. * doc/pdffonts.1, doc/pdffonts.cat, doc/pdffonts.hlp, doc/pdfimages.1, doc/pdfimages.cat, doc/pdfimages.hlp, doc/pdfinfo.1, doc/pdfinfo.cat, doc/pdfinfo.hlp, doc/pdftopbm.1, doc/pdftopbm.cat, doc/pdftopbm.hlp, doc/pdftops.1, doc/pdftops.cat, doc/pdftops.hlp, doc/pdftotext.1, doc/pdftotext.cat, doc/pdftotext.hlp, doc/xpdf.1, doc/xpdf.cat, doc/xpdf.hlp, doc/xpdfrc.5, doc/xpdfrc.cat, doc/xpdfrc.hlp: update docs.
* Import of Xpdf 2.00 for mergeMartin Kretzschmar2003-03-3133-385/+791
|
* Initial revisionMartin Kretzschmar2003-03-3127-0/+10446
|
* remove, they are neither in Xpdf 1.01 nor necessary for GPdfMartin Kretzschmar2003-03-314-887/+0
|
* Import of Xpdf 1.01 in preparation of 2.0x importsMartin Kretzschmar2003-03-312-12/+2
|
* extract common pdf properties code:Martin Kretzschmar2003-03-031-0/+2
| | | | | | | | | | | | | * xpdf/gpdf-control.cc, xpdf/nautilus-pdf-property-page.cc: extract common pdf properties code: * xpdf/pdf-info-dict-util.cc, xpdf/pdf-info-dict-util.h: the common code. * xpdf/Makefile.am: compile pdf-info-dict-util.{cc,h}. * xpdf/gpdf-control.cc (verb_FileProperties_cb): make the dialog transient for the control's parent.
* new class, just what the name says, uses GnomeVFSStream for loadingMartin Kretzschmar2003-03-023-5/+188
| | | | | | | | | | | | | | | | | | | | | | * xpdf/nautilus-pdf-property-page.cc, xpdf/nautilus-pdf-property-page.h: new class, just what the name says, uses GnomeVFSStream for loading PDFDocs. * xpdf/GnomeVFSStream.cc, xpdf/GnomeVFSStream.h: BaseStream implementation based on (synchronous) gnome-vfs calls. * xpdf/BonoboStream.cc, xpdf/BonoboStream.h: coding style fixage, include only what's needed. * xpdf/Makefile.am (gnome_pdf_viewer_SOURCES): also compile GnomeVFSStream.{cc,h}, nautilus-pdf-property-page.{cc,h} * xpdf/GNOME_PDF.server.in.in: add stanza for the Property Page. * xpdf/bonobo-application-x-pdf.cc: clean up a bit (gpdf_factory): now we produce the Property Page, too. * xpdf/gpdf-control.cc: include time.h for strftime, mktime.
* get glade file from its installed location. Martin, repeat after me: IMartin Kretzschmar2003-02-261-2/+5
| | | | | | | | | | | | | | | | | | | 2003-02-26 Martin Kretzschmar <m_kretzschmar@gmx.net> * xpdf/pdf-properties-display.c (gpdf_properties_display_setup_glade): get glade file from its installed location. Martin, repeat after me: I Will Test The Installed Program. * xpdf/Makefile.am: Added the Glade file to the dist. (Originally by Ross, thanks) 2003-02-26 Ross Burton <ross@burtonini.com> * gpdf.desktop: Fix so that it validates. * Makefile.am: Install the .desktop file into the correct folder. Also remove intltool-*, which are generated.
* new widget: table with labels displaying properties of PDFsMartin Kretzschmar2003-02-235-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/pdf-properties-display.c, xpdf/pdf-properties-display.h, xpdf/gpdf-properties-dialog.glade: new widget: table with labels displaying properties of PDFs * xpdf/gpdf-control.cc (has_unicode_marker) (utf16_big_endian_to_utf8, info_dict_get_string) (info_dict_get_date, gpdf_control_process_string_property) (gpdf_control_process_date_property) (gpdf_control_process_properties) (gpdf_control_properties_dialog_response_cb) (verb_FileProperties_cb): new: a PDF properties command * xpdf/Makefile.am: build pdf-properties-display.[ch], install glade file * xpdf/.cvsignore: ignore gpdf-properties-dialog.gladep * xpdf/gpdf-persist-stream.h, xpdf/gpdf-persist-stream.cc (gpdf_persist_stream_get_length): new function * xpdf/gpdf-control-ui.xml: add FileProperties command and menu item inside a "File Items Placeholder" * shell/gpdf-window-ui.xml: add "File Items Placeholder" * configure.in: check for libglade-2.0 * Makefile.am (EXTRA_DIST): don't dist gpdf.mime * xpdf/PDFDoc.cc, xpdf/Function.cc, xpdf/FontFile.cc, goo/parseargs.c: call atof only in the "C" locale
* Applied a patch to fix buffer overflow (CVE:Martin Kretzschmar2003-02-201-0/+10
| | | | | CAN-2002-1384, Redhat: RHSA-2003:037-09, Debian: DSA-222) Reminder by Michael
* new. register gpdf-zoom-fit-width stock icon with a GtkIconFactoryMartin Kretzschmar2003-02-151-0/+2
| | | | | | | | | | | | | | | | | | * xpdf/gpdf-stock-icons.h, xpdf/gpdf-stock-icons.c: new. register gpdf-zoom-fit-width stock icon with a GtkIconFactory * xpdf/fitwidth.png: redone in 24x24pix instead of 26x26, based on gtk's zoom-out stock icon and the original fitwidth.png * xpdf/gpdf-control.cc (gc_set_ui_container): s/gc_set_ui_pixbufs/ gc_ui_set_pixbufs/ (gc_ui_set_pixbufs): rewrite to use stock icon machinery, let it do the correct scaling * xpdf/bonobo-application-x-pdf.cc (main): init our stock icons * xpdf/Makefile.am (gnome_pdf_viewer_SOURCES): add gpdf-stock-icons.[ch]
* change (disabled) font embedding codeMartin Kretzschmar2003-02-152-3/+19
| | | | | | | | | | | | | | | | | | | | | | | * xpdf/GPOutputDev.cc (getFontFaceEmbedded): change (disabled) font embedding code * shell/gpdf.c (gw_setup_window): set window title * xpdf/GNOME_PDF.server.in.in, shell/gpdf.c: s/Gnome/GNOME/ in strings * xpdf/page-control.c, xpdf/gpdf-view.cc, xpdf/gpdf-persist-stream.cc: use our own marshallers * configure.in, xpdf/Makefile.am, xpdf/gpdf-marshal.list: check for and use glib-genmarshal * xpdf/.cvsignore: ignore generated marshallers * xpdf/Makefile.am: clean up server.in, server files * Makefile.am, gpdf.mime: remove gpdf.mime, application/pdf is provided by gnome-vfs.mime
* page number entry widget (for the toolbar)Martin Kretzschmar2003-02-101-1/+3
| | | | | | | | | | | | | | | | | | | * xpdf/page-control.c, xpdf/page-control.h: page number entry widget (for the toolbar) * xpdf/gpdf-control.cc (gc_page_changed_cb) (gc_ui_add_page_control, gc_setup_page_control): add a page-control to the toolbar (currently displays page number only) (gc_set_ui_pixbufs): extracted from gc_set_ui_container (gc_setup_view_widgets): renamed from gc_setup_widgets * xpdf/gpdf-view.cc, xpdf/gpdf-view.h: add a page_changed signal, wrap g_signal_emit calls for improved readability * xpdf/Makefile.am (gnome_pdf_viewer_SOURCES): add page-control.c, page-control.h * xpdf/gpdf-control-ui.xml: add placeholder for page-control
* fix a comment that prevented definition ofMartin Kretzschmar2003-02-041-1/+1
| | | | | gnome_pdf_viewer_LDADD Patch by Benjamin Dauvergne <feanor@tol-eressea.org>
* disable font embedding hack introduced on 2002-12-09 to fix build withMartin Kretzschmar2003-01-241-2/+6
| | | | current, extra-clean gnome-print
* copy from ggv.Martin Kretzschmar2002-12-096-893/+3
| | | | | | | | | | | * fitwidth.png: copy from ggv. * xpdf/Makefile.am, xpdf/gpdf-control-ui.xml, xpdf/gpdf-control.cc (gc_set_ui_container): use it. * stock-zoom-fit-tall.xpm, stock-zoom-fit-wide.xpm, stock-zoom-fit.xpm, stock-zoom-in.xpm, stock-zoom-out.xpm: kill Gnome 1 style pixmaps.
* :startDoc, setPrintContext): hand through to the font mapMartin Kretzschmar2002-12-091-0/+2
| | | | | | | | | | | | | | | | | | | | | * xpdf/GPOutputDev.cc (GPOutputDev::startDoc, setPrintContext): hand through to the font map (getStreamContents): adapted from glib (getFontFaceEmbedded): new, uses experimental gpdf_gnome_print_add_font (getFontFace): use getFontFaceEmbedded for fonts with embedded font files * xpdf/GPOutputDev.h: update declarations, (GPOFontMap::startDoc, setPrintContext): implemented inline * xpdf/gpdf-view.cc (gpdf_view_set_pdf_doc): call startDoc * xpdf/gpdf-gnome-font.h, xpdf/gpdf-gnome-font.c: new files; hackish implementation of gnome_print_add_font * xpdf/Makefile.am (gnome_pdf_viewer_SOURCES): add gpdf-gnome-font.[hc]
* report gpdf_view's changed zoom level to bonobo zoomableMartin Kretzschmar2002-11-101-5/+5
| | | | | | | | | | | | * xpdf/gpdf-control.cc (gc_zoom_changed_cb): report gpdf_view's changed zoom level to bonobo zoomable (gc_setup_widgets): install zoom_changed handler * xpdf/gpdf-view.cc (gpdf_view_class_init): install zoom_changed signal (gpdf_view_zoom): emit zoom_changed signal * xpdf/gpdf-view.h (GPdfViewClass): add zoom_changed signal slot
* remove all references to old PdfView class (preferred_zoom_levels,Martin Kretzschmar2002-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | * xpdf/gpdf-control.cc: remove all references to old PdfView class (preferred_zoom_levels, preferred_zoom_level_names): add more zoom levels (gc_zoom_level_from_index): kill (gpdf_control_zoom_in, gpdf_control_zoom_out) (gpdf_control_zoom_fit_width, gpdf_control_zoom_fit) (gpdf_control_zoom_default, gc_zoomable_set_zoom_level_cb): rewrite using GPdfView methods * xpdf/gpdf-view.cc (gpdf_view_zoom_in, gpdf_view_zoom_fit) (gpdf_view_zoom_fit_width): implement * xpdf/gpdf-view.h: add zoom function prototypes * xpdf/bonobo-application-x-pdf.cc (main): * shell/gpdf.c (main): s/PACKAGE/GETTEXT_PACKAGE/ in *textdomain functions * xpdf/Makefile.am, goo/Makefile.am: fix distcheck
* xpdf page numbering is not zero-based!Martin Kretzschmar2002-11-091-0/+6
| | | | | | | | | | | | | | | | | * xpdf/gpdf-view.cc (gpdf_view_key_press_event): xpdf page numbering is not zero-based! * xpdf/GfxState.cc (GfxDeviceCMYKColorSpace::getRGB): special case cmyk k-only colors * xpdf/GPOutputDev.h: declare drawImage * xpdf/GPOutputDev.cc (getFontFace): forgot to rename one font_name to gfont_name; cleanup whitespace in the source (drawImage): implement. (Does not render output on GnomePrintPreview older than 2002-06-14) * shell/gpdf.c (gw_control_load_pdf): s|file://|file:|
* add field for GPdfView (gc_setup_widgets, gc_set_pdf_cb,Martin Kretzschmar2002-10-313-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/gpdf-control.cc (_GpdfControlPrivate): add field for GPdfView (gc_setup_widgets, gc_set_pdf_cb, verb_GoPageLast_cb) (verb_GoPageFirst_cb, verb_GoPageNext_cb, verb_GoPagePrev_cb): use GPdfView instead of PdfView * xpdf/gpdf-view.cc, xpdf/gpdf-view.h: widget for for GPOutputDev to draw on. Using GnomePrintPreview. * xpdf/GPOutputDev.cc, xpdf/GPOutputDev.h: new Gnome Print Output Device class, strokes and fills look (surprisingly) quite okay, font and text handling is throw-away code * xpdf/gpdf-util.h (BEGIN_C_DECLS, END_C_DECLS): remove macros, use those from glib (GPDF_BOILERPLATE, GPDF_CLASS_BOILERPLATE, GPDF_REGISTER_TYPE): macros from bonobo-macros.h and gnome-macros.h compatible with c++ type system rules * xpdf/OutputDev.h: declare class Object * xpdf/Gfx.h: include Object.h * configure.in: check for libgnomeprint(ui)-2.0
* add GNOME_PDF.server, GNOME_PDF.server.inMartin Kretzschmar2002-10-125-112/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xpdf/.cvsignore: add GNOME_PDF.server, GNOME_PDF.server.in * xpdf/pdf-view.cc: don't #include bonobo_application_x_pdf.h, update for new GObject, GSignal, Bonobo signatures (setup_pixmap): don't use double buffering * xpdf/gtkgesture.h: s/BEGIN_GNOME_DECLS/G_BEGIN_DECLS/ * xpdf/gpdf-persist-stream.h, xpdf/gpdf-control.h, pdf-view.h (#includes): update, use gpdf-g-switch.h, s/BEGIN_GNOME_DECLS/G_BEGIN_DECLS/ * xpdf/gpdf-persist-stream.cc (#includes): update (load_pdf_from_stream): Bonobo_Unknown_ref our stream (delete_pdf_doc_full): unref our stream (all around) update for new GObject, GSignal, Bonobo signatures (gpdf_persist_stream_new, gpdf_persist_stream_construct): take iid parameter to be passed on to bonobo_persist_stream_construct * xpdf/gpdf-embeddable-view.cc: don't include bonobo-application-x-pdf.h * xpdf/gpdf-control.cc: PARENT_TYPE is BONOBO_TYPE_CONTROL; update for new GObject, GtkWidget, Bonobo signatures * xpdf/gpdf-control-ui.xml: use gtk-stock-pixmaps * xpdf/bonobo-application-x-pdf.cc (#includes): use gpdf-g-switch.h, update (gpdf_factory): don't create embeddable, gpdf_persist_stream_new takes iid parameter (init_gpdf_factory, init_corba, init_bonobo): kill (main): no need to init gdk_rgb; use BONOBO_FACTORY_INIT, bonobo_generic_factory_main * xpdf/Makefile.am (INCLUDES, LDADD): update (bin_PROGRAMS): move gnome-pdf-viewer to libexec_PROGRAMS (gnome_pdf_viewer_SOURCES): nobody needs bonobo-application-x-pdf.h, don't build embeddable stuff (oafdir, oaf_DATA): kill (server_in_files, serverdir): add, do libexec sed job on .server.in.in file, add @INTLTOOL_SERVER_RULE@ (uidir): s/gnome/gnome-2.0/ * xpdf/GOutputDev.cc (#includes): use gpdf-g-switch.h (GOutputDev::GOutputDev): get size and depth of pixmap with gdk_drawable_get_foo background color to white (all around): gdk_region_foo now destructively update their first argument, use gdk_rgb to find colors (drawImageMask): don't gdk_image_new_bitmap * xpdf/gpdf-g-switch.h: new file, include it when switching between goo and glib headers * xpdf/GNOME_PDF.server.in.in: factory is in @LIBEXECDIR@ s|GNOME/GenericFactory|Bonobo/GenericFactory|, make it translatable, kill embeddable stanza * xpdf/GNOME_PDF.oafinfo: remove * xpdf/BonoboStream.cc: s/Bonobo_Stream_SEEK_SET/Bonobo_Stream_SeekSet/ et al. (see libbonobo/ChangeLog#2002-03-31) * shell/gpdf.c (#includes): use G2 headers (main): copy from eog (struct _Component): kill (was embeddable code) (USE_CONTROL): kill #define, kill all code surrounded by #if !USE_CONTROL (i.e. embeddable code) (all around): add Corba_Environment argument where it's needed now (gw_control_load_pdf): s/BonoboStream \*stream/Bonobo_Stream stream/. get the stream using monikers, unref it later (gw_drag_data_received): use uri handling code from gnome-vfs (verb_HelpAbout_cb): update for new gnome_about_new (verb_DebugDumpXml_cb): kill (gw_destroy): may be called more than once, so update assertions (gw_finalize): is a GObject method now, chain up to parent (class_init): update for GObject methods (gw_setup_window): blend of bonobo_window_construct and old gw_setup_geometry (gw_setup_geometry): kill (gw_setup_toplevel_ui): use BonoboUIContainer from BonoboWindow (gpdf_window_construct): use gw_setup_window, not bonobo_window_construct, not gw_setup_geometry * shell/gpdf-window.h: s/BEGIN_GNOME_DECLS/G_BEGIN_DECLS/, kill struct _Component decl (was used for embeddable) * shell/gpdf-window-ui.xml: kill DebugDumpXml verb * shell/Makefile.am: update INCLUDES, LD_ADD; (gpdf_SOURCES): add missing gpdf-window.h (uidir): s/gnome/gnome-2.0/ * configure.in: clean it a bit; set version to 0.100 (version was at 0.90.1 for ever and I don't want to call it 1.01.1, this is not 1.something quality code); use GNOME2 macros; (i18n): update according to G2 porting guide (gnome-lib-checks): use PKG_CHECK * autogen.sh: PKG_NAME="gpdf:", USE_GNOME2_MACROS * .cvsignore: add intltool-... files