summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-18 11:52:35 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-28 10:49:41 +0100
commit1bda66b9c0c1cc2b9dcf323a0a45e314b5d4410f (patch)
tree929d3f202ce37c617dd6e5411d612d9b1c9159b1 /src
parent8618e063c1ac0c9fdf60d5b401f8305d8b106d93 (diff)
VSDX: import <cp:category> as librevenge:category
Change-Id: Idb2367009d24c49d111227b8dca1b6e40045f8c9
Diffstat (limited to 'src')
-rw-r--r--src/lib/VSDXMetaData.cpp3
-rw-r--r--src/lib/tokens.txt1
-rw-r--r--src/test/importtest.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/VSDXMetaData.cpp b/src/lib/VSDXMetaData.cpp
index 8516690..4987cb2 100644
--- a/src/lib/VSDXMetaData.cpp
+++ b/src/lib/VSDXMetaData.cpp
@@ -82,6 +82,9 @@ void libvisio::VSDXMetaData::readCoreProperties(xmlTextReaderPtr reader)
case XML_CP_LASTMODIFIEDBY:
m_metaData.insert("dc:creator", readString(reader, XML_CP_LASTMODIFIEDBY));
break;
+ case XML_CP_CATEGORY:
+ m_metaData.insert("librevenge:category", readString(reader, XML_CP_CATEGORY));
+ break;
default:
break;
}
diff --git a/src/lib/tokens.txt b/src/lib/tokens.txt
index 2d0022b..6b01690 100644
--- a/src/lib/tokens.txt
+++ b/src/lib/tokens.txt
@@ -235,3 +235,4 @@ dcterms:created
dcterms:modified
dc:description
cp:lastModifiedBy
+cp:category
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index 2b1aec6..29b99fd 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -176,6 +176,7 @@ void ImportTest::testVsdxMetadataTitle()
assertXPath(m_doc, "/document/setDocumentMetaData", "keyword", "mytag");
assertXPath(m_doc, "/document/setDocumentMetaData", "description", "mycomment");
assertXPath(m_doc, "/document/setDocumentMetaData", "creator", "vmiklos modifier");
+ assertXPath(m_doc, "/document/setDocumentMetaData", "category", "mycategory");
}
void ImportTest::testVsdMetadataTitleMs1252()