From 9f8ec2d921de1c31da212c8486ab2bda85d51bf9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 07 Sep 2005 12:36:54 +0000 Subject: Implement xyz links, still not functional. Links are a total mess, will 2005-09-07 Marco Pesenti Gritti * backend/ev-document.h: * backend/ev-link.c: (ev_link_type_get_type), (ev_link_get_top), (ev_link_get_left), (ev_link_get_zoom), (ev_link_get_property), (ev_link_set_property), (ev_window_dispose), (ev_link_class_init), (ev_link_new_page), (ev_link_new_page_xyz): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (doc_point_to_view_point), (scroll_to_xyz_link), (go_to_link), (tip_from_link): Implement xyz links, still not functional. Links are a total mess, will need to refactor and bugfix a lot :( --- (limited to 'backend/ev-link.h') diff --git a/backend/ev-link.h b/backend/ev-link.h index b79e2fa..8ee8429 100644 --- a/backend/ev-link.h +++ b/backend/ev-link.h @@ -43,6 +43,7 @@ typedef enum { EV_LINK_TYPE_TITLE, EV_LINK_TYPE_PAGE, + EV_LINK_TYPE_PAGE_XYZ, EV_LINK_TYPE_EXTERNAL_URI, /* We'll probably fill this in more as we support the other types of * links */ @@ -54,20 +55,21 @@ GType ev_link_get_type (void); EvLink *ev_link_new_title (const char *title); EvLink *ev_link_new_page (const char *title, int page); +EvLink *ev_link_new_page_xyz (const char *title, + int page, + double top, + double left, + double zoom); EvLink *ev_link_new_external (const char *title, const char *uri); + const char *ev_link_get_title (EvLink *link); -void ev_link_set_title (EvLink *link, - const char *title); const char *ev_link_get_uri (EvLink *link); -void ev_link_set_uri (EvLink *link, - const char *uri); EvLinkType ev_link_get_link_type (EvLink *link); -void ev_link_set_link_type (EvLink *link, - EvLinkType type); int ev_link_get_page (EvLink *link); -void ev_link_set_page (EvLink *link, - int page); +double ev_link_get_top (EvLink *link); +double ev_link_get_left (EvLink *link); +double ev_link_get_zoom (EvLink *link); /* Link Mapping stuff */ -- cgit v0.9.1