From 2a7eb0b7ae2af2fa56e92e6c4a3b241833c3ea96 Mon Sep 17 00:00:00 2001 From: Antia Puentes Date: Wed, 10 Jul 2013 17:43:40 +0200 Subject: libdocument: Add ev_document_text_get_text_attrs() origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f72b619 --- libdocument/ev-document-text.c | 12 ++++++++++++ libdocument/ev-document-text.h | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/libdocument/ev-document-text.c b/libdocument/ev-document-text.c index 56c1a563..8fdc916c 100644 --- a/libdocument/ev-document-text.c +++ b/libdocument/ev-document-text.c @@ -68,3 +68,15 @@ ev_document_text_get_text_mapping (EvDocumentText *document_text, return iface->get_text_mapping (document_text, page); } + +PangoAttrList * +ev_document_text_get_text_attrs (EvDocumentText *document_text, + EvPage *page) +{ + EvDocumentTextInterface *iface = EV_DOCUMENT_TEXT_GET_IFACE (document_text); + + if (!iface->get_text_attrs) + return NULL; + + return iface->get_text_attrs (document_text, page); +} diff --git a/libdocument/ev-document-text.h b/libdocument/ev-document-text.h index d6bb409d..66a82c63 100644 --- a/libdocument/ev-document-text.h +++ b/libdocument/ev-document-text.h @@ -28,6 +28,7 @@ #include #include +#include #include "ev-document.h" @@ -56,6 +57,8 @@ struct _EvDocumentTextInterface EvPage *page, EvRectangle **areas, guint *n_areas); + PangoAttrList *(* get_text_attrs) (EvDocumentText *document_text, + EvPage *page); }; GType ev_document_text_get_type (void) G_GNUC_CONST; @@ -68,7 +71,8 @@ gboolean ev_document_text_get_text_layout (EvDocumentText *document_tex guint *n_areas); cairo_region_t *ev_document_text_get_text_mapping (EvDocumentText *document_text, EvPage *page); - +PangoAttrList *ev_document_text_get_text_attrs (EvDocumentText *document_text, + EvPage *page); G_END_DECLS #endif /* EV_DOCUMENT_TEXT_H */ -- cgit v1.2.1