Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-document-find.h File Reference
#include <glib-object.h>
#include <glib.h>
#include "ev-document.h"
+ Include dependency graph for ev-document-find.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvDocumentFindInterface
 

Macros

#define EV_TYPE_DOCUMENT_FIND   (ev_document_find_get_type ())
 
#define EV_DOCUMENT_FIND(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_FIND, EvDocumentFind))
 
#define EV_DOCUMENT_FIND_IFACE(k)   (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FIND, EvDocumentFindInterface))
 
#define EV_IS_DOCUMENT_FIND(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_FIND))
 
#define EV_IS_DOCUMENT_FIND_IFACE(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_FIND))
 
#define EV_DOCUMENT_FIND_GET_IFACE(inst)   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FIND, EvDocumentFindInterface))
 

Typedefs

typedef struct _EvDocumentFind EvDocumentFind
 
typedef struct
_EvDocumentFindInterface 
EvDocumentFindInterface
 

Enumerations

enum  EvFindOptions { EV_FIND_DEFAULT = 0, EV_FIND_CASE_SENSITIVE = 1 << 0, EV_FIND_WHOLE_WORDS_ONLY = 1 << 1 }
 

Functions

GType ev_document_find_get_type (void) G_GNUC_CONST
 
GList * ev_document_find_find_text (EvDocumentFind *document_find, EvPage *page, const gchar *text, gboolean case_sensitive)
 
GList * ev_document_find_find_text_with_options (EvDocumentFind *document_find, EvPage *page, const gchar *text, EvFindOptions options)
 
EvFindOptions ev_document_find_get_supported_options (EvDocumentFind *document_find)
 

Macro Definition Documentation

#define EV_DOCUMENT_FIND (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_FIND, EvDocumentFind))

Definition at line 37 of file ev-document-find.h.

#define EV_DOCUMENT_FIND_GET_IFACE (   inst)    (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_FIND, EvDocumentFindInterface))

Definition at line 41 of file ev-document-find.h.

#define EV_DOCUMENT_FIND_IFACE (   k)    (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_FIND, EvDocumentFindInterface))

Definition at line 38 of file ev-document-find.h.

#define EV_IS_DOCUMENT_FIND (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_FIND))

Definition at line 39 of file ev-document-find.h.

#define EV_IS_DOCUMENT_FIND_IFACE (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_FIND))

Definition at line 40 of file ev-document-find.h.

#define EV_TYPE_DOCUMENT_FIND   (ev_document_find_get_type ())

Definition at line 36 of file ev-document-find.h.

Typedef Documentation

typedef struct _EvDocumentFind EvDocumentFind

Definition at line 43 of file ev-document-find.h.

Definition at line 44 of file ev-document-find.h.

Enumeration Type Documentation

Enumerator
EV_FIND_DEFAULT 
EV_FIND_CASE_SENSITIVE 
EV_FIND_WHOLE_WORDS_ONLY 

Definition at line 46 of file ev-document-find.h.

46  {
47  EV_FIND_DEFAULT = 0,
48  EV_FIND_CASE_SENSITIVE = 1 << 0,

Function Documentation

GList* ev_document_find_find_text ( EvDocumentFind document_find,
EvPage page,
const gchar *  text,
gboolean  case_sensitive 
)

Definition at line 42 of file ev-document-find.c.

46 {
47  EvDocumentFindInterface *iface = EV_DOCUMENT_FIND_GET_IFACE (document_find);
48 
49  return iface->find_text (document_find, page, text, case_sensitive);
50 }

+ Here is the caller graph for this function:

GList* ev_document_find_find_text_with_options ( EvDocumentFind document_find,
EvPage page,
const gchar *  text,
EvFindOptions  options 
)

Definition at line 62 of file ev-document-find.c.

66 {
67  EvDocumentFindInterface *iface = EV_DOCUMENT_FIND_GET_IFACE (document_find);
68 
69  if (iface->find_text_with_options)
70  return iface->find_text_with_options (document_find, page, text, options);
71 
72  return ev_document_find_find_text (document_find, page, text, options & EV_FIND_CASE_SENSITIVE);
73 }

+ Here is the caller graph for this function:

EvFindOptions ev_document_find_get_supported_options ( EvDocumentFind document_find)

Definition at line 76 of file ev-document-find.c.

77 {
78  EvDocumentFindInterface *iface = EV_DOCUMENT_FIND_GET_IFACE (document_find);
79 
80  if (iface->get_supported_options)
81  return iface->get_supported_options (document_find);
82  return 0;
83 }

+ Here is the caller graph for this function:

GType ev_document_find_get_type ( void  )