]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-document.h
Initial support for document title. Not working yet.
[evince.git] / backend / ev-document.h
index 4cf4601fc0cac639a83eec7cd2288e881ae7a126..84b9e979ace66501dc580e5d9f1786251fdb0e5e 100644 (file)
 
 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