summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-28 14:13:39 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-28 14:24:36 +0100
commitd4684217ee9dd48e3352430e6d869824642f4082 (patch)
treece57492f49b18d6e305454558ef523e3356dcea9 /src
parentdb443edcc59a9d48395e25f04a4c380d15877e4e (diff)
VSD: import description
Change-Id: I33b47f4ee903f9f4d07383df0552284de7401d7b
Diffstat (limited to 'src')
-rw-r--r--src/lib/VSDMetaData.cpp4
-rw-r--r--src/test/importtest.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/VSDMetaData.cpp b/src/lib/VSDMetaData.cpp
index 44e6f62..0288392 100644
--- a/src/lib/VSDMetaData.cpp
+++ b/src/lib/VSDMetaData.cpp
@@ -97,6 +97,7 @@ void libvisio::VSDMetaData::readPropertyIdentifierAndOffset(librevenge::RVNGInpu
#define PIDSI_SUBJECT 0x00000003
#define PIDSI_AUTHOR 0x00000004
#define PIDSI_KEYWORDS 0x00000005
+#define PIDSI_COMMENTS 0x00000006
void libvisio::VSDMetaData::readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset)
{
@@ -132,6 +133,9 @@ void libvisio::VSDMetaData::readTypedPropertyValue(librevenge::RVNGInputStream *
case PIDSI_KEYWORDS:
m_metaData.insert("meta:keyword", string);
break;
+ case PIDSI_COMMENTS:
+ m_metaData.insert("dc:description", string);
+ break;
}
}
}
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index 41f2b0c..bb3388e 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -158,6 +158,7 @@ void ImportTest::testVsdMetadataTitleMs1252()
assertXPath(m_doc, "/document/setDocumentMetaData", "subject", "mysubject");
assertXPath(m_doc, "/document/setDocumentMetaData", "initial-creator", "vmiklos creator");
assertXPath(m_doc, "/document/setDocumentMetaData", "keyword", "mytag");
+ assertXPath(m_doc, "/document/setDocumentMetaData", "description", "mycomment");
}
void ImportTest::testVsdMetadataTitleUtf8()