X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=backend%2Fev-document.h;h=84b9e979ace66501dc580e5d9f1786251fdb0e5e;hb=f53f3523ebc7a082eb8a1c046cee836b67696912;hp=4cf4601fc0cac639a83eec7cd2288e881ae7a126;hpb=110ec8e1d24701cae441a5fe511611aaa478fd3b;p=evince.git diff --git a/backend/ev-document.h b/backend/ev-document.h index 4cf4601f..84b9e979 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -28,12 +28,6 @@ G_BEGIN_DECLS -typedef struct -{ - int page_num; - GdkRectangle highlight_area; -} EvFindResult; - #define EV_TYPE_DOCUMENT (ev_document_get_type ()) #define EV_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT, EvDocument)) #define EV_DOCUMENT_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT, EvDocumentIface)) @@ -48,6 +42,9 @@ struct _EvDocumentIface { GTypeInterface base_iface; + /* Signals */ + void (* changed) (EvDocument *document); + /* Methods */ gboolean (* load) (EvDocument *document, const char *uri, @@ -71,23 +68,6 @@ struct _EvDocumentIface int clip_y, int clip_width, int clip_height); - - void (* begin_find) (EvDocument *document, - const char *search_string, - gboolean case_sensitive); - void (* end_find) (EvDocument *document); - - /* Signals */ - - /* "found" emitted at least 1 time (possibly with n_results == 0) - * for any call to begin_find; also emitted with NULL,0 when - * you end_find. Calling begin_find twice without calling end_find - * is considered OK. - */ - void (* found) (EvDocument *document, - const EvFindResult *results, - int n_results, - double percent_complete); }; GType ev_document_get_type (void); @@ -95,6 +75,7 @@ GType ev_document_get_type (void); gboolean ev_document_load (EvDocument *document, const char *uri, GError **error); +char *ev_document_get_title (EvDocument *document); int ev_document_get_n_pages (EvDocument *document); void ev_document_set_page (EvDocument *document, int page); @@ -114,16 +95,7 @@ void ev_document_render (EvDocument *document, int clip_y, int clip_width, int clip_height); -void ev_document_begin_find (EvDocument *document, - const char *search_string, - gboolean case_sensitive); -void ev_document_end_find (EvDocument *document); - -void ev_document_found (EvDocument *document, - const EvFindResult *results, - int n_results, - double percent_complete); - +void ev_document_changed (EvDocument *document); G_END_DECLS