Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-01-03 17:19:55 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-01-03 20:14:12 (GMT)
commit21d88b14be9a2baee57341ae128bcd31bba7848f (patch)
treeffa1820488ae3ee36fc5fc4e579e80f7e53bbb78 /libview
parent5e7facafcce547222476061e8a160090356e99aa (diff)
[libview] Add methods to get/set page cache flags
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-page-cache.c13
-rw-r--r--libview/ev-page-cache.h36
2 files changed, 33 insertions, 16 deletions
diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c
index 9835caa..882c42d 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 498027d..bf50ad7 100644
--- a/libview/ev-page-cache.h
+++ b/libview/ev-page-cache.h
@@ -27,6 +27,7 @@
#include <glib-object.h>
#include <gdk/gdk.h>
#include <evince-document.h>
+#include <evince-view.h>
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