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-page-accessible.h File Reference
#include <gtk/gtk-a11y.h>
#include "ev-view-accessible.h"
#include "ev-view.h"
+ Include dependency graph for ev-page-accessible.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvPageAccessible
 
struct  _EvPageAccessibleClass
 

Macros

#define EV_TYPE_PAGE_ACCESSIBLE   (ev_page_accessible_get_type ())
 
#define EV_PAGE_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACCESSIBLE, EvPageAccessible))
 
#define EV_IS_PAGE_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_ACCESSIBLE))
 

Typedefs

typedef struct _EvPageAccessible EvPageAccessible
 
typedef struct
_EvPageAccessibleClass 
EvPageAccessibleClass
 
typedef struct
_EvPageAccessiblePrivate 
EvPageAccessiblePrivate
 

Functions

GType ev_page_accessible_get_type (void) G_GNUC_CONST
 
EvPageAccessibleev_page_accessible_new (EvViewAccessible *view_accessible, gint page)
 
gint ev_page_accessible_get_page (EvPageAccessible *page_accessible)
 
EvViewAccessibleev_page_accessible_get_view_accessible (EvPageAccessible *page_accessible)
 
EvViewev_page_accessible_get_view (EvPageAccessible *page_accessible)
 
AtkObject * ev_page_accessible_get_accessible_for_mapping (EvPageAccessible *page_accessible, EvMapping *mapping)
 
void ev_page_accessible_update_element_state (EvPageAccessible *page_accessible, EvMapping *mapping)
 

Macro Definition Documentation

#define EV_IS_PAGE_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_ACCESSIBLE))

Definition at line 32 of file ev-page-accessible.h.

#define EV_PAGE_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACCESSIBLE, EvPageAccessible))

Definition at line 31 of file ev-page-accessible.h.

#define EV_TYPE_PAGE_ACCESSIBLE   (ev_page_accessible_get_type ())

Definition at line 30 of file ev-page-accessible.h.

Typedef Documentation

Definition at line 34 of file ev-page-accessible.h.

Definition at line 35 of file ev-page-accessible.h.

Definition at line 36 of file ev-page-accessible.h.

Function Documentation

AtkObject* ev_page_accessible_get_accessible_for_mapping ( EvPageAccessible page_accessible,
EvMapping mapping 
)

Definition at line 1247 of file ev-page-accessible.c.

1249 {
1250  gint i;
1251 
1252  ev_page_accessible_initialize_children (page_accessible);
1253  if (!mapping || !page_accessible->priv->children)
1254  return NULL;
1255 
1256  for (i = 0; i < page_accessible->priv->children->len; i++) {
1257  AtkObject *child;
1258 
1259  child = g_ptr_array_index (page_accessible->priv->children, i);
1260  if (EV_IS_FORM_FIELD_ACCESSIBLE (child) &&
1262  return child;
1263  }
1264 
1265  return NULL;
1266 }

+ Here is the caller graph for this function:

gint ev_page_accessible_get_page ( EvPageAccessible page_accessible)

+ Here is the caller graph for this function:

GType ev_page_accessible_get_type ( void  )
EvView* ev_page_accessible_get_view ( EvPageAccessible page_accessible)

Definition at line 384 of file ev-page-accessible.c.

385 {
386  g_return_val_if_fail (EV_IS_PAGE_ACCESSIBLE (page_accessible), NULL);
387 
388  return EV_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (page_accessible->priv->view_accessible)));
389 }

+ Here is the caller graph for this function:

EvViewAccessible* ev_page_accessible_get_view_accessible ( EvPageAccessible page_accessible)

Definition at line 65 of file ev-page-accessible.c.

66 {
67  g_return_val_if_fail (EV_IS_PAGE_ACCESSIBLE (page_accessible), NULL);
68 
69  return page_accessible->priv->view_accessible;
70 }

+ Here is the caller graph for this function:

EvPageAccessible* ev_page_accessible_new ( EvViewAccessible view_accessible,
gint  page 
)

Definition at line 1221 of file ev-page-accessible.c.

1223 {
1224  EvPageAccessible *atk_page;
1225  EvView *view;
1226 
1227  g_return_val_if_fail (EV_IS_VIEW_ACCESSIBLE (view_accessible), NULL);
1228  g_return_val_if_fail (page >= 0, NULL);
1229 
1230  atk_page = g_object_new (EV_TYPE_PAGE_ACCESSIBLE,
1231  "view-accessible", view_accessible,
1232  "page", page,
1233  NULL);
1234 
1235  view = ev_page_accessible_get_view (EV_PAGE_ACCESSIBLE (atk_page));
1236  if (ev_page_cache_is_page_cached (view->page_cache, page))
1238  else
1239  g_signal_connect (view->page_cache, "page-cached",
1240  G_CALLBACK (page_cached_cb),
1241  atk_page);
1242 
1243  return EV_PAGE_ACCESSIBLE (atk_page);
1244 }

+ Here is the caller graph for this function:

void ev_page_accessible_update_element_state ( EvPageAccessible page_accessible,
EvMapping mapping 
)

Definition at line 1269 of file ev-page-accessible.c.

1271 {
1272  AtkObject *child;
1273 
1274  child = ev_page_accessible_get_accessible_for_mapping (page_accessible, mapping);
1275  if (!child)
1276  return;
1277 
1278  if (EV_IS_FORM_FIELD_ACCESSIBLE (child))
1280 }

+ Here is the caller graph for this function: