diff options
author | Eike Rathke <erack@redhat.com> | 2013-12-17 21:16:04 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-12-20 03:50:44 +0100 |
commit | cd2de2713e27395d2ad7a50d73b21213b3b05202 (patch) | |
tree | f066322acd0376f3bd2c99735c360e245d080aad /include | |
parent | ad887f0d215de345e70a1544ce5c042ac39e889d (diff) |
prepared XMLPropertyMapEntry with mbImportOnly flag
Change-Id: Id5a54a591a42c836884af1fd09dc055f2fce6db5
(cherry picked from commit 9dd7ee88bd9835ae2bae36093100fcd651fd3aeb)
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/maptype.hxx | 8 | ||||
-rw-r--r-- | include/xmloff/xmlprmap.hxx | 1 |
2 files changed, 9 insertions, 0 deletions
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( |