X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-links.h;h=e6d90204489fa03f97d5d1cebc9ff14dfc11b08d;hb=2297bff1e7d745f0f837d44feeda03244368d7f1;hp=8e8f20a7dca9ca6ce5424143643362cb69d7e0fa;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/libdocument/ev-document-links.h b/libdocument/ev-document-links.h index 8e8f20a7..e6d90204 100644 --- a/libdocument/ev-document-links.h +++ b/libdocument/ev-document-links.h @@ -18,9 +18,13 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EV_DOCUMENT_LINKS_H #define EV_DOCUMENT_LINKS_H @@ -33,25 +37,25 @@ G_BEGIN_DECLS - #define EV_TYPE_DOCUMENT_LINKS (ev_document_links_get_type ()) #define EV_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinks)) -#define EV_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface)) +#define EV_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface)) #define EV_IS_DOCUMENT_LINKS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_LINKS)) #define EV_IS_DOCUMENT_LINKS_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_LINKS)) -#define EV_DOCUMENT_LINKS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksIface)) +#define EV_DOCUMENT_LINKS_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_LINKS, EvDocumentLinksInterface)) -typedef struct _EvDocumentLinks EvDocumentLinks; -typedef struct _EvDocumentLinksIface EvDocumentLinksIface; +typedef struct _EvDocumentLinks EvDocumentLinks; +typedef struct _EvDocumentLinksInterface EvDocumentLinksInterface; enum { EV_DOCUMENT_LINKS_COLUMN_MARKUP, EV_DOCUMENT_LINKS_COLUMN_LINK, EV_DOCUMENT_LINKS_COLUMN_EXPAND, + EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL, EV_DOCUMENT_LINKS_COLUMN_NUM_COLUMNS }; -struct _EvDocumentLinksIface +struct _EvDocumentLinksInterface { GTypeInterface base_iface; @@ -59,7 +63,7 @@ struct _EvDocumentLinksIface gboolean (* has_document_links) (EvDocumentLinks *document_links); GtkTreeModel *(* get_links_model) (EvDocumentLinks *document_links); GList *(* get_links) (EvDocumentLinks *document_links, - gint page); + EvPage *page); EvLinkDest *(* find_link_dest) (EvDocumentLinks *document_links, const gchar *link_name); }; @@ -69,9 +73,13 @@ gboolean ev_document_links_has_document_links (EvDocumentLinks *document_li GtkTreeModel *ev_document_links_get_links_model (EvDocumentLinks *document_links); GList *ev_document_links_get_links (EvDocumentLinks *document_links, - gint page); + EvPage *page); EvLinkDest *ev_document_links_find_link_dest (EvDocumentLinks *document_links, const gchar *link_name); +gint ev_document_links_get_dest_page (EvDocumentLinks *document_links, + EvLinkDest *dest); +gchar *ev_document_links_get_dest_page_label(EvDocumentLinks *document_links, + EvLinkDest *dest); G_END_DECLS