[evince] [libview] Add methods to get/set page cache flags



commit 21d88b14be9a2baee57341ae128bcd31bba7848f
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Jan 3 18:19:55 2010 +0100

    [libview] Add methods to get/set page cache flags

 libview/ev-page-cache.c |   13 +++++++++++++
 libview/ev-page-cache.h |   36 ++++++++++++++++++++----------------
 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
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]