diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-07 22:41:12 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-07 22:41:12 +0100 |
commit | 5e4687547bcfa0c894f8c33ff256e0f130c24122 (patch) | |
tree | 6def56c6fa4a8cb5a3f9994c73bb1fac2b48f9b7 /oox/source/export/chartexport.cxx | |
parent | 0056fe28c7bd8e72cd5bdd335f098d00cd0d5d11 (diff) |
Remove dead code
Diffstat (limited to 'oox/source/export/chartexport.cxx')
-rw-r--r-- | oox/source/export/chartexport.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index e15a9a727030..583fbd022f59 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -225,24 +225,6 @@ Reference< chart2::data::XLabeledDataSequence > lcl_getCategories( const Referen ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr()); } - /* - //unused ranges are very problematic as they bear the risk to damage the rectangular structure completly - if(!xResult.is()) - { - Sequence< Reference< chart2::data::XLabeledDataSequence > > aUnusedSequences( xDiagram->getUnusedData() ); - - lcl_MatchesRole aHasCategories( OUString(RTL_CONSTASCII_USTRINGPARAM("categories")) ); - for( sal_Int32 nN=0; nN<aUnusedSequences.getLength(); nN++ ) - { - if( aHasCategories( aUnusedSequences[nN] ) ) - { - xResult.set( aUnusedSequences[nN] ); - break; - } - } - } - */ - return xResult; } @@ -1088,10 +1070,6 @@ void ChartExport::exportLegend( Reference< ::com::sun::star::chart::XChartDocume exportShapeProps( xProp ); } - // manula layout - - // text properties - // legendEntry pFS->endElement( FSNS( XML_c, XML_legend ) ); @@ -1334,15 +1312,12 @@ void ChartExport::exportBarChart( Reference< chart2::XChartType > xChartType ) sShapeType = "box"; break; case cssc::ChartSolidType::CONE: - //case cssc::DataPointGeometry3D::CONE: sShapeType = "cone"; break; case cssc::ChartSolidType::CYLINDER: - //case cssc::DataPointGeometry3D::CYLINDER: sShapeType = "cylinder"; break; case cssc::ChartSolidType::PYRAMID: - //case cssc::DataPointGeometry3D::PYRAMID: sShapeType = "pyramid"; break; } @@ -1790,9 +1765,6 @@ void ChartExport::exportCandleStickSeries( Sequence< Reference< chart2::data::XLabeledDataSequence > > aSeqCnt( xSource->getDataSequences()); - //sal_Int32 nSeriesLength = - // lcl_getSequenceLengthByRole( aSeqCnt, OUString(RTL_CONSTASCII_USTRINGPARAM("values-last"))); - Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY ); const char* sSeries[] = {"values-first","values-max","values-min","values-last",0}; for( sal_Int32 idx = 0; sSeries[idx] != 0 ; idx++ ) @@ -1943,7 +1915,6 @@ void ChartExport::exportSeriesValues( const Reference< chart2::data::XDataSequen { FSHelperPtr pFS = GetFS(); Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY ); - // sal_Int32 nValueType = XML_val; pFS->startElement( FSNS( XML_c, nValueType ), FSEND ); @@ -2059,18 +2030,6 @@ void ChartExport::exportAxes( ) for( sal_Int32 nIdx = 0; nIdx < nSize; nIdx++ ) { exportAxis( maAxes[nIdx] ); - /* - sal_Int32 nAxisId = maAxes[nIdx].nAxisId; - switch( nAxisId ) - { - case AXIS_PRIMARY_X: - exportXAxis( maAxes[nIdx] ); - break; - case AXIS_PRIMARY_Y: - exportYAxis( maAxes[nIdx] ); - break; - } - */ } } @@ -2615,12 +2574,8 @@ void ChartExport::exportDataPoints( OUString( RTL_CONSTASCII_USTRINGPARAM( "VaryColorsByPoint" ))) >>= bVaryColorsByPoint; } - //sal_Int32 nSize = aDataPointSeq.getLength(); - //DBG_ASSERT( nSize <= nSeriesLength, "Too many point attributes" ); - const sal_Int32 * pPoints = aDataPointSeq.getConstArray(); sal_Int32 nElement; - //sal_Int32 nRepeat; Reference< chart2::XColorScheme > xColorScheme; if( mxNewDiagram.is()) xColorScheme.set( mxNewDiagram->getDefaultColorScheme()); |