From cd2de2713e27395d2ad7a50d73b21213b3b05202 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 17 Dec 2013 21:16:04 +0100 Subject: prepared XMLPropertyMapEntry with mbImportOnly flag Change-Id: Id5a54a591a42c836884af1fd09dc055f2fce6db5 (cherry picked from commit 9dd7ee88bd9835ae2bae36093100fcd651fd3aeb) --- include/xmloff/maptype.hxx | 8 ++++++++ include/xmloff/xmlprmap.hxx | 1 + 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/xmloff/maptype.hxx b/include/xmloff/maptype.hxx index 36482e2b0d32..97e62d4b3803 100644 --- a/include/xmloff/maptype.hxx +++ b/include/xmloff/maptype.hxx @@ -43,6 +43,14 @@ struct XMLPropertyMapEntry to im/export the porperty */ sal_Int16 mnContextId; /// User defined id for context filtering SvtSaveOptions::ODFDefaultVersion mnEarliestODFVersionForExport;// no export when the used ODF version is lower than this + + /** Flag to specify whether entry is only used during import. + + Allows to handle more than one Namespace/XML-Name to Property-Name + mapping, i.e. for extensions. If several entries for the same + Property-Name exist, all except one must have this flag set. + */ + bool mbImportOnly; }; /////////////////////////////////////////////////////////////////////////// diff --git a/include/xmloff/xmlprmap.hxx b/include/xmloff/xmlprmap.hxx index e0448a8d6f5e..37f56330c617 100644 --- a/include/xmloff/xmlprmap.hxx +++ b/include/xmloff/xmlprmap.hxx @@ -59,6 +59,7 @@ struct XMLPropertySetMapperEntry_Impl sal_uInt16 nXMLNameSpace; sal_Int16 nContextId; SvtSaveOptions::ODFDefaultVersion nEarliestODFVersionForExport; + bool bImportOnly; const XMLPropertyHandler *pHdl; XMLPropertySetMapperEntry_Impl( -- cgit