Kaydet (Commit) 0081cdaa authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS odfversionedexport (1.53.20); FILE MERGED

2008/04/30 15:07:20 iha 1.53.20.1: #i88889# ODF: Omit export of OFD 1.2 chart features when 1.1 is set
üst ab8e1c06
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: PropertyMaps.cxx,v $ * $RCSfile: PropertyMaps.cxx,v $
* $Revision: 1.53 $ * $Revision: 1.54 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include <xmloff/xmlexp.hxx> #include <xmloff/xmlexp.hxx>
#include <xmloff/xmltoken.hxx> #include <xmloff/xmltoken.hxx>
#include "XMLErrorIndicatorPropertyHdl.hxx" #include "XMLErrorIndicatorPropertyHdl.hxx"
#include "XMLErrorBarStylePropertyHdl.hxx"
#include "XMLTextOrientationHdl.hxx" #include "XMLTextOrientationHdl.hxx"
#include "XMLSymbolTypePropertyHdl.hxx" #include "XMLSymbolTypePropertyHdl.hxx"
#include <com/sun/star/chart/ChartAxisMarks.hpp> #include <com/sun/star/chart/ChartAxisMarks.hpp>
...@@ -100,7 +101,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32 ...@@ -100,7 +101,7 @@ const XMLPropertyHandler* XMLChartPropHdlFactory::GetPropertyHandler( sal_Int32
case XML_SCH_TYPE_ERROR_BAR_STYLE: case XML_SCH_TYPE_ERROR_BAR_STYLE:
// here we have a constant rather than an enum // here we have a constant rather than an enum
pHdl = new XMLEnumPropertyHdl( aXMLChartErrorBarStyleEnumMap, pHdl = new XMLErrorBarStylePropertyHdl( aXMLChartErrorBarStyleEnumMap,
::getCppuType((const sal_Int32*)0) ); ::getCppuType((const sal_Int32*)0) );
break; break;
...@@ -409,8 +410,14 @@ void XMLChartExportPropertyMapper::handleSpecialItem( ...@@ -409,8 +410,14 @@ void XMLChartExportPropertyMapper::handleSpecialItem(
rProperty.maValue >>= nValue; rProperty.maValue >>= nValue;
if((( nValue & chart::ChartDataCaption::VALUE ) == chart::ChartDataCaption::VALUE )) if((( nValue & chart::ChartDataCaption::VALUE ) == chart::ChartDataCaption::VALUE ))
{ {
if(( nValue & chart::ChartDataCaption::PERCENT ) == chart::ChartDataCaption::PERCENT ) if( ( nValue & chart::ChartDataCaption::PERCENT ) == chart::ChartDataCaption::PERCENT )
{
const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
if( nCurrentVersion < SvtSaveOptions::ODFVER_012 )
sValueBuffer.append( GetXMLToken( XML_PERCENTAGE ));
else
sValueBuffer.append( GetXMLToken( XML_VALUE_AND_PERCENTAGE )); sValueBuffer.append( GetXMLToken( XML_VALUE_AND_PERCENTAGE ));
}
else else
sValueBuffer.append( GetXMLToken( XML_VALUE )); sValueBuffer.append( GetXMLToken( XML_VALUE ));
} }
......
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