Commit b29429c7 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

* qt4/src/poppler-qt4.h:

* qt4/src/poppler-page.cc: Add Page::duration() function to the qt4 frontend.
parent 62dfc589
2006-12-26 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-qt4.h:
* qt4/src/poppler-page.cc: Add Page::duration() function to the qt4
frontend.
2006-12-26 Albert Astals Cid <aacid@kde.org>
* glib/test-poppler-glib.c:
......
......@@ -1221,5 +1221,13 @@ QList<Annotation*> Page::annotations() const
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;
}
}
......@@ -372,7 +372,14 @@ namespace Poppler {
/**
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment