diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-30 22:15:29 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-30 22:16:48 +0100 |
commit | 9cbe861b8f5e53a0aa83b863b1bf42224139dcfc (patch) | |
tree | 5aa9a4f560839be6b0351ffdd271bdc28c1ab0d3 | |
parent | d4684217ee9dd48e3352430e6d869824642f4082 (diff) |
VSDX: import lastModifiedBy
Change-Id: I5136c53cbca0b3dc1300e49bf82f290d8ff86ed8
-rw-r--r-- | src/lib/VSDXMetaData.cpp | 2 | ||||
-rw-r--r-- | src/lib/tokens.txt | 1 | ||||
-rw-r--r-- | src/test/importtest.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/VSDXMetaData.cpp b/src/lib/VSDXMetaData.cpp index 7a0ff83..fd38811 100644 --- a/src/lib/VSDXMetaData.cpp +++ b/src/lib/VSDXMetaData.cpp @@ -77,6 +77,8 @@ void libvisio::VSDXMetaData::readCoreProperties(xmlTextReaderPtr reader) m_metaData.insert("meta:keyword", readString(reader, XML_CP_KEYWORDS)); case XML_DC_DESCRIPTION: m_metaData.insert("dc:description", readString(reader, XML_DC_DESCRIPTION)); + case XML_CP_LASTMODIFIEDBY: + m_metaData.insert("dc:creator", readString(reader, XML_CP_LASTMODIFIEDBY)); default: break; } diff --git a/src/lib/tokens.txt b/src/lib/tokens.txt index 617fb1a..2d0022b 100644 --- a/src/lib/tokens.txt +++ b/src/lib/tokens.txt @@ -234,3 +234,4 @@ dc:title dcterms:created dcterms:modified dc:description +cp:lastModifiedBy diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp index bb3388e..a69bcef 100644 --- a/src/test/importtest.cpp +++ b/src/test/importtest.cpp @@ -147,6 +147,7 @@ void ImportTest::testVsdxMetadataTitle() assertXPath(m_doc, "/document/setDocumentMetaData", "date", "2014-11-24T10:41:22Z"); assertXPath(m_doc, "/document/setDocumentMetaData", "keyword", "mytag"); assertXPath(m_doc, "/document/setDocumentMetaData", "description", "mycomment"); + assertXPath(m_doc, "/document/setDocumentMetaData", "creator", "vmiklos modifier"); } void ImportTest::testVsdMetadataTitleMs1252() |