]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Add methods to get/set page cache flags
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 3 Jan 2010 17:19:55 +0000 (18:19 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 3 Jan 2010 20:14:12 +0000 (21:14 +0100)
libview/ev-page-cache.c
libview/ev-page-cache.h

index 9835caad2b6c31d4147bc8adbc968a32ec1c54f4..882c42db0b5c289ed9cde071c76a620dfa03c71c 100644 (file)
@@ -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)
index 498027d2f21dc7cf782719dda6d930df72ea3f9e..bf50ad7dd6ec5ef904e8d3f33f833ba16f207866 100644 (file)
@@ -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