diff options
author | Jonathan Blandford <jrb@redhat.com> | 2005-06-30 05:44:28 (GMT) |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2005-06-30 05:44:28 (GMT) |
commit | e93b3a265bbc02546d230204402e3f41e83d6ab5 (patch) | |
tree | 9a56861f73e0b9a523a2d8cba2d817318a639605 /backend/ev-document.h | |
parent | a50ca0528a09e8e001c4600371048774e4029057 (diff) |
Massive changes. We now support text selection of pdfs, and not just
Thu Jun 30 01:43:00 2005 Jonathan Blandford <jrb@redhat.com>
* shell/*:
* backend/ev-render-context.[ch]:
* backend/ev-selection.[ch]:
Massive changes. We now support text selection of pdfs, and not
just rectangular selection. This is pretty broken still, but I
want to get something into CVS.
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r-- | backend/ev-document.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h index 044014f..e95ce96 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -28,6 +28,7 @@ #include "ev-link.h" #include "ev-document-info.h" +#include "ev-render-context.h" G_BEGIN_DECLS @@ -55,14 +56,6 @@ typedef enum EV_DOCUMENT_ERROR_ENCRYPTED } EvDocumentError; -typedef enum -{ - EV_ORIENTATION_PORTRAIT, - EV_ORIENTATION_LANDSCAPE, - EV_ORIENTATION_UPSIDEDOWN, - EV_ORIENTATION_SEASCAPE -} EvOrientation; - typedef struct { double x1; double y1; @@ -94,9 +87,8 @@ struct _EvDocumentIface EvRectangle *rect); GList * (* get_links) (EvDocument *document, int page); - GdkPixbuf * (* render_pixbuf) (EvDocument *document, - int page, - double scale); + GdkPixbuf * (* render_pixbuf) (EvDocument *document, + EvRenderContext *rc); EvOrientation (* get_orientation) (EvDocument *document); void (* set_orientation) (EvDocument *document, EvOrientation orientation); @@ -130,12 +122,16 @@ char *ev_document_get_text (EvDocument *document, GList *ev_document_get_links (EvDocument *document, int page); GdkPixbuf *ev_document_render_pixbuf (EvDocument *document, - int page, - double scale); + EvRenderContext *rc); EvOrientation ev_document_get_orientation (EvDocument *document); void ev_document_set_orientation (EvDocument *document, EvOrientation orientation); + +gint ev_rect_cmp (EvRectangle *a, + EvRectangle *b); + + G_END_DECLS #endif |