Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps/ps-document.c
Commit message (Collapse)AuthorAgeFilesLines
* Use rotation rather than orientation. It's easier and enough for ourMarco Pesenti Gritti2005-07-291-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Really make use of the orientation bit of the render context. Use theMarco Pesenti Gritti2005-07-291-26/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-1/+2
| | | | | | | | | | | | | * 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.
* Do not leak the target windowMarco Pesenti Gritti2005-07-081-6/+10
| | | | | | | | | | 2005-07-08 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_dispose), (ps_async_renderer_render_pixbuf): * ps/ps-document.h: Do not leak the target window
* remove the locale.h include again ;-). And kill the (bogus)Martin Kretzschmar2005-06-181-20/+6
| | | | setlocale/savelocale business.
* Include locale.h to fix buildNickolay V. Shmyrev2005-06-181-0/+4
| | | | | | | | | | | | * ps/ps-document.c: Include locale.h to fix build * shell/ev-sidebar.c: Remove unnecessary includes Thanks to jaap@haitsma.org (Jaap A. Haitsma)
* read "Creator:" comment, free creator field if necessary.Martin Kretzschmar2005-06-171-0/+5
| | | | | | | | | | * ps/ps.c (psscan, psfree): read "Creator:" comment, free creator field if necessary. * ps/ps.h: add creator field to document. * ps/ps-document.c (ps_document_get_info): set format to PostScript, set creator field.
* Add a get_orientation api. Improve set_orientation.Marco Pesenti Gritti2005-06-161-3/+30
| | | | | | | | | | | | | | | | | | | | | 2005-06-16 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.c: (ev_document_get_orientation): * backend/ev-document.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_orientation), (ps_document_set_orientation), (ps_document_document_iface_init): Add a get_orientation api. Improve set_orientation. * data/evince-ui.xml: * shell/ev-view.c: (ev_view_set_orientation), (ev_view_rotate_right), (ev_view_rotate_left): * shell/ev-view.h: * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right): Better ui for changing document orientation
* Implement orientation here tooMarco Pesenti Gritti2005-06-141-0/+32
| | | | | | | | | | | | | | | | | 2005-06-14 Marco Pesenti Gritti <mpg@redhat.com> * ps/gstypes.h: * ps/ps-document.c: (ps_document_init), (get_page_orientation), (ps_document_set_orientation), (ps_document_document_iface_init): * ps/ps-document.h: Implement orientation here too * shell/ev-properties.c: (ev_properties_new): * data/evince-properties.glade: Hide the fonts page for backends that doesnt support it.
* Big cleanup of the ps codeMarco Pesenti Gritti2005-06-071-556/+448
| | | | | | | | | | | | | 2005-06-07 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_init), (send_ps), (get_page_box), (output), (catchPipe), (input), (stop_interpreter), (file_length), (file_readable), (check_filecompressed), (ps_document_enable_interpreter), (document_load), (ps_async_renderer_render_pixbuf): * ps/ps-document.h: Big cleanup of the ps code
* Add an async renderer interface (method + callback) which is useful forMarco Pesenti Gritti2005-06-071-31/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-07 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-async-renderer.c: (ev_async_renderer_get_type), (ev_async_renderer_class_init), (ev_async_renderer_render_pixbuf): * backend/ev-async-renderer.h: Add an async renderer interface (method + callback) which is useful for backends like ps. * backend/ev-job-queue.c: (remove_job_from_async_queue), (add_job_to_async_queue), (job_finished_cb), (handle_job), (ev_job_queue_run_next), (ev_job_queue_init), (find_queue), (ev_job_queue_add_job), (move_job_async), (move_job), (ev_job_queue_update_job), (ev_job_queue_remove_job): Add queues for async renderer, these are executed on the main thread. * backend/ev-jobs.c: (ev_job_render_new), (render_finished_cb), (ev_job_render_run): * backend/ev-jobs.h: If the backend support async renderer interface use it. * ps/ps-document.c: (ps_document_init), (push_pixbuf), (setup_pixmap), (ps_document_get_type), (ps_async_renderer_render_pixbuf), (ps_document_document_iface_init), (ps_async_renderer_iface_init): Implement async renderer interface.
* Fix warning when loading psMarco Pesenti Gritti2005-06-061-1/+0
| | | | | | | | 2005-06-06 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (start_interpreter): Fix warning when loading ps
* Fix crash when priting gs error messages.Marco Pesenti Gritti2005-06-061-1/+1
| | | | | | | | 2005-06-06 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (output): Fix crash when priting gs error messages.
* Rework properties code to take only EvPropertyInfo in the constructor soMarco Pesenti Gritti2005-06-041-1/+3
| | | | | | | | | | | | | | | | | | | | | 2005-06-04 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): * data/evince-properties.glade: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_info): * shell/ev-properties.c: (ev_properties_format_date), (set_property), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Rework properties code to take only EvPropertyInfo in the constructor so that it can be useful for nautilus plugin too. Deal with backends that doesnt support some properties. Make set property code generic.
* Try to render even if psscan fails.Marco Pesenti Gritti2005-06-021-10/+2
| | | | | | | | | 2005-06-02 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (output): * ps/ps.c: (psscan): Try to render even if psscan fails.
* Do not fail on interpreter messagesMarco Pesenti Gritti2005-06-011-1/+8
| | | | | | | | 2005-06-01 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (interpreter_message), (output): Do not fail on interpreter messages
* Forgot to chain it to the parent. Thanks chpe.Marco Pesenti Gritti2005-05-311-0/+2
| | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_dispose): Forgot to chain it to the parent. Thanks chpe.
* Cleanup dispose a bit. Dont leak the whole pixmap.Marco Pesenti Gritti2005-05-311-65/+41
| | | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_dispose), (ps_document_class_init), (stop_interpreter), (document_load): Cleanup dispose a bit. Dont leak the whole pixmap.
* Fix a double freeMarco Pesenti Gritti2005-05-311-1/+1
| | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_get_info): Fix a double free
* Adapt to new poppler apiMarco Pesenti Gritti2005-05-181-1/+2
| | | | | | | | | | | | 2005-05-18 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-ps-exporter.c: (ev_ps_exporter_begin): * backend/ev-ps-exporter.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_ps_export_begin): * shell/ev-print-job.c: (idle_print_handler): Adapt to new poppler api
* Remove get_title from the interface, we can just use document infoMarco Pesenti Gritti2005-04-191-46/+14
| | | | | | | | | | | | | | | | 2005-04-19 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.c: (ev_document_class_init), (ev_document_get_info), (ev_document_render_pixbuf): * backend/ev-document.h: * backend/ev-page-cache.c: (_ev_page_cache_new): * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_class_init), (pixbuf_document_get_info), (pixbuf_document_document_iface_init): * ps/ps-document.c: (ps_document_class_init), (document_load), (ps_document_get_info), (ps_document_document_iface_init): Remove get_title from the interface, we can just use document info
* Respect document orientationMarco Pesenti Gritti2005-04-181-0/+6
| | | | | | | | 2005-04-18 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (get_page_orientation): Respect document orientation
* Based on a patch by J�rg Billeter <j@bitron.ch>Marco Pesenti Gritti2005-04-151-2/+104
| | | | | | | | | | | | | | | 2005-04-15 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_init), (ps_document_get_type), (save_page_list), (ps_document_save), (ps_document_document_iface_init), (ps_document_ps_export_begin), (ps_document_ps_export_do_page), (ps_document_ps_export_end), (ps_document_ps_exporter_iface_init): * ps/ps-document.h: Based on a patch by J�rg Billeter <j@bitron.ch> Implement print and save a copy for the ps backend.
* Fix the crash when trying to copy in backends that doesnt support it. WeMarco Pesenti Gritti2005-04-141-5/+4
| | | | | | | | | | | | | | | | | | | | | 2005-04-14 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.h: * djvu/djvu-document.c: (djvu_document_can_get_text), (djvu_document_document_iface_init): * dvi/dvi-document.c: (dvi_document_can_get_text), (dvi_document_document_iface_init): * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_can_get_text), (pixbuf_document_document_iface_init): * ps/ps-document.c: (ps_document_can_get_text), (ps_document_document_iface_init): * shell/ev-view.c: (ev_view_copy), (ev_view_primary_get_cb): * shell/ev-window.c: (update_action_sensitivity): Fix the crash when trying to copy in backends that doesnt support it. We can implement a better solution once we do real text selection.
* Release 0.2.0Marco Pesenti Gritti2005-04-061-2/+0
| | | | | | | | | | | | | 2005-04-06 Marco Pesenti Gritti <mpg@redhat.com> * NEWS: * configure.ac: Release 0.2.0 * ps/ps-document.c: (setup_pixmap): Remove debug code
* Fix page size calculationMarco Pesenti Gritti2005-04-051-33/+89
| | | | | | | | 2005-04-05 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (get_page_box): Fix page size calculation
* More refactoring to adapt to EvDocument changesMarco Pesenti Gritti2005-04-051-118/+118
| | | | | | | | | | | | 2005-04-05 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (ps_document_init), (push_pixbuf), (ps_document_cleanup), (setup_pixmap), (get_page_box), (get_page_orientation), (setup_page), (document_load), (ps_document_get_page_size), (render_pixbuf_idle): * ps/ps-document.h: More refactoring to adapt to EvDocument changes
* Actually add alpha argsMarco Pesenti Gritti2005-04-051-0/+3
| | | | | | | | 2005-04-05 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (start_interpreter): Actually add alpha args
* Make searching work again.Kristian Høgsberg2005-04-051-59/+27
| | | | | | | | | | | | | | | | | | | 2005-04-04 Kristian Høgsberg <krh@redhat.com> Make searching work again. * backend/ev-document.c: * backend/ev-document.h: * backend/ev-document-find.c: * backend/ev-document-find.h: Change EvDocumentIface so we no longer store the current page or zoom level in the document. The consequence is that all calls that operate on the current page now instead take the page number as an extra argument, and all coordinates are now doubles in document coordinate system. * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: * ps/ps-document.c: Update backends accordingly.
* Remove pixbuf backend for nowJonathan Blandford2005-03-311-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Mar 31 01:21:58 2005 Jonathan Blandford <jrb@redhat.com> * Makefile.am: Remove pixbuf backend for now * configure.ac: Require poppler-glib instead of just poppler. * backend/ev-document-thumbnails.h: Add a comment * backend/ev-document.h: * backend/ev-document.c: (ev_document_class_init), (ev_document_load), (ev_document_get_link), (ev_document_get_links): Remove 3 methods and add get_links. Also, made 0 based. * backend/ev-jobs.c: (ev_job_render_new), (ev_job_render_run): * backend/ev-jobs.h: now EvJobRender can grab the links for a document. * backend/ev-link.c: (ev_link_set_title), (ev_link_mapping_free_foreach), (ev_link_mapping_free), (ev_link_mapping_find): * backend/ev-link.h: Allow NULL titles. Also, introduce a mapping link. * backend/ev-page-cache.c: (ev_page_cache_init), (_ev_page_cache_new), (ev_page_cache_set_current_page), (ev_page_cache_get_size), (ev_page_cache_next_page), (ev_page_cache_prev_page): Fix to be 0 based. * pdf/Makefile.am: * pdf/ev-poppler.h: * pdf/ev-poppler.cc: New backend. * ps/ps-document.c: (ps_document_init), (ps_document_set_page), (ps_document_get_page), (ps_document_document_iface_init): * shell/ev-pixbuf-cache.h: * shell/ev-pixbuf-cache.c: (ev_pixbuf_cache_init), (dispose_cache_job_info), (job_finished_cb), (move_one_job), (ev_pixbuf_cache_update_range), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_set_page_range), (ev_pixbuf_cache_get_pixbuf), (ev_pixbuf_cache_get_link_mapping): Fix up code to grab a page cache per each doc. Also, fix to be 0 based. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (page_changed_cb), (ev_sidebar_thumbnails_set_document): Fix to be 0 based. * shell/ev-view.c: (status_message_from_link), (find_page_at_location), (get_link_at_location), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_init): Use the new link code. Fix to be 0 based. * shell/ev-window.c: (update_action_sensitivity), (document_supports_sidebar): 0 based.
* merge evince-threads branchMarco Pesenti Gritti2005-03-231-926/+514
|
* Some more sanitization of the ps backend. Remove a lot of unused code andMarco Pesenti Gritti2005-03-081-141/+10
| | | | | | | | | | | | | | | | | | | 2005-03-08 Marco Pesenti Gritti <marco@gnome.org> * ps/Makefile.am: * ps/gsdefaults.c: (gtk_gs_defaults_get_interpreter_cmd), (gtk_gs_defaults_get_alpha_parameters), (gtk_gs_defaults_get_ungzip_cmd), (gtk_gs_defaults_get_unbzip2_cmd): * ps/gsdefaults.h: * ps/ps-document.c: (ps_document_init), (ps_document_class_init), (ps_document_get_orientation), (document_load), (ps_document_goto_page), (ps_document_set_page_size): * ps/ps-document.h: Some more sanitization of the ps backend. Remove a lot of unused code and do not base our defaults on ggv preferences (ugh!)
* Make it C89 compliantJens Granseuer2005-03-031-4/+4
| | | | | | | | 2005-03-03 Jens Granseuer <jensgr@gmx.net> * ps/ps-document.c: (set_up_page), (start_interpreter): Make it C89 compliant
* Disconnect the widget event signal on finalize. Some code cleanups.Marco Pesenti Gritti2005-02-281-48/+60
| | | | | | | | | | | 2005-02-28 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_widget_event), (ps_document_set_target), (ps_document_finalize), (ps_document_get_page): Disconnect the widget event signal on finalize. Some code cleanups.
* If there is no bpixmap create one, even if size is not changed.Marco Pesenti Gritti2005-02-281-1/+1
| | | | | | | | | 2005-02-28 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (set_up_page): If there is no bpixmap create one, even if size is not changed.
* Default page is 0. Calculate size even when we have no target yet.Marco Pesenti Gritti2005-02-281-49/+16
| | | | | | | | | | 2005-02-28 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_init), (ps_document_cleanup), (set_up_page), (document_load), (ps_document_set_zoom): Default page is 0. Calculate size even when we have no target yet.
* Separate page/scale notificationsMarco Pesenti Gritti2005-02-241-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-24 Marco Pesenti Gritti <marco@gnome.org> * backend/ev-document.c: (ev_document_class_init), (ev_document_page_changed), (ev_document_scale_changed): * backend/ev-document.h: Separate page/scale notifications * pdf/xpdf/pdf-document.cc: Emit the new signals. Do not display the pdf page in _render, do it when scale/page are requested. * ps/ps-document.c: (ps_document_set_zoom), (ps_document_widget_event): * ps/ps-document.h: Emit the new signals. * shell/ev-view.c: (ev_view_size_request), (expose_bin_window), (ev_view_init), (page_changed_callback), (scale_changed_callback), (ev_view_set_document), (ev_view_zoom), (ev_view_zoom_in), (ev_view_zoom_out), (size_to_zoom_factor), (ev_view_set_size): * shell/ev-view.h: * shell/ev-window.c: (ev_window_cmd_view_normal_size), (ev_window_cmd_view_page_width), (size_allocate_cb), (ev_window_set_sizing_mode): Rework sizing to be pixel based. There are bugs but should be already way better.
* ps pages are 0 based, convertMarco Pesenti Gritti2005-02-211-2/+2
| | | | | | | | 2005-02-21 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_set_page), (ps_document_get_page): ps pages are 0 based, convert
* Initialize correct parent class. Set GError on document loadMarco Pesenti Gritti2005-02-211-2/+8
| | | | | | | | 2005-02-21 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_class_init), (ps_document_load): Initialize correct parent class. Set GError on document load
* Fix compilation on non-gcc platformsMarco Pesenti Gritti2005-02-091-15/+15
| | | | | | | | | | | | | | | | 2005-02-09 Marco Pesenti Gritti <marco@gnome.org> * lib/ev-debug.c: * lib/ev-debug.h: * ps/ps-document.c: (ps_document_finalize), (set_up_page), (start_interpreter), (stop_interpreter), (document_load), (ps_document_next_page), (ps_document_goto_page), (ps_document_set_page_size), (ps_document_widget_event), (ps_document_render): * shell/ev-page-view.c: (ev_page_view_dispose): * shell/ev-view.c: (ev_view_finalize), (expose_bin_window): Fix compilation on non-gcc platforms
* Log gs propertyMarco Pesenti Gritti2005-02-071-0/+2
| | | | | | | | 2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (set_up_page): Log gs property
* Log gs env varMarco Pesenti Gritti2005-02-071-5/+6
| | | | | | | | 2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (start_interpreter): Log gs env var
* Some cleanups, stop the interpreter on finalizeMarco Pesenti Gritti2005-02-071-38/+28
| | | | | | | | | | | | | | 2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_finalize), (ps_document_get_n_pages), (ps_document_get_page): Some cleanups, stop the interpreter on finalize * shell/ev-page-view.c: (ev_page_view_dispose), (ev_page_view_class_init): Release our reference on the document
* Add debugging helpersMarco Pesenti Gritti2005-02-071-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * Makefile.am: * configure.ac: * doc/debugging.txt: * lib/.cvsignore: * lib/Makefile.am: * lib/ev-debug.c: (log_module), (trap_handler), (ev_debug_init), (ev_profiler_new), (ev_should_profile), (ev_profiler_dump), (ev_profiler_free), (ev_profiler_start), (ev_profiler_stop): * lib/ev-debug.h: Add debugging helpers * ps/Makefile.am: * ps/ps-document.c: (set_up_page), (start_interpreter), (stop_interpreter), (document_load), (ps_document_next_page), (ps_document_goto_page), (ps_document_set_page_size), (ps_document_widget_event), (ps_document_render): * shell/Makefile.am: * shell/ev-view.c: (expose_bin_window): * shell/main.c: (main): Add some logs
* Initialize message_window, this should make ps rendering really work!Marco Pesenti Gritti2005-02-071-0/+2
| | | | | | | | | | 2005-02-07 Marco Pesenti Gritti <marco@gnome.org> * ps/ps-document.c: (ps_document_widget_event): Initialize message_window, this should make ps rendering really work! (Never noticed because I was testing with a ps that is causing gs to exit every time!)
* New file with some random thoughts.Jonathan Blandford2005-02-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 2 21:13:11 2005 Jonathan Blandford <jrb@redhat.com> * NOTES: New file with some random thoughts. * TODO: Update. * backend/ev-document-misc.c: (ev_document_misc_get_page_border_size): New function to canonicalize shadow drawing sizes. Possibly goofy. * shell/ev-view.c: (ev_view_size_request), (set_document_page), (ev_view_best_fit), (ev_view_fit_width): * pdf/xpdf/pdf-document.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size): * ps/ps-document.c: (ps_document_get_page_size): * backend/ev-document-misc.h: * backend/ev-document.c: (ev_document_get_page_size): * backend/ev-document.h: get_page_size now takes a page number parameter. Made all the backends/frontends honor it. * data/evince-ui.xml: Added a multiple-page mode. Uncomment to see. Doesn't work yet. * shell/Makefile.am: * shell/ev-page-view.[ch]: New multi-page view. Really rough. Doesn't do anything yet. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): [1..n_pages] instead of [0..n_pages-1] * shell/ev-window.c: (update_action_sensitivity), (ev_window_setup_document), (ev_window_set_page_mode), (ev_window_page_mode_cb), (ev_window_init): Clean up the view-swapping code a bit so we can have multiple views on a document. Add the multi-page view, though it can't be turned on yet.
* Zero page_[xy]_offset.Martin Kretzschmar2005-01-211-0/+3
| | | | * ps/ps-document.c (ps_document_init): Zero page_[xy]_offset.
* add page_[xy]_offset fields.Martin Kretzschmar2005-01-211-3/+19
| | | | | | | | | * ps/ps-document.h: add page_[xy]_offset fields. * ps/ps-document.c (ps_document_set_page_offset) (ps_document_render): Keep offset in consideration in a few places. Bug #164752 "postscript documents are not centered in window"
* stub out missing methods for complete EvDocument implementation. FixesMartin Kretzschmar2005-01-211-0/+18
| | | | | | | | | | * pixbuf/pixbuf-document.c (pixbuf_document_get_n_pages) (pixbuf_document_get_text, pixbuf_document_document_iface_init): stub out missing methods for complete EvDocument implementation. Fixes segfaults with Save A Copy and Copy actions. * ps/ps-document.c (ps_document_save, ps_document_get_text) (ps_document_document_iface_init): ditto.
* View status message support, use it to show the links. Needs work...Marco Pesenti Gritti2005-01-131-0/+9
| | | | | | | | | | | | | | | | | | | | | | 2005-01-13 Marco Pesenti Gritti <marco@gnome.org> * pixbuf/pixbuf-document.c: (pixbuf_document_get_link), (pixbuf_document_document_iface_init): * ps/ps-document.c: (ps_document_get_link), (ps_document_document_iface_init): * shell/ev-view.c: (ev_view_realize), (ev_view_button_press_event), (status_message_from_link), (ev_view_set_status), (ev_view_set_find_status), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_set_property), (ev_view_get_property), (ev_view_class_init), (ev_view_init), (ev_view_get_find_status_message), (update_find_results), (ev_view_get_status), (ev_view_get_find_status): * shell/ev-view.h: * shell/ev-window.c: (view_status_changed_cb), (view_find_status_changed_cb), (ev_window_init): View status message support, use it to show the links. Needs work...