]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-document.h
Some more leftover...
[evince.git] / backend / ev-document.h
index 4cf4601fc0cac639a83eec7cd2288e881ae7a126..0059fd43c91685d28e60b58ce821d9ab725bf5c8 100644 (file)
 
 G_BEGIN_DECLS
 
 
 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))
 #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;
 
 {
        GTypeInterface base_iface;
 
+       /* Signals */
+       void        (* changed)         (EvDocument *document);
+
        /* Methods  */
        gboolean    (* load)            (EvDocument *document,
                                         const char *uri,
        /* Methods  */
        gboolean    (* load)            (EvDocument *document,
                                         const char *uri,
@@ -71,23 +68,6 @@ struct _EvDocumentIface
                                         int          clip_y,
                                         int          clip_width,
                                         int          clip_height);
                                         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);
 };
 
 GType ev_document_get_type (void);
@@ -114,16 +94,7 @@ void     ev_document_render          (EvDocument   *document,
                                      int           clip_y,
                                      int           clip_width,
                                      int           clip_height);
                                      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
 
 
 G_END_DECLS