|
|
|
@ -1729,7 +1729,7 @@ void XpsDocument::parseDocumentStructure( const QString &documentStructureFileNa |
|
|
|
synopsisElement.setAttribute( QStringLiteral("Viewport"), viewport.toString() ); |
|
|
|
synopsisElement.setAttribute( QStringLiteral("Viewport"), viewport.toString() ); |
|
|
|
if ( outlineLevel == 1 ) { |
|
|
|
if ( outlineLevel == 1 ) { |
|
|
|
// qCWarning(OkularXpsDebug) << "Description: "
|
|
|
|
// qCWarning(OkularXpsDebug) << "Description: "
|
|
|
|
// << outlineEntryElement.attribute( "Description" ) << endl;
|
|
|
|
// << outlineEntryElement.attribute( "Description" );
|
|
|
|
m_docStructure->appendChild( synopsisElement ); |
|
|
|
m_docStructure->appendChild( synopsisElement ); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// find the last next highest element (so it this is level 3, we need
|
|
|
|
// find the last next highest element (so it this is level 3, we need
|
|
|
|
@ -1827,14 +1827,14 @@ XpsDocument::XpsDocument(XpsFile *file, const QString &fileName): m_file(file), |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
qCWarning(OkularXpsDebug) << "Unknown document relationships element: " |
|
|
|
qCWarning(OkularXpsDebug) << "Unknown document relationships element: " |
|
|
|
<< attributes.value( QStringLiteral("Type") ).toString() << " : " |
|
|
|
<< attributes.value( QStringLiteral("Type") ).toString() << " : " |
|
|
|
<< attributes.value( QStringLiteral("Target") ).toString() << endl; |
|
|
|
<< attributes.value( QStringLiteral("Target") ).toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ( xml.error() ) { |
|
|
|
if ( xml.error() ) { |
|
|
|
qCWarning(OkularXpsDebug) << "Could not parse XPS page relationships file ( " |
|
|
|
qCWarning(OkularXpsDebug) << "Could not parse XPS page relationships file ( " |
|
|
|
<< documentRelationshipFile |
|
|
|
<< documentRelationshipFile |
|
|
|
<< " ) - " << xml.errorString() << endl; |
|
|
|
<< " ) - " << xml.errorString(); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { // the page relationship file didn't exist in the zipfile
|
|
|
|
} else { // the page relationship file didn't exist in the zipfile
|
|
|
|
// this isn't fatal
|
|
|
|
// this isn't fatal
|
|
|
|
|