Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
Commit message (Collapse)AuthorAgeFilesLines
* Bump requirements to poppler 0.6 and drop all ifdefs used. Double andCarlos Garcia Campos2007-09-031-15/+1
| | | | | | | | | | | | | 2007-09-03 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_selection_get_selected_text), (pdf_selection_get_selection_region), (pdf_selection_get_selection_map), (ev_form_field_from_poppler_field): Bump requirements to poppler 0.6 and drop all ifdefs used. Double and triple click selections are enabled again now. svn path=/trunk/; revision=2661
* Ignore outline items without a title. Fixes bug #453913.Carlos Garcia Campos2007-09-031-1/+4
| | | | | | | | 2007-09-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (build_tree): Ignore outline items without a title. Fixes bug #453913. svn path=/trunk/; revision=2654
* Temporarily disable double and triple selections since it depends onCarlos Garcia Campos2007-09-021-0/+6
| | | | | | | | | | | | | 2007-09-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_selection_get_selected_text), (pdf_selection_get_selection_region), (pdf_selection_get_selection_map): Temporarily disable double and triple selections since it depends on poppler cvs head. It'll be enabled again as soon as poppler 0.6 is released and the update of the external dependency minimal version approved. svn path=/trunk/; revision=2652
* Actually fix printing regressions. Remove orientation from EvPrintContextCarlos Garcia Campos2007-09-011-59/+86
| | | | | | | | | | | | | 2007-09-01 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page): * libdocument/ev-file-exporter.h: * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_dialog_response_cb): Actually fix printing regressions. Remove orientation from EvPrintContext since it's redundant. svn path=/trunk/; revision=2649
* Add support for double and triple click selections.Carlos Garcia Campos2007-08-318-110/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_document_iface_init): * backend/impress/impress-document.c: (impress_document_document_iface_init): * backend/ps/ps-document.c: (ps_document_document_iface_init): * backend/djvu/djvu-document.c: (djvu_document_document_iface_init), (djvu_selection_get_selected_text), (djvu_selection_iface_init): * backend/tiff/tiff-document.c: (tiff_document_document_iface_init): * backend/pixbuf/pixbuf-document.c: (pixbuf_document_document_iface_init): * backend/comics/comics-document.c: (comics_document_document_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_document_iface_init), (pdf_selection_render_selection), (pdf_selection_get_selected_text), (pdf_selection_get_selection_region), (pdf_selection_get_selection_map), (pdf_selection_iface_init): * libdocument/ev-selection.[ch]: (ev_selection_get_selected_text), (ev_selection_get_selection_region), (ev_selection_get_selection_map): * libdocument/ev-document.[ch]: * shell/ev-pixbuf-cache.[ch]: (add_job), (ev_pixbuf_cache_get_selection_surface), (update_job_selection): * shell/ev-view-private.h: * shell/ev-jobs.[ch]: (ev_job_render_new), (ev_job_render_new), (ev_job_render_run): * shell/ev-window.c: (ev_window_setup_action_sensitivity): * shell/ev-view.c: (start_selection_for_event), (ev_view_button_press_event), (ev_view_drag_data_get), (ev_view_drag_data_received), (ev_view_button_release_event), (compute_new_selection_text), (compute_selections), (ev_view_select_all), (get_selected_text), (ev_view_copy), (ev_view_primary_get_cb): Add support for double and triple click selections. svn path=/trunk/; revision=2648
* Create always a portrait cairo surface and rotate when needed forCarlos Garcia Campos2007-08-271-14/+38
| | | | | | | | | | | | | 2007-08-27 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_print_context_free), (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page): * shell/ev-jobs.c: (ev_job_print_run): * shell/ev-window.c: (ev_window_print_dialog_response_cb): Create always a portrait cairo surface and rotate when needed for landscape. It fixes printing problems in real printers. svn path=/trunk/; revision=2643
* Adjust number of pages per row according to page orientation when printingCarlos Garcia Campos2007-08-251-5/+17
| | | | | | | | | | | | | 2007-08-25 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin): * libdocument/ev-file-exporter.[ch]: (ev_file_exporter_get_capabilities): * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_dialog_response_cb): Adjust number of pages per row according to page orientation when printing 2 or 6 pages per sheet. svn path=/trunk/; revision=2641
* Use CAIRO_FORMAT_RGB24 instead of CAIRO_FORMAT_ARGB32 when creating pageCarlos Garcia Campos2007-08-233-3/+3
| | | | | | | | | | | | | | | 2007-08-24 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-document.c: (djvu_document_render): * backend/tiff/tiff-document.c: (tiff_document_render): * backend/pdf/ev-poppler.cc: (pdf_document_render): * libdocument/ev-document-misc.c: (ev_document_misc_surface_from_pixbuf), (ev_document_misc_surface_rotate_and_scale): Use CAIRO_FORMAT_RGB24 instead of CAIRO_FORMAT_ARGB32 when creating page surfaces. Fixes bug #453123. Thank you very much to Jeff Muizelaar <jeff@infidigm.net>. svn path=/trunk/; revision=2637
* Fix thumbnails rotation in pdf documents that include embedded thumbnails.Carlos Garcia Campos2007-08-171-1/+9
| | | | | | | | | | 2007-08-17 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_thumbnails_get_thumbnail): Fix thumbnails rotation in pdf documents that include embedded thumbnails. svn path=/trunk/; revision=2629
* Don't use #ifdef in macro expansion. Some compilers don't like that.Jens Granseuer2007-08-151-3/+26
| | | | | | | | | | | 2007-08-15 Jens Granseuer <jensgr@gmx.net> * backend/pdf/ev-poppler.cc: Don't use #ifdef in macro expansion. Some compilers don't like that. Closes bug #467042. svn path=/trunk/; revision=2626
* Fixes memory leak in djvu backend.Justin Blanchard2007-08-151-0/+3
| | | | | | | | | | | 2007-08-15 Justin Blanchard <justinb04@aim.com> * backend/djvu/djvu-document.c: (djvu_document_finalize): Fixes memory leak in djvu backend. svn path=/trunk/; revision=2625
* Allow printing multiple pages per sheet. Fixes bug #395573.Carlos Garcia Campos2007-07-291-32/+119
| | | | | | | | | | | | | | | | 2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_print_context_free), (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page), (pdf_document_file_exporter_get_capabilities): * libdocument/ev-file-exporter.h: * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_send), (ev_window_print_dialog_response_cb): Allow printing multiple pages per sheet. Fixes bug #395573. svn path=/trunk/; revision=2591
* Use capabilities to know which options should be offered by the printCarlos Garcia Campos2007-07-265-113/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-26 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_file_exporter_begin), (dvi_document_file_exporter_do_page), (dvi_document_file_exporter_get_capabilities), (dvi_document_file_exporter_iface_init): * backend/ps/ps-document.c: (ps_document_file_exporter_begin), (ps_document_file_exporter_do_page), (ps_document_file_exporter_get_capabilities), (ps_document_file_exporter_iface_init): * backend/djvu/djvu-document.c: (djvu_document_file_exporter_begin), (djvu_document_file_exporter_end), (djvu_document_file_exporter_get_capabilities), (djvu_document_file_exporter_iface_init): * backend/tiff/tiff-document.c: (tiff_document_file_exporter_begin), (tiff_document_file_exporter_get_capabilities), (tiff_document_document_file_exporter_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page), (pdf_document_file_exporter_get_capabilities), (pdf_document_file_exporter_iface_init): * libdocument/ev-file-exporter.[ch]: (ev_file_exporter_begin), (ev_file_exporter_get_capabilities): * shell/ev-print-job.c: (ev_print_job_use_print_dialog_settings), (idle_print_handler), (ev_print_job_print): * shell/ev-jobs.c: (ev_job_print_run): * shell/ev-window.c: (ev_window_print_send), (ev_window_print_range): Use capabilities to know which options should be offered by the print dialog depending on the document backend. svn path=/trunk/; revision=2580
* Get max length of text form fields.Carlos Garcia Campos2007-07-191-1/+4
| | | | | | | | | 2007-07-19 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): Get max length of text form fields. svn path=/trunk/; revision=2575
* Fix build with current poppler cvs head.Carlos Garcia Campos2007-07-191-3/+1
| | | | | | | | | | 2007-07-19 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): * libdocument/ev-form-field.h: * shell/ev-view.c: (ev_view_form_field_text_create_widget): Fix build with current poppler cvs head. svn path=/trunk/; revision=2574
* Merge evince-forms branch.Carlos Garcia Campos2007-07-081-1/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-08 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_document_get_crop_box), (ev_form_field_from_poppler_field), (pdf_document_forms_get_form_fields), (pdf_document_forms_form_field_text_get_text), (pdf_document_forms_form_field_text_set_text), (pdf_document_forms_form_field_button_set_state), (pdf_document_forms_form_field_button_get_state), (pdf_document_forms_form_field_choice_get_item), (pdf_document_forms_form_field_choice_get_n_items), (pdf_document_forms_form_field_choice_is_item_selected), (pdf_document_forms_form_field_choice_select_item), (pdf_document_forms_form_field_choice_toggle_item), (pdf_document_forms_form_field_choice_unselect_all), (pdf_document_forms_form_field_choice_set_text), (pdf_document_forms_form_field_choice_get_text), (pdf_document_document_forms_iface_init): * libdocument/Makefile.am: * libdocument/ev-form-field.[ch]: * libdocument/ev-document-forms.[ch]: * shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info), (move_one_job), (copy_job_to_job_info), (add_job_if_needed), (add_job), (ev_pixbuf_cache_reload_page), (ev_pixbuf_cache_get_form_field_mapping): * shell/ev-jobs.[ch]: (ev_job_render_new), (ev_job_render_run): * shell/ev-view-private.h: * shell/ev-view.[ch]: (ev_view_set_scroll_adjustments), (ev_view_handle_cursor_over_xy), (ev_view_get_form_field_at_location), (ev_view_forms_remove_widgets), (ev_view_form_field_destroy), (ev_view_form_field_button_create_widget), (ev_view_form_field_text_save), (ev_view_form_field_text_changed), (ev_view_form_field_text_create_widget), (ev_view_form_field_choice_save), (ev_view_form_field_choice_changed), (ev_view_form_field_choice_create_widget), (ev_view_handle_form_field), (ev_view_size_allocate), (ev_view_realize), (draw_end_presentation_page), (ev_view_button_press_event), (ev_view_remove_all), (ev_view_motion_notify_event), (ev_view_key_press_event), (ev_view_enter_notify_event), (highlight_find_results), (draw_loading_text), (draw_one_page), (ev_view_destroy), (ev_view_class_init), (page_changed_cb), (on_adjustment_value_changed), (ev_view_set_presentation), (merge_selection_region), (ev_view_set_cursor), (ev_view_reset_presentation_state): Merge evince-forms branch. svn path=/trunk/; revision=2560
* Make sure thumbnails width and height is not <= 0. Fixes a crash with someCarlos Garcia Campos2007-06-291-4/+4
| | | | | | | | | | 2007-06-29 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_thumbnails_get_dimensions): Make sure thumbnails width and height is not <= 0. Fixes a crash with some pdf documents which have really small pages. svn path=/trunk/; revision=2525
* PDF exporter for dvi documents. Fixes bug #441319.Alaska Subedi2007-06-171-1/+97
| | | | | | | | | | | | | | | | | 2007-06-17 Alaska Subedi <asubedi@gmail.com> * backend/dvi/dvi-document.c: (dvi_document_finalize), (dvi_document_file_exporter_format_supported), (dvi_document_file_exporter_begin), (dvi_document_file_exporter_do_page), (dvi_document_file_exporter_end), (dvi_document_file_exporter_iface_init), (dvi_document_init): PDF exporter for dvi documents. Fixes bug #441319. svn path=/trunk/; revision=2510
* Removed AddedCarlos Garcia Campos2007-06-177-357/+487
| | | | | | | | | | | | | | | | | 2007-06-17 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/Makefile.am: * backend/dvi/pixbuf-device.[ch]: Removed * backend/dvi/cairo-device.[ch]: Added * backend/dvi/mdvi-lib/dviread.c: (draw_shrink_rule): * backend/dvi/dvi-document.c: (dvi_document_load), (dvi_document_render), (dvi_document_finalize), (dvi_document_thumbnails_get_thumbnail), (parse_color), (dvi_document_do_color_special): * libdocument/ev-document-misc.[ch]: (ev_document_misc_pixbuf_from_surface): Port dvi backend to cairo and fix a problem with colors. svn path=/trunk/; revision=2506
* Fix rotation in djvu backend.Carlos Garcia Campos2007-06-131-9/+29
| | | | | | | | 2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-document.c: (djvu_document_render): Fix rotation in djvu backend. svn path=/trunk/; revision=2504
* Use cairo image surfaces instead of GDK pixbufs for drawing pages andCarlos Garcia Campos2007-06-138-112/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_render), (dvi_document_render_pixbuf), (dvi_document_document_iface_init): * backend/impress/impress-document.c: (imp_render_get_from_drawable), (impress_document_render_pixbuf), (impress_document_render), (impress_document_document_iface_init), (impress_document_thumbnails_get_thumbnail): * backend/djvu/djvu-document-private.h: * backend/djvu/djvu-document.c: (djvu_document_render), (djvu_document_finalize), (djvu_document_document_iface_init), (djvu_document_thumbnails_get_thumbnail), (djvu_document_init): * backend/tiff/tiff-document.c: (tiff_document_render), (tiff_document_render_pixbuf), (tiff_document_document_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_render), (pdf_document_render_pixbuf), (pdf_document_document_iface_init), (pdf_selection_render_selection): * backend/comics/comics-document.c: (comics_document_render_pixbuf), (comics_document_render), (comics_document_document_iface_init): * backend/pixbuf/pixbuf-document.c: (pixbuf_document_render), (pixbuf_document_document_iface_init): * libdocument/ev-document-misc.[ch]: (ev_document_misc_surface_from_pixbuf), (ev_document_misc_surface_rotate_and_scale): * libdocument/ev-document.[ch]: (ev_document_render): * libdocument/ev-selection.[ch]: (ev_selection_render_selection): * shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info), (move_one_job), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_get_surface), (new_selection_surface_needed), (clear_selection_if_needed), (ev_pixbuf_cache_style_changed), (ev_pixbuf_cache_get_selection_surface), (clear_job_selection): * shell/ev-jobs.[ch]: (ev_job_render_dispose), (render_finished_cb), (ev_job_render_run): * shell/ev-view.c: (draw_loading_text), (draw_one_page), (merge_selection_region): Use cairo image surfaces instead of GDK pixbufs for drawing pages and selections. svn path=/trunk/; revision=2499
* Bump requirements to poppler 0.5.9 and drop all ifdefs used.Carlos Garcia Campos2007-06-021-15/+2
| | | | | | | | | | 2007-06-02 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_document_images_get_images), (pdf_selection_render_selection), (pdf_document_get_page_duration): Bump requirements to poppler 0.5.9 and drop all ifdefs used. svn path=/trunk/; revision=2482
* Fix build with current poppler from cvs head.Carlos Garcia Campos2007-05-221-1/+10
| | | | | | | | | 2007-05-22 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_selection_render_selection): Fix build with current poppler from cvs head. svn path=/trunk/; revision=2473
* 2007-05-20 Marc Brockschmidt he+bugzilla.g@marcbrockschmidt.deNickolay V. Shmyrev2007-05-201-1/+1
| | | | | | | | | * backend/comics/Makefile.am: Fixes build with --without-libgnome. svn path=/trunk/; revision=2469
* Implemented printing with djvu. Bug #437998.Alaska Subedi2007-05-142-1/+85
| | | | | | | | | | | | | | | | | | 2007-05-14 Alaska Subedi <asubedi@gmail.com> * backend/djvu/djvu-document-private.h: * backend/djvu/djvu-document.c: (G_DEFINE_TYPE_WITH_CODE), (djvu_document_finalize), (djvu_document_file_exporter_format_supported), (djvu_document_file_exporter_begin), (djvu_document_file_exporter_do_page), (djvu_document_file_exporter_end), (djvu_document_file_exporter_iface_init), (djvu_document_init): Implemented printing with djvu. Bug #437998. svn path=/trunk/; revision=2458
* Fixes FIXME after freezeNickolay V. Shmyrev2007-05-141-2/+2
| | | | svn path=/trunk/; revision=2457
* Add missing ulong definition. Add missing headers. Fix compilation onCarlos Garcia Campos2007-05-142-0/+4
| | | | | | | | | | | 2007-05-14 Carlos Garcia Campos <carlosgc@gnome.org> * backend/impress/zip.c: Add missing ulong definition. * backend/ps/ps-interpreter.c: Add missing headers. Fix compilation on FreeBSD. Patch by Roy Marples. Fixes bug #438277. svn path=/trunk/; revision=2454
* Add missing call to parent class dispose method.Carlos Garcia Campos2007-05-141-0/+2
| | | | | | | | 2007-05-14 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_dispose): Add missing call to parent class dispose method. svn path=/trunk/; revision=2453
* Correctly quote symbols. Fixes crash in the bug #415370.Nickolay V. Shmyrev2007-05-091-2/+11
| | | | | | | | | | | | | 2007-05-10 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * backend/comics/comics-document.c: (comics_regex_quote), (extract_argv): Correctly quote symbols. Fixes crash in the bug #415370. svn path=/trunk/; revision=2446
* Use default resolution when it's not provided by document. Fixes bugCarlos Garcia Campos2007-04-081-15/+30
| | | | | | | | | | 2007-03-08 Carlos Garcia Campos <carlosgc@gnome.org> * backend/tiff/tiff-document.c: (tiff_document_get_resolution), (tiff_document_get_page_size), (tiff_document_render_pixbuf): Use default resolution when it's not provided by document. Fixes bug #408762. svn path=/trunk/; revision=2399
* Implement font color specials in the DVI backend. Fixes bug #303651.Ricardo Markiewicz2007-04-072-4/+111
| | | | | | | | | | 2007-04-07 Ricardo Markiewicz <rmarkie@fi.uba.ar> * backend/dvi/dvi-document.c: (dvi_document_class_init), (hsb2rgb), (dvi_document_do_color_special): * backend/dvi/mdvi-lib/special.c: (register_builtin_specials): Implement font color specials in the DVI backend. Fixes bug #303651. svn path=/trunk/; revision=2397
* Use an EvRenderContext for rendering thumbnails instead of a suggestedCarlos Garcia Campos2007-02-168-396/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-02-16 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_thumbnails_get_dimensions), (dvi_document_thumbnails_get_thumbnail): * backend/impress/impress-document.c: (impress_document_thumbnails_get_thumbnail), (impress_document_thumbnails_get_dimensions): * backend/ps/ps-document.c: (ps_document_thumbnails_get_thumbnail), (ps_document_thumbnails_get_dimensions): * backend/djvu/djvu-document.c: (djvu_document_thumbnails_get_dimensions), (djvu_document_thumbnails_get_thumbnail): * backend/tiff/tiff-document.c: (tiff_document_thumbnails_get_thumbnail), (tiff_document_thumbnails_get_dimensions): * backend/pdf/ev-poppler.cc: (make_thumbnail_for_page), (pdf_document_thumbnails_get_thumbnail), (pdf_document_thumbnails_get_dimensions): * backend/comics/comics-document.c: (comics_document_thumbnails_get_thumbnail), (comics_document_thumbnails_get_dimensions): * backend/pixbuf/pixbuf-document.c: (pixbuf_document_thumbnails_get_thumbnail), (pixbuf_document_thumbnails_get_dimensions): * libdocument/ev-document-thumbnails.[ch]: (ev_document_thumbnails_get_thumbnail), (ev_document_thumbnails_get_dimensions): * libdocument/ev-document-misc.[ch]: (ev_document_misc_get_thumbnail_frame): * shell/ev-jobs.[ch]: (ev_job_thumbnail_dispose), (ev_job_thumbnail_new), (ev_job_thumbnail_run): * shell/ev-sidebar-thumbnails.c: (get_scale_for_page), (add_range), (ev_sidebar_thumbnails_set_loading_icon), (refresh), (ev_sidebar_thumbnails_refresh): * shell/ev-window.c: (ev_window_setup_document): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Use an EvRenderContext for rendering thumbnails instead of a suggested width, so that different sized pages get sized proportionally. svn path=/trunk/; revision=2332
* Fix build on Mac. Fixes bug #392186. Patch by <ephraim_owns@hotmail.com>Carlos Garcia Campos2007-02-156-12/+11
| | | | | | | | | | | | | | 2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-text.h: * backend/djvu/djvu-document.c: * backend/djvu/djvu-text-page.c: * backend/djvu/djvu-links.c: * backend/djvu/djvu-text-page.h: * backend/djvu/djvu-text.c: Fix build on Mac. Fixes bug #392186. Patch by <ephraim_owns@hotmail.com> svn path=/trunk/; revision=2328
* Restore cairo context before rendering every page when printing a PDFCarlos Garcia Campos2007-02-151-0/+4
| | | | | | | | | 2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page): Restore cairo context before rendering every page when printing a PDF document into a PDF file. svn path=/trunk/; revision=2327
* Handle PostScript page orientation. Fixes bug #318568.Carlos Garcia Campos2007-02-132-5/+47
| | | | | | | | | | | 2007-02-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/gstypes.h: * backend/ps/ps-document.c: (ps_document_get_page_rotation), (ps_document_get_page_size), (ps_async_renderer_render_pixbuf), (ps_document_thumbnails_get_thumbnail): Handle PostScript page orientation. Fixes bug #318568. svn path=/trunk/; revision=2324
* Add support for thumbnails in ps backend. Fixes bug #164755.Carlos Garcia Campos2007-02-137-821/+1139
| | | | | | | | | | | | | | | | | | | 2007-02-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/Makefile.am: * backend/ps/ps-document.[ch]: (ps_document_init), (ps_document_dispose), (document_load), (ps_document_load), (save_document), (save_page_list), (ps_document_get_n_pages), (ps_document_get_page_size), (ps_document_get_info), (ps_interpreter_page_rendered), (ps_async_renderer_render_pixbuf), (ps_interpreter_thumbnail_rendered), (ps_document_render_thumbnail), (ps_document_thumbnails_get_thumbnail), (ps_document_thumbnails_get_dimensions), (ps_document_document_thumbnails_iface_init): * backend/ps/ps.[ch]: (psgetpagebox): * backend/ps/ps-interpreter.[ch]: Add support for thumbnails in ps backend. Fixes bug #164755. svn path=/trunk/; revision=2323
* Check return value of psscan before trying to use it. Fixes bug #372414.Tom Parker2007-02-111-38/+37
| | | | | | | | | 2007-02-11 Tom Parker <palfrey@tevp.net> * backend/ps/ps-document.c: (document_load): Check return value of psscan before trying to use it. Fixes bug #372414. svn path=/trunk/; revision=2314
* Check whether there are missing files in indirect multipage djvuCarlos Garcia Campos2007-02-101-4/+53
| | | | | | | | | | 2007-02-10 Carlos Garcia Campos <carlosgc@gnome.org> * po/POTFILES.in: * backend/djvu/djvu-document.c: (djvu_document_load): Check whether there are missing files in indirect multipage djvu documents. Fixes bug #361683. svn path=/trunk/; revision=2306
* Make sure g_markup_escape_text receives a valid utf-8 string. Fixes bugCarlos Garcia Campos2007-02-051-1/+43
| | | | | | | | | 2007-02-05 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-links.c: (str_to_utf8), (build_tree): Make sure g_markup_escape_text receives a valid utf-8 string. Fixes bug #373715. svn path=/trunk/; revision=2296
* Fix memory leak.Carlos Garcia Campos2007-02-051-1/+4
| | | | | | | | 2007-02-05 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/ps.c: (psscan): Fix memory leak. svn path=/trunk/; revision=2295
* Support for PDF, PS and EPS compressed files. Fixes bug #307087.Carlos Garcia Campos2007-02-031-110/+7
| | | | | | | | | | | | | | | | 2007-02-03 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/ps/ps-document.c: (ps_document_init), (ps_document_dispose), (ps_interpreter_start), (document_load), (save_document), (save_page_list): * libdocument/ev-file-helpers.[ch]: (ev_file_uncompress): * libdocument/ev-document-factory.c: (ev_document_factory_get_from_mime), (get_document_from_uri), (free_uncompressed_uri), (ev_document_factory_get_document): * shell/ev-window.c: (ev_window_cmd_file_open_copy_at_dest): Support for PDF, PS and EPS compressed files. Fixes bug #307087. svn path=/trunk/; revision=2291
* Handle ghostscript interpreter crashes.Carlos Garcia Campos2007-02-031-3/+16
| | | | | | | | | 2007-02-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/ps-document.c: (ps_interpreter_finished), (ps_interpreter_start), (ps_interpreter_failed): Handle ghostscript interpreter crashes. svn path=/trunk/; revision=2288
* Rework ps-document. Code cleanups, remove deprecated code.Carlos Garcia Campos2007-02-023-816/+781
| | | | | | | | | | | | | | | | | | 2007-02-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/Makefile.am: * backend/ps/ps-document.[ch]: (ps_section_free), (ps_document_init), (ps_document_dispose), (ps_document_class_init), (ps_interpreter_input), (ps_interpreter_output), (ps_interpreter_error), (setup_interpreter_env), (ps_interpreter_start), (ps_interpreter_stop), (ps_interpreter_failed), (ps_interpreter_is_ready), (check_filecompressed), (document_load), (ps_document_load), (ps_document_get_n_pages), (setup_page), (setup_pixmap), (ps_document_widget_event), (send_ps), (ps_document_next_page), (render_page): Rework ps-document. Code cleanups, remove deprecated code. svn path=/trunk/; revision=2284
* Implements another history variantNickolay V. Shmyrev2007-01-282-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * NOTES: * backend/djvu/djvu-links.c: (djvu_links_get_links_model): * backend/pdf/ev-poppler.cc: * libdocument/ev-document-links.h: * libdocument/ev-link.c: (ev_link_get_page): * libdocument/ev-link.h: * shell/ev-history.c: (ev_history_init), (ev_history_class_init), (ev_history_add_link): * shell/ev-history.h: * shell/ev-navigation-action.c: (activate_menu_item_cb), (new_history_menu_item), (build_menu): * shell/ev-page-cache.c: (ev_page_cache_set_current_page_history): * shell/ev-sidebar-links.c: (create_loading_model), (print_section_cb), (ev_sidebar_links_construct), (fill_page_labels), (update_page_callback_foreach), (update_page_callback), (job_finished_callback): * shell/ev-view.c: (ev_view_handle_link): * shell/ev-window.c: (ev_window_find_chapter), (ev_window_add_history), (view_handle_link_cb), (history_changed_cb): Implements another history variant svn path=/trunk/; revision=2264
* Correctly handle impress document errors. Fixes nautilus crash in propertyTom Parker2007-01-251-10/+27
| | | | | | | | | | | | | | 2007-01-25 Tom Parker <palfrey@tevp.net> * backend/impress/impress-document.c: (impress_document_load), (impress_document_finalize), (impress_document_init): * properties/ev-properties-main.c: (ev_properties_get_pages): Correctly handle impress document errors. Fixes nautilus crash in property page #370491. svn path=/trunk/; revision=2250
* Fix memory leaks in ps backend.Carlos Garcia Campos2007-01-231-0/+4
| | | | | | | | 2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/ps-document.c: (start_interpreter): Fix memory leaks in ps backend. svn path=/trunk/; revision=2246
* Do not acquire fontconfig lock in impress backend, since it is using theCarlos Garcia Campos2007-01-211-1/+4
| | | | | | | | | | 2007-01-21 Carlos Garcia Campos <carlosgc@gnome.org> * backend/impress/impress-document.c: (impress_document_render_pixbuf): Do not acquire fontconfig lock in impress backend, since it is using the main loop for rendering. svn path=/trunk/; revision=2242
* Format string is corrected, fixes bug #397129.Theppitak Karoonboonyanan2007-01-161-1/+2
| | | | | | | | | | | 2007-01-16 Theppitak Karoonboonyanan <thep@linux.thai.net> * backend/dvi/mdvi-lib/fontmap.c: (mdvi_load_fontmap): Format string is corrected, fixes bug #397129. svn path=/trunk/; revision=2228
* Reorganize source tree.Nickolay V. Shmyrev2007-01-08142-5019/+30375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * Makefile.am: * backend/Makefile.am: * backend/comics/Makefile.am: * backend/djvu/Makefile.am: * backend/dvi/Makefile.am: * backend/ev-async-renderer.c: * backend/ev-async-renderer.h: * backend/ev-attachment.c: * backend/ev-attachment.h: * backend/ev-backend-marshal.c: * backend/ev-document-factory.c: * backend/ev-document-factory.h: * backend/ev-document-find.c: * backend/ev-document-find.h: * backend/ev-document-fonts.c: * backend/ev-document-fonts.h: * backend/ev-document-images.c: * backend/ev-document-images.h: * backend/ev-document-info.h: * backend/ev-document-links.c: * backend/ev-document-links.h: * backend/ev-document-misc.c: * backend/ev-document-misc.h: * backend/ev-document-security.c: * backend/ev-document-security.h: * backend/ev-document-thumbnails.c: * backend/ev-document-thumbnails.h: * backend/ev-document-transition.c: * backend/ev-document-transition.h: * backend/ev-document.c: * backend/ev-document.h: * backend/ev-file-exporter.c: * backend/ev-file-exporter.h: * backend/ev-image.c: * backend/ev-image.h: * backend/ev-link-action.c: * backend/ev-link-action.h: * backend/ev-link-dest.c: * backend/ev-link-dest.h: * backend/ev-link.c: * backend/ev-link.h: * backend/ev-render-context.c: * backend/ev-render-context.h: * backend/ev-selection.c: * backend/ev-selection.h: * backend/impress/Makefile.am: * backend/pdf/Makefile.am: * backend/pixbuf/Makefile.am: * backend/ps/Makefile.am: * backend/ps/ps-document.c: (push_pixbuf), (interpreter_failed), (ps_document_widget_event), (setup_pixmap), (setup_page), (input), (start_interpreter), (stop_interpreter), (document_load), (ps_document_next_page), (render_page): * backend/tiff/Makefile.am: * comics/Makefile.am: * comics/comics-document.c: * comics/comics-document.h: * configure.ac: * cut-n-paste/zoom-control/ephy-zoom-control.c: * djvu/Makefile.am: * djvu/djvu-document-private.h: * djvu/djvu-document.c: * djvu/djvu-document.h: * djvu/djvu-links.c: * djvu/djvu-links.h: * djvu/djvu-text-page.c: * djvu/djvu-text-page.h: * djvu/djvu-text.c: * djvu/djvu-text.h: * dvi/Makefile.am: * dvi/dvi-document.c: * dvi/dvi-document.h: * dvi/fonts.c: * dvi/fonts.h: * dvi/mdvi-lib/Makefile.am: * dvi/mdvi-lib/afmparse.c: * dvi/mdvi-lib/afmparse.h: * dvi/mdvi-lib/bitmap.c: * dvi/mdvi-lib/bitmap.h: * dvi/mdvi-lib/color.c: * dvi/mdvi-lib/color.h: * dvi/mdvi-lib/common.c: * dvi/mdvi-lib/common.h: * dvi/mdvi-lib/defaults.h: * dvi/mdvi-lib/dvimisc.c: * dvi/mdvi-lib/dviopcodes.h: * dvi/mdvi-lib/dviread.c: * dvi/mdvi-lib/files.c: * dvi/mdvi-lib/font.c: * dvi/mdvi-lib/fontmap.c: * dvi/mdvi-lib/fontmap.h: * dvi/mdvi-lib/fontsrch.c: * dvi/mdvi-lib/gf.c: * dvi/mdvi-lib/hash.c: * dvi/mdvi-lib/hash.h: * dvi/mdvi-lib/list.c: * dvi/mdvi-lib/mdvi.h: * dvi/mdvi-lib/pagesel.c: * dvi/mdvi-lib/paper.c: * dvi/mdvi-lib/paper.h: * dvi/mdvi-lib/pk.c: * dvi/mdvi-lib/private.h: * dvi/mdvi-lib/setup.c: * dvi/mdvi-lib/sp-epsf.c: * dvi/mdvi-lib/special.c: * dvi/mdvi-lib/sysdeps.h: * dvi/mdvi-lib/t1.c: * dvi/mdvi-lib/tfm.c: * dvi/mdvi-lib/tfmfile.c: * dvi/mdvi-lib/tt.c: * dvi/mdvi-lib/util.c: * dvi/mdvi-lib/vf.c: * dvi/pixbuf-device.c: * dvi/pixbuf-device.h: * impress/Makefile.am: * impress/common.h: * impress/document.c: * impress/f_oasis.c: * impress/f_oo13.c: * impress/iksemel.c: * impress/iksemel.h: * impress/imposter.h: * impress/impress-document.c: * impress/impress-document.h: * impress/internal.h: * impress/r_back.c: * impress/r_draw.c: * impress/r_geometry.c: * impress/r_gradient.c: * impress/r_style.c: * impress/r_text.c: * impress/render.c: * impress/render.h: * impress/zip.c: * impress/zip.h: * lib/Makefile.am: * lib/ev-debug.c: * lib/ev-debug.h: * lib/ev-file-helpers.c: * lib/ev-file-helpers.h: * lib/ev-gui.c: * lib/ev-gui.h: * lib/ev-tooltip.c: * lib/ev-tooltip.h: * libdocument/Makefile.am: * libdocument/ev-file-helpers.c: * pdf/Makefile.am: * pdf/ev-poppler.cc: * pdf/ev-poppler.h: * pixbuf/Makefile.am: * pixbuf/pixbuf-document.c: * pixbuf/pixbuf-document.h: * properties/Makefile.am: * ps/Makefile.am: * ps/gsdefaults.c: * ps/gsdefaults.h: * ps/gsio.c: * ps/gsio.h: * ps/gstypes.h: * ps/ps-document.c: * ps/ps-document.h: * ps/ps.c: * ps/ps.h: * shell/Makefile.am: * shell/ev-application.h: * shell/ev-sidebar-links.c: * shell/ev-sidebar-links.h: * shell/ev-utils.c: (ev_gui_sanitise_popup_position), (ev_gui_menu_position_tree_selection): * shell/ev-utils.h: * shell/ev-view.c: (ev_view_finalize): * shell/ev-window.c: * shell/main.c: (main): * thumbnailer/Makefile.am: * tiff/Makefile.am: * tiff/tiff-document.c: * tiff/tiff-document.h: * tiff/tiff2ps.c: * tiff/tiff2ps.h: Reorganize source tree. svn path=/trunk/; revision=2197
* Do not include ev-poppler.h when pdf is disabled.Carlos Garcia Campos2007-01-081-1/+2
| | | | | | | | 2007-01-08 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-document-factory.c: Do not include ev-poppler.h when pdf is disabled. svn path=/trunk/; revision=2196