[poppler] 2 commits - qt4/src

Pino Toscano pino at kemper.freedesktop.org
Tue Jun 15 14:51:35 PDT 2010


 qt4/src/poppler-annotation.cc |    3 +++
 qt4/src/poppler-link.h        |    3 ++-
 qt4/src/poppler-page.cc       |    2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 71ad18c3b6b73e23d71600d07ce00bdfaf0bef60
Author: Pino Toscano <pino at kde.org>
Date:   Tue Jun 15 23:51:01 2010 +0200

    [Qt4] recognize the 'Print' named action here too

diff --git a/qt4/src/poppler-annotation.cc b/qt4/src/poppler-annotation.cc
index 98573c0..66715d5 100644
--- a/qt4/src/poppler-annotation.cc
+++ b/qt4/src/poppler-annotation.cc
@@ -1603,6 +1603,9 @@ void LinkAnnotation::store( QDomNode & node, QDomDocument & document ) const
                     case Poppler::LinkAction::Close:
                         hyperlinkElement.setAttribute( "action", "Close" );
                         break;
+                    case Poppler::LinkAction::Print:
+                        hyperlinkElement.setAttribute( "action", "Print" );
+                        break;
                 }
                 break;
             }
commit 96f60f2748ba76de0d296a9838dbd7181f506e36
Author: Guillermo Amaral <gamaral at kdab.com>
Date:   Tue Jun 15 23:47:46 2010 +0200

    [Qt4] recognize 'Print' as name in named actions

diff --git a/qt4/src/poppler-link.h b/qt4/src/poppler-link.h
index 6d42cbe..48b558d 100644
--- a/qt4/src/poppler-link.h
+++ b/qt4/src/poppler-link.h
@@ -357,7 +357,8 @@ class POPPLER_QT4_EXPORT LinkAction : public Link
 		                  EndPresentation = 9,
 		                  Find = 10,
 		                  GoToPage = 11,
-		                  Close = 12 };
+		                  Close = 12,
+		                  Print = 13 };
 
 		/**
 		 * The action of the current LinkAction
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc
index 6dbf50f..8aea6ce 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -129,6 +129,8 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo
         popplerLink = new LinkAction( linkArea, LinkAction::Find );
       else if ( !strcmp( name, "FullScreen" ) )
         popplerLink = new LinkAction( linkArea, LinkAction::Presentation );
+      else if ( !strcmp( name, "Print" ) )
+        popplerLink = new LinkAction( linkArea, LinkAction::Print );
       else if ( !strcmp( name, "Close" ) )
       {
         // acroread closes the document always, doesnt care whether 


More information about the poppler mailing list