summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-06-04 08:46:43 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-06-04 08:46:43 +0000
commit6108aefb866b474543c34573d2c7f52e209c0be7 (patch)
tree3364d035c3fd7d3bf0aadb6e83c5c5e83439ebd7 /xmloff
parent2f837b04056af344cf5c94c19118ac1eeca0bd67 (diff)
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
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/xmloff/xmlprmap.hxx10
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,