Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r--backend/ev-document.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h
index e572fed..cc65f5c 100644
--- a/backend/ev-document.h
+++ b/backend/ev-document.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
/*
* Copyright (C) 2000-2003 Marco Pesenti Gritti
*
@@ -27,6 +28,12 @@
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))
@@ -63,6 +70,21 @@ 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.
+ */
+ void (* found) (EvDocument *document,
+ const EvFindResult *results,
+ int n_results,
+ double percent_complete);
};
GType ev_document_get_type (void);
@@ -88,6 +110,10 @@ 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);
G_END_DECLS