From: Carlos Garcia Campos Date: Sun, 3 Jan 2010 17:19:55 +0000 (+0100) Subject: [libview] Add methods to get/set page cache flags X-Git-Tag: EVINCE_2_29_5~24 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=21d88b14be9a2baee57341ae128bcd31bba7848f;p=evince.git [libview] Add methods to get/set page cache flags --- diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c index 9835caad..882c42db 100644 --- a/libview/ev-page-cache.c +++ b/libview/ev-page-cache.c @@ -218,6 +218,19 @@ ev_page_cache_set_page_range (EvPageCache *cache, } } +EvJobPageDataFlags +ev_page_cache_get_flags (EvPageCache *cache) +{ + return cache->flags; +} + +void +ev_page_cache_set_flags (EvPageCache *cache, + EvJobPageDataFlags flags) +{ + cache->flags = flags; +} + GList * ev_page_cache_get_link_mapping (EvPageCache *cache, gint page) diff --git a/libview/ev-page-cache.h b/libview/ev-page-cache.h index 498027d2..bf50ad7d 100644 --- a/libview/ev-page-cache.h +++ b/libview/ev-page-cache.h @@ -27,6 +27,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -37,22 +38,25 @@ G_BEGIN_DECLS typedef struct _EvPageCache EvPageCache; typedef struct _EvPageCacheClass EvPageCacheClass; -GType ev_page_cache_get_type (void) G_GNUC_CONST; -EvPageCache *ev_page_cache_new (EvDocument *document); - -void ev_page_cache_set_page_range (EvPageCache *cache, - gint start, - gint end); -GList *ev_page_cache_get_link_mapping (EvPageCache *cache, - gint page); -GList *ev_page_cache_get_image_mapping (EvPageCache *cache, - gint page); -GList *ev_page_cache_get_form_field_mapping (EvPageCache *cache, - gint page); -GList *ev_page_cache_get_annot_mapping (EvPageCache *cache, - gint page); -GdkRegion *ev_page_cache_get_text_mapping (EvPageCache *cache, - gint page); +GType ev_page_cache_get_type (void) G_GNUC_CONST; +EvPageCache *ev_page_cache_new (EvDocument *document); + +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); +GList *ev_page_cache_get_link_mapping (EvPageCache *cache, + gint page); +GList *ev_page_cache_get_image_mapping (EvPageCache *cache, + gint page); +GList *ev_page_cache_get_form_field_mapping (EvPageCache *cache, + gint page); +GList *ev_page_cache_get_annot_mapping (EvPageCache *cache, + gint page); +GdkRegion *ev_page_cache_get_text_mapping (EvPageCache *cache, + gint page); G_END_DECLS