read the Open attribute from the poppler toc

the attribute is in poppler HEAD (future 0.6), but it's not incompatible with the 0.5.x serie

svn path=/trunk/KDE/kdegraphics/okular/; revision=654773
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 0b77d7011c
commit 55a06c9b00
  1. 1
      generators/poppler/generator_pdf.cpp

@ -1047,6 +1047,7 @@ void PDFGenerator::addSynopsisChildren( QDomNode * parent, QDomNode * parentDest
fillViewportFromLinkDestination( vp, Poppler::LinkDestination(e.attribute("Destination")), pdfdoc );
item.setAttribute( "Viewport", vp.toString() );
}
if (!e.attribute("Open").isNull()) item.setAttribute("Open", e.attribute("Open"));
// descend recursively and advance to the next node
if ( e.hasChildNodes() ) addSynopsisChildren( &n, & item );

Loading…
Cancel
Save