summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-26 10:58:17 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-26 10:59:02 +0100
commit20434231174c9638c0c997199447ee638613a0a3 (patch)
tree3f3bb5157670353edee80fb929da964495aa0dd5
parenta3d033a7561cfca087d86632e2e3f0b215a1222e (diff)
VSD: import author
Change-Id: I3c73b61217ad8779ad9786acbe58ffada647ffbd
-rw-r--r--src/lib/VSDMetaData.cpp4
-rw-r--r--src/test/data/fdo86729-ms1252.vsdbin39936 -> 39936 bytes
-rw-r--r--src/test/importtest.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/VSDMetaData.cpp b/src/lib/VSDMetaData.cpp
index ffac751..f1026fc 100644
--- a/src/lib/VSDMetaData.cpp
+++ b/src/lib/VSDMetaData.cpp
@@ -95,6 +95,7 @@ void libvisio::VSDMetaData::readPropertyIdentifierAndOffset(librevenge::RVNGInpu
#define PIDSI_TITLE 0x00000002
#define PIDSI_SUBJECT 0x00000003
+#define PIDSI_AUTHOR 0x00000004
void libvisio::VSDMetaData::readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset)
{
@@ -124,6 +125,9 @@ void libvisio::VSDMetaData::readTypedPropertyValue(librevenge::RVNGInputStream *
case PIDSI_SUBJECT:
m_metaData.insert("dc:subject", string);
break;
+ case PIDSI_AUTHOR:
+ m_metaData.insert("meta:initial-creator", string);
+ break;
}
}
}
diff --git a/src/test/data/fdo86729-ms1252.vsd b/src/test/data/fdo86729-ms1252.vsd
index e5fb12e..2d2ee35 100644
--- a/src/test/data/fdo86729-ms1252.vsd
+++ b/src/test/data/fdo86729-ms1252.vsd
Binary files differ
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index b42d256..9567453 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -154,6 +154,7 @@ void ImportTest::testVsdMetadataTitleMs1252()
assertXPath(m_doc, "/document/setDocumentMetaData", "title", "mytitle\xC3\xA9\xC3\xA1");
assertXPath(m_doc, "/document/setDocumentMetaData", "subject", "mysubject");
+ assertXPath(m_doc, "/document/setDocumentMetaData", "initial-creator", "vmiklos creator");
}
void ImportTest::testVsdMetadataTitleUtf8()