]> www.fi.muni.cz Git - evince.git/commitdiff
Add warnings about unimplemented/unknown link types.
authorMarco Pesenti Gritti <marco@gnome.org>
Tue, 8 Feb 2005 13:59:04 +0000 (13:59 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 8 Feb 2005 13:59:04 +0000 (13:59 +0000)
2005-02-08  Marco Pesenti Gritti  <marco@gnome.org>

        * pdf/xpdf/pdf-document.cc:

        Add warnings about unimplemented/unknown link
        types.

ChangeLog
pdf/xpdf/pdf-document.cc

index 9671ca1738b28c068c89a88d31fa9f8534b2c139..421e5c8e1671ac3db3443a448f0961fdc0005f0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-08  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * pdf/xpdf/pdf-document.cc:
+
+       Add warnings about unimplemented/unknown link
+       types.
+
 2005-02-07  Marco Pesenti Gritti  <marco@gnome.org>
 
        * ps/ps-document.c: (set_up_page):
index 255c5abd17f1fa6c50cc94c35211c9826c5f71b1..ccdf64b4ad8b9de352e8e8310440e26ceda4fd28 100644 (file)
@@ -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 <LinkURI *> (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 <LinkUnknown *> (link_action);
+
+               g_warning ("Unknown link type %s",
+                          link_unknown->getAction()->getCString());
        }
 
        return link;