File: pps-page-cache.h

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (57 lines) | stat: -rw-r--r-- 2,501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// SPDX-License-Identifier: GPL-2.0-or-later
/* this file is part of papers, a gnome document viewer
 *
 *  Copyright (C) 2009 Carlos Garcia Campos
 */

#pragma once

#if !defined(PAPERS_COMPILATION)
#error "This is a private header."
#endif

#include <gdk/gdk.h>
#include <glib-object.h>
#include <papers-document.h>
#include <papers-view.h>

G_BEGIN_DECLS

#define PPS_TYPE_PAGE_CACHE (pps_page_cache_get_type ())
G_DECLARE_FINAL_TYPE (PpsPageCache, pps_page_cache, PPS, PAGE_CACHE, GObject)

PpsPageCache *pps_page_cache_new (PpsDocument *document);

void pps_page_cache_set_page_range (PpsPageCache *cache,
                                    gint start,
                                    gint end);
PpsJobPageDataFlags pps_page_cache_get_flags (PpsPageCache *cache);
void pps_page_cache_set_flags (PpsPageCache *cache,
                               PpsJobPageDataFlags flags);
PpsMappingList *pps_page_cache_get_link_mapping (PpsPageCache *cache,
                                                 gint page);
PpsMappingList *pps_page_cache_get_image_mapping (PpsPageCache *cache,
                                                  gint page);
PpsMappingList *pps_page_cache_get_form_field_mapping (PpsPageCache *cache,
                                                       gint page);
PpsMappingList *pps_page_cache_get_media_mapping (PpsPageCache *cache,
                                                  gint page);
cairo_region_t *pps_page_cache_get_text_mapping (PpsPageCache *cache,
                                                 gint page);
const gchar *pps_page_cache_get_text (PpsPageCache *cache,
                                      gint page);
gboolean pps_page_cache_get_text_layout (PpsPageCache *cache,
                                         gint page,
                                         PpsRectangle **areas,
                                         guint *n_areas);
PangoAttrList *pps_page_cache_get_text_attrs (PpsPageCache *cache,
                                              gint page);
gboolean pps_page_cache_get_text_log_attrs (PpsPageCache *cache,
                                            gint page,
                                            PangoLogAttr **log_attrs,
                                            gulong *n_attrs);
void pps_page_cache_ensure_page (PpsPageCache *cache,
                                 gint page);
gboolean pps_page_cache_is_page_cached (PpsPageCache *cache,
                                        gint page);
G_END_DECLS