Go to the source code of this file.
|
static void | job_page_data_finished_cb (EvJob *job, EvPageCache *cache) |
|
static void | job_page_data_cancelled_cb (EvJob *job, EvPageCacheData *data) |
|
static void | ev_page_cache_data_free (EvPageCacheData *data) |
|
static void | ev_page_cache_finalize (GObject *object) |
|
static void | ev_page_cache_init (EvPageCache *cache) |
|
static void | ev_page_cache_class_init (EvPageCacheClass *klass) |
|
static EvJobPageDataFlags | ev_page_cache_get_flags_for_data (EvPageCache *cache, EvPageCacheData *data) |
|
EvPageCache * | ev_page_cache_new (EvDocument *document) |
|
static void | ev_page_cache_schedule_job_if_needed (EvPageCache *cache, gint page) |
|
void | ev_page_cache_set_page_range (EvPageCache *cache, gint start, gint end) |
|
EvJobPageDataFlags | ev_page_cache_get_flags (EvPageCache *cache) |
|
void | ev_page_cache_set_flags (EvPageCache *cache, EvJobPageDataFlags flags) |
|
void | ev_page_cache_mark_dirty (EvPageCache *cache, gint page, EvJobPageDataFlags flags) |
|
EvMappingList * | ev_page_cache_get_link_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_image_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_form_field_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_annot_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_media_mapping (EvPageCache *cache, gint page) |
|
cairo_region_t * | ev_page_cache_get_text_mapping (EvPageCache *cache, gint page) |
|
const gchar * | ev_page_cache_get_text (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_get_text_layout (EvPageCache *cache, gint page, EvRectangle **areas, guint *n_areas) |
|
PangoAttrList * | ev_page_cache_get_text_attrs (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_get_text_log_attrs (EvPageCache *cache, gint page, PangoLogAttr **log_attrs, gulong *n_attrs) |
|
void | ev_page_cache_ensure_page (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_is_page_cached (EvPageCache *cache, gint page) |
|
#define EV_PAGE_DATA_FLAGS_DEFAULT |
Value:( \
EV_PAGE_DATA_INCLUDE_LINKS | \
EV_PAGE_DATA_INCLUDE_TEXT_MAPPING | \
EV_PAGE_DATA_INCLUDE_IMAGES | \
EV_PAGE_DATA_INCLUDE_FORMS | \
EV_PAGE_DATA_INCLUDE_ANNOTS | \
EV_PAGE_DATA_INCLUDE_MEDIA)
Definition at line 80 of file ev-page-cache.c.
Definition at line 200 of file ev-page-cache.c.
202 GObjectClass *g_object_class = G_OBJECT_CLASS (klass);
207 g_signal_new (
"page-cached",
212 g_cclosure_marshal_VOID__INT,
213 G_TYPE_NONE, 1, G_TYPE_INT);
void ev_page_cache_ensure_page |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 750 of file ev-page-cache.c.
754 g_return_if_fail (page >= 0 && page < cache->n_pages);
static void ev_page_cache_finalize |
( |
GObject * |
object) | |
|
|
static |
Definition at line 159 of file ev-page-cache.c.
165 for (i = 0; i < cache->
n_pages; i++) {
171 g_signal_handlers_disconnect_by_func (data->
job,
174 g_signal_handlers_disconnect_by_func (data->
job,
191 G_OBJECT_CLASS (ev_page_cache_parent_class)->finalize (
object);
Definition at line 554 of file ev-page-cache.c.
560 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 532 of file ev-page-cache.c.
538 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 510 of file ev-page-cache.c.
516 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 488 of file ev-page-cache.c.
494 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 576 of file ev-page-cache.c.
582 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
const gchar* ev_page_cache_get_text |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 620 of file ev-page-cache.c.
626 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
PangoAttrList* ev_page_cache_get_text_attrs |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 683 of file ev-page-cache.c.
689 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
gboolean ev_page_cache_get_text_layout |
( |
EvPageCache * |
cache, |
|
|
gint |
page, |
|
|
EvRectangle ** |
areas, |
|
|
guint * |
n_areas |
|
) |
| |
Definition at line 642 of file ev-page-cache.c.
650 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
gboolean ev_page_cache_get_text_log_attrs |
( |
EvPageCache * |
cache, |
|
|
gint |
page, |
|
|
PangoLogAttr ** |
log_attrs, |
|
|
gulong * |
n_attrs |
|
) |
| |
Definition at line 718 of file ev-page-cache.c.
726 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
cairo_region_t* ev_page_cache_get_text_mapping |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 598 of file ev-page-cache.c.
604 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
gboolean ev_page_cache_is_page_cached |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 760 of file ev-page-cache.c.
766 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
static void ev_page_cache_schedule_job_if_needed |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
|
static |
Definition at line 357 of file ev-page-cache.c.
373 g_signal_connect (data->
job,
"finished",
376 g_signal_connect (data->
job,
"cancelled",
void ev_page_cache_set_page_range |
( |
EvPageCache * |
cache, |
|
|
gint |
start, |
|
|
gint |
end |
|
) |
| |
Definition at line 384 of file ev-page-cache.c.
389 gint pages_to_pre_cache;
394 for (i = start; i <= end; i++)
402 while ((start - i > 0) || (end + i < cache->n_pages)) {
403 if (end + i < cache->n_pages) {
405 if (--pages_to_pre_cache == 0)
411 if (--pages_to_pre_cache == 0)