]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-document.h
Fix a few bugs
[evince.git] / backend / ev-document.h
index cc65f5cd45347c116c7f95e6b900fdd574255b7f..4cf4601fc0cac639a83eec7cd2288e881ae7a126 100644 (file)
@@ -55,6 +55,7 @@ struct _EvDocumentIface
        int         (* get_n_pages)     (EvDocument *document);
        void        (* set_page)        (EvDocument  *document,
                                         int          page);
+       int         (* get_page)        (EvDocument  *document);
        void        (* set_target)      (EvDocument  *document,
                                         GdkDrawable *target);
        void        (* set_scale)       (EvDocument  *document,
@@ -79,7 +80,9 @@ struct _EvDocumentIface
         /* Signals */
 
         /* "found" emitted at least 1 time (possibly with n_results == 0)
-         * for any call to begin_find.
+         * 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,
@@ -95,6 +98,7 @@ gboolean ev_document_load            (EvDocument   *document,
 int      ev_document_get_n_pages     (EvDocument   *document);
 void     ev_document_set_page        (EvDocument   *document,
                                      int           page);
+int      ev_document_get_page        (EvDocument   *document);
 void     ev_document_set_target      (EvDocument   *document,
                                      GdkDrawable  *target);
 void     ev_document_set_scale       (EvDocument   *document,
@@ -115,6 +119,12 @@ void     ev_document_begin_find    (EvDocument   *document,
                                     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);
+                                   
+
 G_END_DECLS
 
 #endif