summaryrefslogtreecommitdiff
path: root/libview/ev-jobs.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-06-11 14:22:41 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commit33889b3eddebef1251e70a882b72a1710ba20083 (patch)
tree195fe268f0bad17bff2e673845df603d0d97249e /libview/ev-jobs.h
parentcd36f3b5e3cd9ee377d3431b51fa3814043f52ef (diff)
downloadatril-33889b3eddebef1251e70a882b72a1710ba20083.tar.bz2
atril-33889b3eddebef1251e70a882b72a1710ba20083.tar.xz
libview: Add a way to get the text logical attributes from the page cache
It returns an array of PangoLogAttr with the logical attributes of the text for the given page. taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6870279
Diffstat (limited to 'libview/ev-jobs.h')
-rw-r--r--libview/ev-jobs.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/libview/ev-jobs.h b/libview/ev-jobs.h
index fdc23bae..ddcbd486 100644
--- a/libview/ev-jobs.h
+++ b/libview/ev-jobs.h
@@ -253,15 +253,16 @@ struct _EvJobRenderClass
};
typedef enum {
- EV_PAGE_DATA_INCLUDE_NONE = 0,
- EV_PAGE_DATA_INCLUDE_LINKS = 1 << 0,
- EV_PAGE_DATA_INCLUDE_TEXT = 1 << 1,
- EV_PAGE_DATA_INCLUDE_TEXT_MAPPING = 1 << 2,
- EV_PAGE_DATA_INCLUDE_TEXT_LAYOUT = 1 << 3,
- EV_PAGE_DATA_INCLUDE_IMAGES = 1 << 4,
- EV_PAGE_DATA_INCLUDE_FORMS = 1 << 5,
- EV_PAGE_DATA_INCLUDE_ANNOTS = 1 << 6,
- EV_PAGE_DATA_INCLUDE_ALL = (1 << 7) - 1
+ EV_PAGE_DATA_INCLUDE_NONE = 0,
+ EV_PAGE_DATA_INCLUDE_LINKS = 1 << 0,
+ EV_PAGE_DATA_INCLUDE_TEXT = 1 << 1,
+ EV_PAGE_DATA_INCLUDE_TEXT_MAPPING = 1 << 2,
+ EV_PAGE_DATA_INCLUDE_TEXT_LAYOUT = 1 << 3,
+ EV_PAGE_DATA_INCLUDE_TEXT_LOG_ATTRS = 1 << 4,
+ EV_PAGE_DATA_INCLUDE_IMAGES = 1 << 5,
+ EV_PAGE_DATA_INCLUDE_FORMS = 1 << 6,
+ EV_PAGE_DATA_INCLUDE_ANNOTS = 1 << 7,
+ EV_PAGE_DATA_INCLUDE_ALL = (1 << 8) - 1
} EvJobPageDataFlags;
struct _EvJobPageData
@@ -279,6 +280,8 @@ struct _EvJobPageData
gchar *text;
EvRectangle *text_layout;
guint text_layout_length;
+ PangoLogAttr *text_log_attrs;
+ gulong text_log_attrs_length;
};
struct _EvJobPageDataClass