Kaydet (Commit) 6108aefb authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS odfversionedexport (1.3.22); FILE MERGED

2008/04/30 14:49:12 iha 1.3.22.1: #i88889# ODF: Omit export of OFD 1.2 properties when 1.1 is set
üst 2f837b04
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment