diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/xmlprmap.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xmloff/inc/xmloff/xmlprmap.hxx b/xmloff/inc/xmloff/xmlprmap.hxx index f43cb5435f26..b8d3f4a4ef55 100644 --- a/xmloff/inc/xmloff/xmlprmap.hxx +++ b/xmloff/inc/xmloff/xmlprmap.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlprmap.hxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -71,6 +71,7 @@ struct XMLPropertySetMapperEntry_Impl sal_uInt16 nXMLNameSpace; sal_Int32 nType; sal_Int16 nContextId; + SvtSaveOptions::ODFDefaultVersion nEarliestODFVersionForExport; const XMLPropertyHandler *pHdl; XMLPropertySetMapperEntry_Impl( @@ -146,6 +147,13 @@ public: return nIndex == -1 ? 0 : aMapEntries[nIndex].nContextId; } + /** returns the earliest odf version for which this property should be exported. */ + const SvtSaveOptions::ODFDefaultVersion GetEarliestODFVersionForExport( sal_Int32 nIndex ) const + { + DBG_ASSERT( (nIndex >= -1) && (nIndex < (sal_Int32)aMapEntries.size() ), "illegal access to invalid entry!" ); + return nIndex == -1 ? SvtSaveOptions::ODFVER_UNKNOWN : aMapEntries[nIndex].nEarliestODFVersionForExport; + } + /** Returns the index of an entry with the given XML-name and namespace If there is no matching entry the method returns -1 */ const sal_Int32 GetEntryIndex( sal_uInt16 nNamespace, |