Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
Commit message (Collapse)AuthorAgeFilesLines
* Assigned OpenDocument presenation MIME type to the Impress backend. AddedWouter Bolsterlee2006-10-081-8/+16
| | | | | | | | | | | 2006-10-08 Wouter Bolsterlee <wbolster@gnome.org> * backend/ev-document-factory.c: * configure.ac: Assigned OpenDocument presenation MIME type to the Impress backend. Added some missing (but harmless) #ifdefs in the document factory as well to make things consistent again. Fixes bug #360658.
* Reduce relocations. Bug #360616.Christian Persch2006-10-089-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-10-08 Christian Persch <chpe@cvs.gnome.org> * backend/ev-async-renderer.c: (ev_async_renderer_get_type): * backend/ev-document-find.c: (ev_document_find_get_type): * backend/ev-document-fonts.c: (ev_document_fonts_get_type): * backend/ev-document-links.c: (ev_document_links_get_type): * backend/ev-document-security.c: (ev_document_security_get_type): * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_type): * backend/ev-document.c: (ev_document_get_type): * backend/ev-ps-exporter.c: (ev_ps_exporter_get_type): * backend/ev-selection.c: (ev_selection_get_type): * cut-n-paste/recent-files/egg-recent-model.c: (egg_recent_model_get_type): * cut-n-paste/recent-files/egg-recent-view-uimanager.c: (egg_recent_view_uimanager_get_type): * cut-n-paste/recent-files/egg-recent-view.c: (egg_recent_view_get_type): * cut-n-paste/toolbar-editor/egg-editable-toolbar.c: (egg_editable_toolbar_get_type): * cut-n-paste/toolbar-editor/egg-toolbar-editor.c: (egg_toolbar_editor_get_type): * cut-n-paste/toolbar-editor/egg-toolbars-model.c: (egg_toolbars_model_get_type): * cut-n-paste/toolbar-editor/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type): * cut-n-paste/zoom-control/ephy-zoom-action.c: (ephy_zoom_action_get_type): * cut-n-paste/zoom-control/ephy-zoom-control.c: (ephy_zoom_control_get_type): * impress/r_back.c: (_imp_fill_back): * properties/ev-properties-main.c: (ev_properties_plugin_register_type): * shell/ev-sidebar-page.c: (ev_sidebar_page_get_type): * shell/ev-view-accessible.c: (ev_view_accessible_get_type), (ev_view_accessible_factory_get_type): Reduce relocations. Bug #360616.
* Load document even if extension is wrong.Nickolay V. Shmyrev2006-10-081-13/+11
| | | | | | | | | 2006-10-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * backend/ev-document-factory.c: (ev_document_factory_get_document): Load document even if extension is wrong.
* Fix crash when opening a pdf with password protection.Carlos Garcia Campos2006-08-211-14/+23
| | | | | | 2006-08-21 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-document-factory.c: (ev_document_factory_get_document): Fix crash when opening a pdf with password protection.
* More correct handling of document loading. Fixes bug #349043.Nickolay V. Shmyrev2006-08-171-6/+27
| | | | | | | | | | | 2006-08-17 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * backend/ev-document-factory.c: (ev_document_factory_get_document): * tiff/tiff-document.c: (tiff_document_finalize): More correct handling of document loading. Fixes bug #349043.
* Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfsCarlos Garcia Campos2006-08-151-2/+1
| | | | | | | 2006-08-14 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-attachment.c: (ev_attachment_save): Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfs >= 2.9.3 and it's not really needed. Fixes bug #351493
* New backend to support impress slides. Fixes bug #30867.Bastien Nocera2006-07-103-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-07-11 Bastien Nocera <hadess@hadess.net> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: (ev_document_factory_add_filters): * backend/ev-document-factory.h: * configure.ac: * impress/.cvsignore: * impress/Makefile.am: * impress/common.h: * impress/document.c: (_imp_load_xml), (imp_open), (imp_nr_pages), (imp_get_page), (imp_next_page), (imp_prev_page), (imp_get_page_no), (imp_get_page_name), (imp_get_xml), (imp_close): * impress/f_oasis.c: (render_object), (render_page), (get_geometry), (_imp_oasis_load): * impress/f_oo13.c: (render_object), (render_page), (get_geometry), (_imp_oo13_load): * impress/iksemel.c: (iks_malloc), (iks_free), (iks_set_mem_funcs), (iks_strdup), (iks_strcat), (iks_strcmp), (iks_strcasecmp), (iks_strncmp), (iks_strncasecmp), (iks_strlen), (iks_escape), (iks_unescape), (find_space), (iks_stack_new), (iks_stack_alloc), (iks_stack_strdup), (iks_stack_strcat), (iks_stack_stat), (iks_stack_delete), (iks_sax_new), (iks_sax_extend), (iks_parser_stack), (iks_user_data), (iks_nr_bytes), (iks_nr_lines), (stack_init), (stack_expand), (sax_core), (iks_parse), (iks_parser_reset), (iks_parser_delete), (iks_new), (iks_new_within), (iks_insert), (iks_insert_cdata), (iks_insert_attrib), (iks_insert_node), (iks_hide), (iks_delete), (iks_next), (iks_next_tag), (iks_prev), (iks_prev_tag), (iks_parent), (iks_root), (iks_child), (iks_first_tag), (iks_attrib), (iks_find), (iks_find_cdata), (iks_find_attrib), (iks_find_with_attrib), (iks_stack), (iks_type), (iks_name), (iks_cdata), (iks_cdata_size), (iks_has_children), (iks_has_attribs), (escape_size), (my_strcat), (escape), (iks_string), (iks_copy_within), (iks_copy), (tagHook), (cdataHook), (deleteHook), (iks_dom_new), (iks_set_size_hint), (iks_tree), (iks_load), (iks_save): * impress/iksemel.h: * impress/imposter.h: * impress/impress-document.c: (G_DEFINE_TYPE_WITH_CODE), (imp_render_draw_bezier_real), (imp_render_get_size), (imp_render_set_fg_color), (imp_render_draw_line), (imp_render_draw_rect), (imp_render_draw_polygon), (imp_render_draw_arc), (imp_render_draw_bezier), (imp_render_open_image), (imp_render_get_image_size), (imp_render_scale_image), (imp_render_draw_image), (imp_render_close_image), (imp_render_markup), (imp_render_get_text_size), (imp_render_draw_text), (impress_document_load), (impress_document_save), (impress_document_get_n_pages), (impress_document_get_page_size), (imp_render_get_from_drawable), (impress_document_render_pixbuf), (impress_document_finalize), (impress_document_class_init), (impress_document_can_get_text), (impress_document_get_info), (impress_document_document_iface_init), (impress_document_thumbnails_get_thumbnail), (impress_document_thumbnails_get_dimensions), (impress_document_document_thumbnails_iface_init), (impress_document_init): * impress/impress-document.h: * impress/internal.h: * impress/r_back.c: (_imp_fill_back): * impress/r_draw.c: (_imp_draw_rect), (_imp_draw_line_end), (_imp_draw_image), (_imp_tile_image): * impress/r_geometry.c: (r_parse_color), (r_get_color), (fg_color), (r_get_x), (r_get_y), (r_get_angle), (r_get_viewbox), (r_polygon), (r_polyline): * impress/r_gradient.c: (poly_rotate), (r_draw_gradient_simple), (r_draw_gradient_complex), (r_draw_gradient): * impress/r_style.c: (get_style), (r_get_style), (get_style_x), (r_get_bullet): * impress/r_text.c: (add_line), (add_span), (calc_sizes), (calc_pos), (_imp_draw_layout), (text_span), (text_p), (text_list), (r_text): * impress/render.c: (imp_create_context), (imp_context_set_page), (imp_context_set_step), (imp_render), (imp_delete_context): * impress/render.h: * impress/zip.c: (zip_error), (find_cd), (get_long), (get_word), (list_files), (zip_open), (zip_close), (find_file), (seek_file), (zip_load_xml), (zip_get_size), (zip_load): * impress/zip.h: * shell/ev-utils.c: New backend to support impress slides. Fixes bug #30867.
* Use consistent quoting style. Fix for the bug #320285.Nickolay V. Shmyrev2006-05-272-5/+5
| | | | | | | | | | | | | | | | | * backend/ev-attachment.c: (ev_attachment_save), (ev_attachment_launch_app), (ev_attachment_open): * backend/ev-document-factory.c: (get_document_from_uri): * cut-n-paste/recent-files/egg-recent-view-uimanager.c: (egg_recent_view_uimanager_set_list): * ps/ps-document.c: (check_filecompressed), (document_load), (ps_document_load): * shell/ev-metadata-manager.c: (load_values): * shell/ev-password.c: (ev_password_dialog_set_property): * shell/ev-view.c: (tip_from_link): * shell/ev-window.c: (file_save_dialog_response_cb), (ev_window_print_dialog_response_cb): Use consistent quoting style. Fix for the bug #320285.
* Fix page-label command line option. Bug #342070.Nickolay V. Shmyrev2006-05-272-1/+42
| | | | | | | | | | | | | | | * backend/ev-link-dest.c: (ev_link_dest_type_get_type), (ev_link_dest_get_page_label), (ev_link_dest_get_property), (ev_link_dest_set_property), (ev_link_dest_finalize), (ev_link_dest_class_init), (ev_link_dest_new_named), (ev_link_dest_new_page_label): * backend/ev-link-dest.h: * shell/ev-application.c: (ev_application_open_uri): * shell/ev-view.c: (goto_dest): * shell/ev-window.c: * shell/ev-window.h: Fix page-label command line option. Bug #342070.
* Add support for Named Action linksCarlos Garcia Campos2006-05-042-1/+45
| | | | | | | | | | 2006-05-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-link-action.[ch]: * pdf/ev-poppler.cc: (ev_link_from_action): * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_handle_link), (tip_from_action_named): * shell/ev-window.c: (do_action_named), (view_external_link_cb): Add support for Named Action links
* Rework links system, it adds support for remote links now and it makesCarlos Garcia Campos2006-05-0211-522/+1010
| | | | | | | | | | | | | | | | | | | | | | | | 2006-05-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/Makefile.am: * backend/ev-document-links.[ch]: * backend/ev-document.[ch]: * backend/ev-link-action.[ch]: * backend/ev-link-dest.[ch]: * backend/ev-link.[ch]: * pdf/ev-poppler.cc: (pdf_document_find_link_dest), (ev_link_dest_from_dest), (ev_link_from_action), (build_tree): * shell/ev-page-action.c: (build_new_tree_cb): * shell/ev-sidebar-links.c: (get_page_from_dest), (print_section_cb), (links_page_num_func), (update_page_callback): * shell/ev-view.[ch]: (ev_view_goto_dest), (ev_view_handle_link), (tip_from_link): * shell/ev-jobs.c: * shell/ev-window.[ch]: (ev_window_open_uri), (sidebar_links_link_activated_cb), (ev_view_popup_cmd_open_link): * shell/ev-application.[ch]: (ev_application_open_window), (ev_application_open_uri): Rework links system, it adds support for remote links now and it makes easier to add new kinds of actions and destinations. Fixes bug #317292
* Allow multiple selection of attachmentsCarlos Garcia Campos2006-04-301-4/+6
| | | | | | | | 2006-04-29 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-attachment.c: * shell/ev-attachment-bar.c: * shell/ev-window.c: Allow multiple selection of attachments
* Do not load the document twice when there isn't errorsCarlos Garcia Campos2006-04-061-2/+4
| | | | | | 2006-04-06 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-document-factory.c: Do not load the document twice when there isn't errors
* Fix a crash when there isn't a default application to open an attachmentCarlos Garcia Campos2006-04-041-3/+15
| | | | | | | 2006-04-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-attachment.c: Fix a crash when there isn't a default application to open an attachment
* Fallback even if extension is unknownNickolay V. Shmyrev2006-04-031-5/+3
|
* Added missing files.Carlos Garcia Campos2006-04-032-0/+467
| | | | | | | 2006-04-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ev-attachment.[ch]: * shell/ev-attachment-bar.[ch]: Added missing files.
* Add support for PDF attachments. Fixes bug #325143Nickolay V. Shmyrev2006-04-033-0/+29
| | | | | | | | | | | | | | | | * backend/Makefile.am: * data/evince-ui.xml: * backend/ev-attachment.[ch]: * backend/ev-document.[ch]: (ev_document_has_attachments), (ev_document_get_attachments): * pdf/ev-poppler.cc: (pdf_document_has_attachments), (attachment_save_to_buffer), (pdf_document_get_attachments), (pdf_document_document_iface_init): * shell/Makefile.am: * shell/ev-attachment-bar.[ch]: * shell/ev-window.c: Add support for PDF attachments. Fixes bug #325143
* Cleanup mime type detection on document load. Fix for the bug #336448.Nickolay V. Shmyrev2006-04-022-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backend/ev-document-factory.c: (get_document_from_uri), (ev_document_factory_get_document): * backend/ev-document-factory.h: * properties/ev-properties-main.c: (ev_properties_get_pages): * shell/Makefile.am: * shell/ev-job-queue.c: (handle_job), (search_for_jobs_unlocked), (no_jobs_available_unlocked), (ev_job_queue_init), (find_queue), (ev_job_queue_remove_job): * shell/ev-job-queue.h: * shell/ev-job-xfer.c: * shell/ev-job-xfer.h: * shell/ev-jobs.c: (ev_job_fonts_init), (ev_job_fonts_class_init), (ev_job_fonts_new), (ev_job_fonts_run), (ev_job_xfer_init), (ev_job_xfer_dispose), (ev_job_xfer_class_init), (ev_job_xfer_new), (ev_job_xfer_run): * shell/ev-jobs.h: * shell/ev-window.c: (ev_window_is_empty), (password_dialog_response), (ev_window_clear_xfer_job), (ev_window_xfer_job_cb), (ev_window_open_uri), (ev_window_cmd_focus_page_selector), (ev_window_cmd_scroll_forward), (ev_window_cmd_scroll_backward), (ev_window_cmd_continuous), (ev_window_cmd_dual), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (ev_window_dispose): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): * Cleanup mime type detection on document load. Fix for the bug #336448.
* Rework factory functions so they are placed now in a single fileNickolay V. Shmyrev2006-03-302-26/+195
| | | | | | | | | | | | | | | | | | | | * backend/ev-document-factory.c: (ev_document_factory_get_from_mime), (ev_document_factory_get_all_mime_types), (get_document_from_uri), (ev_document_factory_get_document), (file_filter_add_mime_list_and_free), (ev_document_factory_add_filters): * backend/ev-document-factory.h: * properties/ev-properties-main.c: (ev_properties_get_pages): * shell/Makefile.am: * shell/ev-application.c: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework factory functions so they are placed now in a single file ev-document-factory.c
* Clairfy what page the toolbar page number applies to. Fix for the bugNickolay V. Shmyrev2006-02-242-3/+6
| | | | | | | | | * backend/ev-document-misc.c: (ev_document_misc_paint_one_page): * backend/ev-document-misc.h: * shell/ev-view.c: (draw_one_page): Clairfy what page the toolbar page number applies to. Fix for the bug #328102.
* Fix crash when saving pixbuf.Jani Monoses2006-01-171-0/+4
| | | | | | | | 2006-01-18 Jani Monoses <jani.monoses@gmail.com> * backend/ev-document-factory.c: (ev_document_factory_get_backend): Fix crash when saving pixbuf.
* Don't add pixbuf mime types if pixbuf backend is disabled.Nickolay V. Shmyrev2006-01-061-15/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backend/ev-document-factory.c: (gdk_pixbuf_mime_type_list), (mime_type_supported_by_gdk_pixbuf), (ev_document_factory_get_mime_types), (ev_document_factory_get_all_mime_types): Don't add pixbuf mime types if pixbuf backend is disabled. * shell/ev-application.c: (ev_application_get_uri_window): Fix for the bug 325815 - unhandled MIME type message doesn't appear a second time. * shell/ev-document-types.c: (ev_document_types_add_filters): * shell/ev-window.c: (page_changed_cb), (ev_window_setup_document), (password_dialog_response), (ev_window_popup_password_dialog), (ev_window_load_job_cb), (ev_window_sidebar_position_change_cb), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (save_sizing_mode), (ev_window_zoom_changed_cb), (ev_window_continuous_changed_cb), (ev_window_rotation_changed_cb), (ev_window_dual_mode_changed_cb), (ev_window_sidebar_current_page_changed_cb), (ev_window_sidebar_visibility_changed_cb), (ev_window_dispose), (window_state_event_cb), (window_configure_event_cb): Cleanup additional uris holded by EvWindow.
* Fix for the bug #325067 with more intelligent selection of current link inNickolay V. Shmyrev2005-12-281-2/+2
| | | | | | | | | | | | | | | | | * backend/ev-link.c: (ev_link_get_page), (ev_link_init): * shell/ev-page-action.c: (build_new_tree_cb): * shell/ev-sidebar-links.c: (links_page_num_func), (update_page_callback_foreach), (update_page_callback): * shell/ev-view.c: (scroll_to_current_page): Fix for the bug #325067 with more intelligent selection of current link in sidebar. Make sidebar handle links of FITR-like type more correctly. * dvi/pixbuf-device.c: (dvi_pixbuf_draw_rule), (dvi_pixbuf_put_pixel): Fix memory consumtion with disabled alpha channel.
* Included option in configure to make ps backend compilation optional withEduardo Lima2005-12-212-1/+9
| | | | | | | | | | | | 2005-12-21 Eduardo Lima <eduardo.lima@indt.org.br> * Makefile.am: * configure.ac: * backend/Makefile.am: * backend/ev-document-factory.c: * shell/ev-document-types.c: Included option in configure to make ps backend compilation optional with --disable-ps.
* Comics mime types are added to shared-mime-info CVS. Now we don't need toNickolay V. Shmyrev2005-12-201-2/+2
| | | | | | | | | | | * backend/ev-document-factory.c: * comics/Makefile.am: * comics/comics-document.c: (comics_document_load): * comics/ev-cbr-mime.xml: * configure.ac: Comics mime types are added to shared-mime-info CVS. Now we don't need to install our own mime types.
* Small build fixNickolay V. Shmyrev2005-11-141-1/+1
|
* New CBR/CBZ backend for comic books.Nickolay V. Shmyrev2005-11-143-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-14 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: * backend/ev-document-factory.h: * comics/Makefile.am: * comics/comics-document.c: (G_DEFINE_TYPE_WITH_CODE), (comics_document_load), (comics_document_save), (comics_document_get_n_pages), (comics_document_get_page_size), (get_page_size_area_prepared_cb), (comics_document_render_pixbuf) (render_pixbuf_size_prepared_cb), (comics_document_finalize), (comics_document_class_init), (comics_document_can_get_text), (comics_document_get_info), (comics_document_document_iface_init), (comics_document_init), (get_supported_image_extensions), (comics_document_thumbnails_get_geometry), (comics_document_thumbnails_get_thumbnail), (comics_document_thumbnails_get_dimensions), (comics_document_document_thumbnails_iface_init), (extract_argv): * comics/comics-document.h: * comics/ev-cbr-mime.xml: * configure.ac: * po/POTFILES.in: * shell/ev-application.c: (ev_application_register_service): * shell/ev-document-types.c: (ev_document_types_add_filters): * thumbnailer/Makefile.am: * thumbnailer/evince-thumbnailer-comics.schemas.in: New CBR/CBZ backend for comic books.
* Implement launch links. Delegate external link opening to the window.Marco Pesenti Gritti2005-09-262-2/+78
| | | | | | | | | | | | | | | | | 2005-09-26 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_get_filename), (ev_link_get_params), (ev_link_get_property), (ev_link_set_property), (ev_window_dispose), (ev_link_class_init), (ev_link_new_launch): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (ev_view_goto_link), (ev_view_class_init): * shell/ev-window.c: (launch_link), (view_external_link_cb), (ev_window_init): Implement launch links. Delegate external link opening to the window.
* Implement fitr linksMarco Pesenti Gritti2005-09-242-0/+82
| | | | | | | | | | | | | | 2005-09-24 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_get_bottom), (ev_link_get_right), (ev_link_get_property), (ev_link_set_property), (ev_link_class_init), (ev_link_new_page_fitv), (ev_link_new_page_fitr): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_fitr_link), (ev_view_goto_link): Implement fitr links
* Implement FIT_HEIGHT mode (only for links). Implement FITH linksMarco Pesenti Gritti2005-09-242-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-09-24 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_new_page_fith), (ev_link_new_page_fitv): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_fitv_link), (goto_fith_link), (ev_view_goto_link), (ev_view_size_request_continuous_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (ev_view_size_allocate), (zoom_for_size_fit_height), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (ev_view_set_zoom_for_size), (ev_sizing_mode_get_type): * shell/ev-view.h: * shell/ev-window.c: (ev_window_sizing_mode_changed_cb): Implement FIT_HEIGHT mode (only for links). Implement FITH links
* Implement FIT and FITH linksMarco Pesenti Gritti2005-09-192-0/+33
| | | | | | | | | | | | | 2005-09-19 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_new_page_xyz), (ev_link_new_page_fit), (ev_link_new_page_fith): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_fith_link), (ev_view_goto_link): Implement FIT and FITH links
* Allow negative doubles in left/top propertiesMarco Pesenti Gritti2005-09-161-2/+2
| | | | | | | | 2005-09-16 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_class_init): Allow negative doubles in left/top properties
* Fix some bugs with xyz links, respect zoomMarco Pesenti Gritti2005-09-081-1/+1
| | | | | | | | | | 2005-09-08 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_new_page_xyz): * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_xyz_link), (ev_view_goto_link): Fix some bugs with xyz links, respect zoom
* Implement xyz links, still not functional. Links are a total mess, willMarco Pesenti Gritti2005-09-073-69/+126
| | | | | | | | | | | | | | | | | 2005-09-07 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.h: * backend/ev-link.c: (ev_link_type_get_type), (ev_link_get_top), (ev_link_get_left), (ev_link_get_zoom), (ev_link_get_property), (ev_link_set_property), (ev_window_dispose), (ev_link_class_init), (ev_link_new_page), (ev_link_new_page_xyz): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (doc_point_to_view_point), (scroll_to_xyz_link), (go_to_link), (tip_from_link): Implement xyz links, still not functional. Links are a total mess, will need to refactor and bugfix a lot :(
* Redo rotation (again). prepare for 0.4.0Jonathan Blandford2005-08-252-18/+34
| | | | | | | | | | | | | | | | | | | | | | | | Thu Aug 25 02:32:32 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-misc.c: (ev_document_misc_get_thumbnail_frame): * backend/ev-document-misc.h: * configure.ac: * pdf/ev-poppler.cc: * shell/Makefile.am: * shell/ev-sidebar-thumbnails.c: (add_range), (ev_sidebar_thumbnails_set_loading_icon), (ev_sidebar_thumbnails_refresh), (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar-thumbnails.h: * shell/ev-view.c: (ev_view_motion_notify_event), (ev_view_set_property), (ev_view_get_property), (ev_view_class_init), (ev_view_set_rotation): * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right), (ev_window_rotation_changed_cb), (ev_window_init): * tiff/tiff-document.c: (tiff_document_thumbnails_get_thumbnail): Redo rotation (again). prepare for 0.4.0
* Fix orientation in the postscript documentMarco Pesenti Gritti2005-08-242-4/+7
| | | | | | | | | | | | | | 2005-08-24 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-async-renderer.c: (ev_async_renderer_render_pixbuf): * backend/ev-async-renderer.h: * ps/ps-document.c: (ps_document_init), (setup_pixmap), (setup_page), (ps_document_get_page_size), (ps_async_renderer_render_pixbuf): * ps/ps-document.h: * shell/ev-jobs.c: (ev_job_render_run): Fix orientation in the postscript document
* Change selection color on focus in and focus out events. Also, poppler nowKristian Høgsberg2005-08-062-6/+6
| | | | | | | | | | | | | | | | | | 2005-08-06 Kristian Høgsberg <krh@redhat.com> * backend/ev-selection.c: (ev_selection_render_selection): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_new): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (get_selection_colors), (add_job_if_needed), (ev_pixbuf_cache_get_selection_pixbuf): * shell/ev-view.c: (ev_view_focus_in), (ev_view_focus_out), (ev_view_class_init): Change selection color on focus in and focus out events. Also, poppler now uses GdkColor for specifying the selection colors, so drop some awkward conversion code.
* Clean up selection to be much smoother!Jonathan Blandford2005-08-062-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 6 01:12:44 2005 Jonathan Blandford <jrb@redhat.com> * NOTES: * backend/ev-selection.c: (ev_selection_render_selection): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_dispose), (ev_job_render_new), (ev_job_render_run): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (dispose_cache_job_info), (ev_pixbuf_cache_new), (job_finished_cb), (add_job_if_needed), (convert_gdk_color_to_uint), (ev_pixbuf_cache_get_text_mapping), (ev_pixbuf_cache_style_changed), (ev_pixbuf_cache_get_selection_pixbuf), (ev_pixbuf_cache_set_selection_list), (ev_pixbuf_cache_get_selection_list): * shell/ev-pixbuf-cache.h: * shell/ev-utils.c: (ev_print_region_contents): * shell/ev-utils.h: * shell/ev-view.c: (ev_view_queue_draw_page), (selection_update_idle_cb), (ev_view_motion_notify_event), (ev_view_style_set), (draw_one_page), (ev_view_class_init), (setup_caches), (ev_view_find_next), (merge_selection_region), (selection_free): * shell/ev-window.c: (ev_window_update_fullscreen_popup): Clean up selection to be much smoother!
* Use rotation rather than orientation. It's easier and enough for ourMarco Pesenti Gritti2005-07-296-35/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-29 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: * backend/ev-document.c: * backend/ev-document.h: * backend/ev-render-context.c: (ev_render_context_new), (ev_render_context_set_rotation): * backend/ev-render-context.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_document_iface_init): * shell/ev-jobs.c: (ev_job_thumbnail_new), (ev_job_thumbnail_run): * shell/ev-jobs.h: * shell/ev-page-cache.c: (build_height_to_page), (ev_page_cache_new), (ev_page_cache_get_size), (ev_page_cache_get_max_width), (ev_page_cache_get_max_height), (ev_page_cache_get_height_to_page): * shell/ev-page-cache.h: * shell/ev-pixbuf-cache.c: (check_job_size_and_unref), (add_job_if_needed), (ev_pixbuf_cache_add_jobs_if_needed), (ev_pixbuf_cache_set_page_range), (new_selection_pixbuf_needed), (ev_pixbuf_cache_get_selection_pixbuf): * shell/ev-pixbuf-cache.h: * shell/ev-print-job.c: (idle_print_handler): * shell/ev-sidebar-thumbnails.c: (add_range): * shell/ev-view.c: (view_update_range_and_current_page), (get_page_y_offset), (get_page_extents), (ev_view_size_request_continuous_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (draw_one_page), (ev_view_set_rotation), (ev_view_rotate_right), (ev_view_rotate_left), (ev_view_zoom_for_size_presentation), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (compute_new_selection_text), (ev_view_select_all): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): * tiff/tiff-document.c: (tiff_document_render_pixbuf), (tiff_document_document_iface_init), (tiff_document_thumbnails_get_thumbnail): Use rotation rather than orientation. It's easier and enough for our needs.
* *** empty log message ***Marco Pesenti Gritti2005-07-291-2/+0
|
* Really make use of the orientation bit of the render context. Use theMarco Pesenti Gritti2005-07-295-23/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-29 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: * backend/ev-document.c: * backend/ev-document.h: * backend/ev-ps-exporter.c: (ev_ps_exporter_do_page): * backend/ev-ps-exporter.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_document_iface_init), (ps_document_ps_export_do_page): * shell/ev-jobs.c: (ev_job_thumbnail_new), (ev_job_thumbnail_run): * shell/ev-jobs.h: * shell/ev-page-cache.c: (ev_page_cache_get_size), (ev_page_cache_get): * shell/ev-page-cache.h: * shell/ev-pixbuf-cache.c: (check_job_size_and_unref), (add_job_if_needed), (ev_pixbuf_cache_add_jobs_if_needed), (ev_pixbuf_cache_set_page_range), (new_selection_pixbuf_needed): * shell/ev-pixbuf-cache.h: * shell/ev-print-job.c: (idle_print_handler): * shell/ev-sidebar-thumbnails.c: (add_range): * shell/ev-view.c: (view_update_range_and_current_page), (get_page_extents), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (draw_one_page), (clear_caches), (ev_view_set_orientation), (ev_view_rotate_right), (ev_view_rotate_left), (ev_view_zoom_for_size_presentation), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (compute_new_selection_text), (ev_view_select_all): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): * tiff/tiff-document.c: (tiff_document_get_page_size), (tiff_document_get_orientation), (rotate_pixbuf), (tiff_document_render_pixbuf), (tiff_document_document_iface_init), (tiff_document_thumbnails_get_thumbnail), (tiff_document_ps_export_do_page), (tiff_document_init): Really make use of the orientation bit of the render context. Use the render context in a few more places in the backend API. This regress orientation, but now it's done right. Will try to fix it up asap...
* add paper_width, paper_height, and duplex parameters to ::begin.Martin Kretzschmar2005-07-272-4/+11
| | | | | | | | | | | | | * backend/ev-ps-exporter.h: add paper_width, paper_height, and duplex parameters to ::begin. * tiff/tiff-document.c (tiff_document_ps_export_begin): * shell/ev-print-job.c (idle_print_handler): * ps/ps-document.c (ps_document_ps_export_begin): * pdf/ev-poppler.cc (pdf_document_ps_exporter_begin): * backend/ev-ps-exporter.c (ev_ps_exporter_begin): update implementations. Poppler backend needs poppler cvs. Rest has unchanged behavior.
* Bug #311280Martin Kretzschmar2005-07-241-0/+1
| | | | | | | | | | | | | | | * pdf/ev-poppler.cc (font_type_to_string): new, returns user readable name for PopplerFontTypes (pdf_document_fonts_fill_model): add font type to the detail column * backend/ev-document-fonts.h: added EV_DOCUMENT_FONTS_COLUMN_DETAILS. * shell/ev-properties-fonts.c (font_cell_data_func): glue together font name and font details, add a little markup. (ev_properties_fonts_init): use the new cell data func, specify ypad property for the cell renderer. (ev_properties_fonts_set_document): add the details column.
* (mime_type_supported_by_gdk_pixbuf): #ifdef this away to fix anMartin Kretzschmar2005-07-221-1/+2
| | | | unused-function warning.
* Allow to enable/disable the pixbuf backend. Default to off for now. If weMarco Pesenti Gritti2005-07-112-2/+7
| | | | | | | | | | | | | | | | | | | 2005-07-11 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: (ev_document_type_get_from_mime): * configure.ac: * shell/ev-document-types.c: (ev_document_types_add_filters): Allow to enable/disable the pixbuf backend. Default to off for now. If we want it enabled we should really put mime types in the desktop, implement properties etc. * properties/evince-properties.c: Initialize error to NULL. Check error is not NULL before freeing.
* Do not try to create the object if type is invalid.Marco Pesenti Gritti2005-07-081-1/+1
| | | | | | | | | | 2005-07-08 Marco Pesenti Gritti <marco@gnome.org> * backend/ev-document-factory.c: (ev_document_factory_get_document): Do not try to create the object if type is invalid.
* Make frontends depend on just libev. Rework and group CFLAGS/LIBSMarco Pesenti Gritti2005-07-071-14/+6
| | | | | | | | | | | | | | | | | | | | | | | 2005-07-07 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * backend/Makefile.am: * configure.ac: * cut-n-paste/recent-files/Makefile.am: * cut-n-paste/toolbar-editor/Makefile.am: * cut-n-paste/zoom-control/Makefile.am: * lib/Makefile.am: * pdf/Makefile.am: * pixbuf/Makefile.am: * properties/Makefile.am: * ps/Makefile.am: * shell/Makefile.am: * thumbnailer/Makefile.am: * tiff/Makefile.am: Make frontends depend on just libev. Rework and group CFLAGS/LIBS definitions. Cleanups.
* *** empty log message ***Marco Pesenti Gritti2005-07-071-3/+4
|
* This should solve the circular dep without requiring dir reorg!Marco Pesenti Gritti2005-07-061-0/+24
| | | | | | | | | | | | | | | | | | 2005-07-07 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * backend/Makefile.am: * properties/Makefile.am: * shell/Makefile.am: * thumbnailer/Makefile.am: This should solve the circular dep without requiring dir reorg! * shell/ev-window.c: (setup_view_from_metadata): Never restore window size/position when the window is already visible.
* Rework document types managing to avoid code duplication and actuallyMarco Pesenti Gritti2005-07-053-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-05 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-document-factory.c: (mime_type_supported_by_gdk_pixbuf), (ev_document_type_get_from_mime), (ev_document_factory_get_document), (ev_document_factory_get_backend), (ev_document_factory_get_mime_types), (ev_document_factory_get_all_mime_types): * backend/ev-document-factory.h: * shell/Makefile.am: * shell/ev-document-types.c: (get_document_from_uri), (ev_document_types_get_document), (file_filter_add_mime_list_and_free), (ev_document_types_add_filters): * shell/ev-document-types.h: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-properties-dialog.c: (ev_properties_dialog_set_document): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework document types managing to avoid code duplication and actually abstract from backend implementations. Also provide a minimal factory api that can be used by thumbnailer/properties.