diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-09-07 12:36:54 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-09-07 12:36:54 (GMT) |
commit | 9f8ec2d921de1c31da212c8486ab2bda85d51bf9 (patch) | |
tree | 345fe0da287b75b87d1957bc84d4ce3cbb0260ff /backend/ev-link.h | |
parent | 91cff90ba3ab0a2ee2be958c2efac1181be9bf3e (diff) |
Implement xyz links, still not functional. Links are a total mess, will
2005-09-07 Marco Pesenti Gritti <mpg@redhat.com>
* 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 :(
Diffstat (limited to 'backend/ev-link.h')
-rw-r--r-- | backend/ev-link.h | 18 |
1 files changed, 10 insertions, 8 deletions
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 */ |