[poppler] poppler/qt4/src: poppler-page.cc, 1.30, 1.31 poppler-qt4.h, 1.39, 1.40

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Dec 26 12:07:05 PST 2006


Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv6647/qt4/src

Modified Files:
	poppler-page.cc poppler-qt4.h 
Log Message:
* qt4/src/poppler-qt4.h:
* qt4/src/poppler-page.cc: Add Page::duration() function to the qt4 frontend.


Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-page.cc,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- poppler-page.cc	19 Nov 2006 18:51:23 -0000	1.30
+++ poppler-page.cc	26 Dec 2006 20:07:03 -0000	1.31
@@ -1221,5 +1221,13 @@
     return annotationsMap.values();
 }
 
+double Page::duration() const
+{
+  ::Page *p;
+  p = m_page->parentDoc->m_doc->doc.getCatalog()->getPage(m_page->index + 1);
+  if (p) return p->getDuration();
+  else return -1;
+}
+
 
 }

Index: poppler-qt4.h
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-qt4.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- poppler-qt4.h	19 Nov 2006 12:59:48 -0000	1.39
+++ poppler-qt4.h	26 Dec 2006 20:07:03 -0000	1.40
@@ -372,7 +372,14 @@
 	/**
 	 Returns the annotations of the page
 	*/
-	QList<Annotation*> annotations () const;
+	QList<Annotation*> annotations() const;
+
+	/**
+	 Returns the page duration. That is the time, in seconds, that the page
+	 should be displayed before the presentation automatically advances to the next page.
+	 Returns < 0 if duration is not set.
+	*/
+	double duration() const;
 	
     private:
 	Page(const Document *doc, int index);



More information about the poppler mailing list