From b9aef17e3af39e3b9364a3e2a8d7fa56d735fc4c Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 19 Sep 2005 14:34:15 +0000 Subject: Implement FIT and FITH links 2005-09-19 Marco Pesenti Gritti * backend/ev-link.c: (ev_link_type_get_type), (ev_link_new_page_xyz), (ev_link_new_page_fit), (ev_link_new_page_fith): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_fith_link), (ev_view_goto_link): Implement FIT and FITH links --- (limited to 'pdf') diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 03a27a6..5633840 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -720,10 +720,13 @@ ev_link_from_dest (PopplerAction *action) action->goto_dest.dest->zoom); break; case POPPLER_DEST_FIT: - unimplemented_dest = "POPPLER_DEST_FIT"; + link = ev_link_new_page_fit (action->any.title, + action->goto_dest.dest->page_num - 1); break; case POPPLER_DEST_FITH: - unimplemented_dest = "POPPLER_DEST_FITH"; + link = ev_link_new_page_fith (action->any.title, + action->goto_dest.dest->page_num - 1, + action->goto_dest.dest->top); break; case POPPLER_DEST_FITV: unimplemented_dest = "POPPLER_DEST_FITV"; -- cgit v0.9.1