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-text.h File Reference
#include <glib-object.h>
#include <glib.h>
#include <gdk/gdk.h>
#include "ev-document.h"
+ Include dependency graph for ev-document-text.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvDocumentTextInterface
 

Macros

#define EV_TYPE_DOCUMENT_TEXT   (ev_document_text_get_type ())
 
#define EV_DOCUMENT_TEXT(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_TEXT, EvDocumentText))
 
#define EV_DOCUMENT_TEXT_IFACE(k)   (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_TEXT, EvDocumentTextInterface))
 
#define EV_IS_DOCUMENT_TEXT(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_TEXT))
 
#define EV_IS_DOCUMENT_TEXT_IFACE(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_TEXT))
 
#define EV_DOCUMENT_TEXT_GET_IFACE(inst)   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_TEXT, EvDocumentTextInterface))
 

Typedefs

typedef struct _EvDocumentText EvDocumentText
 
typedef struct
_EvDocumentTextInterface 
EvDocumentTextInterface
 

Functions

GType ev_document_text_get_type (void) G_GNUC_CONST
 
gchar * ev_document_text_get_text (EvDocumentText *document_text, EvPage *page)
 
gboolean ev_document_text_get_text_layout (EvDocumentText *document_text, EvPage *page, EvRectangle **areas, guint *n_areas)
 
cairo_region_t * ev_document_text_get_text_mapping (EvDocumentText *document_text, EvPage *page)
 
PangoAttrList * ev_document_text_get_text_attrs (EvDocumentText *document_text, EvPage *page)
 

Macro Definition Documentation

#define EV_DOCUMENT_TEXT (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_TEXT, EvDocumentText))

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

#define EV_DOCUMENT_TEXT_GET_IFACE (   inst)    (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_TEXT, EvDocumentTextInterface))

Definition at line 42 of file ev-document-text.h.

#define EV_DOCUMENT_TEXT_IFACE (   k)    (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_TEXT, EvDocumentTextInterface))

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

#define EV_IS_DOCUMENT_TEXT (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_TEXT))

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

#define EV_IS_DOCUMENT_TEXT_IFACE (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_TEXT))

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

#define EV_TYPE_DOCUMENT_TEXT   (ev_document_text_get_type ())

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

Typedef Documentation

typedef struct _EvDocumentText EvDocumentText

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

Definition at line 45 of file ev-document-text.h.

Function Documentation

gchar* ev_document_text_get_text ( EvDocumentText document_text,
EvPage page 
)

Definition at line 34 of file ev-document-text.c.

36 {
37  EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
38 
39  if (!iface->get_text)
40  return NULL;
41 
42  return iface->get_text (document_text, page);
43 }

+ Here is the caller graph for this function:

PangoAttrList* ev_document_text_get_text_attrs ( EvDocumentText document_text,
EvPage page 
)

Definition at line 84 of file ev-document-text.c.

86 {
87  EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
88 
89  if (!iface->get_text_attrs)
90  return NULL;
91 
92  return iface->get_text_attrs (document_text, page);
93 }

+ Here is the caller graph for this function:

gboolean ev_document_text_get_text_layout ( EvDocumentText document_text,
EvPage page,
EvRectangle **  areas,
guint *  n_areas 
)

Definition at line 47 of file ev-document-text.c.

51 {
52  EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
53 
54  if (!iface->get_text_layout)
55  return FALSE;
56 
57  return iface->get_text_layout (document_text, page, areas, n_areas);
58 }

+ Here is the caller graph for this function:

cairo_region_t* ev_document_text_get_text_mapping ( EvDocumentText document_text,
EvPage page 
)

Definition at line 61 of file ev-document-text.c.

63 {
64  EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text);
65 
66  if (!iface->get_text_mapping)
67  return NULL;
68 
69  return iface->get_text_mapping (document_text, page);
70 }

+ Here is the caller graph for this function:

GType ev_document_text_get_type ( void  )