File 0001-qt4-Prevent-warnings-on-not-handled-enumeration-valu.patch of Package mingw32-poppler

From a9fe2e7d196bc19908795bf0a4cff05f5d3b19a7 Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Sat, 3 Jul 2010 11:06:19 +0200
Subject: [PATCH 1/3] qt4: Prevent warnings on not handled enumeration values

---
 qt4/src/poppler-annotation.cc |    5 +++++
 qt4/src/poppler-page.cc       |    8 ++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/qt4/src/poppler-annotation.cc b/qt4/src/poppler-annotation.cc
index 5ecea80..5fd8d93 100644
--- a/qt4/src/poppler-annotation.cc
+++ b/qt4/src/poppler-annotation.cc
@@ -3702,6 +3702,11 @@ void LinkAnnotation::store( QDomNode & node, QDomDocument & document ) const
                 // FIXME: implement me
                 break;
             }
+            case Poppler::Link::JavaScript:
+            {
+                // FIXME: implement me
+                break;
+            }
             case Poppler::Link::None:
                 break;
         }
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc
index 5475614..691feb1 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -34,6 +34,7 @@
 
 #include <QtCore/QHash>
 #include <QtCore/QMap>
+#include <QtCore/QDebug>
 #include <QtCore/QVarLengthArray>
 #include <QtGui/QImage>
 #include <QtGui/QPainter>
@@ -208,6 +209,13 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo
     }
     break;
 
+    case actionOCGState:
+    {
+         /* FIXME: implement me */
+         qDebug() << "actionOCGState not implemented";
+    }
+    break;
+
     case actionUnknown:
     break;
   }
-- 
1.7.5.4

openSUSE Build Service is sponsored by