Store away the digital signature origin.

This prevents a warning on loading files containing
signatures, and is also a start towards proper handling
of digital signatures.

svn path=/trunk/playground/graphics/okular/; revision=634423
remotes/origin/KDE/4.0
Brad Hards 19 years ago
parent d5ec64e34c
commit e29e44ff89
  1. 2
      generators/xps/generator_xps.cpp
  2. 3
      generators/xps/generator_xps.h

@ -925,6 +925,8 @@ bool XpsFile::loadDocument(const QString &filename)
fixedRepresentationFileName = e.attribute("Target");
} else if ("http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" == e.attribute("Type") ) {
m_corePropertiesFileName = e.attribute("Target");
} else if ("http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin" == e.attribute("Type") ) {
m_signatureOrigin = e.attribute("Target");
} else {
kDebug() << "Unknown relationships element: " << e.attribute("Type") << " : " << e.attribute("Target") << endl;
}

@ -191,7 +191,6 @@ private:
QImage *m_pageImage;
bool m_pageIsRendered;
friend class XpsHandler;
friend class XpsTextExtractionHandler;
};
@ -292,6 +291,8 @@ private:
QString m_corePropertiesFileName;
Okular::DocumentInfo * m_docInfo;
QString m_signatureOrigin;
KZip * m_xpsArchive;
QMap<QString, int> m_fontCache;

Loading…
Cancel
Save