From a92004b77fc73fe7ac2a781b5207249b2288b8c9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 8 Feb 2005 13:59:04 +0000 Subject: [PATCH] Add warnings about unimplemented/unknown link types. 2005-02-08 Marco Pesenti Gritti * pdf/xpdf/pdf-document.cc: Add warnings about unimplemented/unknown link types. --- ChangeLog | 7 +++++++ pdf/xpdf/pdf-document.cc | 17 +++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9671ca17..421e5c8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-02-08 Marco Pesenti Gritti + + * pdf/xpdf/pdf-document.cc: + + Add warnings about unimplemented/unknown link + types. + 2005-02-07 Marco Pesenti Gritti * ps/ps-document.c: (set_up_page): diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc index 255c5abd..ccdf64b4 100644 --- a/pdf/xpdf/pdf-document.cc +++ b/pdf/xpdf/pdf-document.cc @@ -814,6 +814,14 @@ build_link_from_action (PdfDocument *pdf_document, if (link_action == NULL) { link = ev_link_new_title (title); + } else if (link_action->getKind () == actionGoToR) { + g_warning ("actionGoToR links not implemented"); + } else if (link_action->getKind () == actionLaunch) { + g_warning ("actionLaunch links not implemented"); + } else if (link_action->getKind () == actionNamed) { + g_warning ("actionNamed links not implemented"); + } else if (link_action->getKind () == actionMovie) { + g_warning ("actionMovie links not implemented"); } else if (link_action->getKind () == actionGoTo) { LinkDest *link_dest; LinkGoTo *link_goto; @@ -851,8 +859,13 @@ build_link_from_action (PdfDocument *pdf_document, link_uri = dynamic_cast (link_action); link = ev_link_new_external (title, link_uri->getURI()->getCString()); - } else if (link_action->getKind () == actionNamed) { - /*Skip, for now */ + } else if (link_action->getKind () == actionUnknown) { + LinkUnknown *link_unknown; + + link_unknown = dynamic_cast (link_action); + + g_warning ("Unknown link type %s", + link_unknown->getAction()->getCString()); } return link; -- 2.43.5