diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 11:05:09 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 11:05:09 +0000 |
commit | 12533d4f0a52cbd8b273eb7b36574ac2c95b40f0 (patch) | |
tree | 448d2824e26ec95d7bd8e6347824c34dae689783 /xmloff | |
parent | cd47d6ca12b9495dcc98384c7a81747f1f907958 (diff) |
INTEGRATION: CWS chart12 (1.40.4); FILE MERGED
2007/08/08 18:53:54 iha 1.40.4.2: #i78615# missing symbol size is not interpreted correctly for bitmap symbols
2007/08/07 14:13:29 iha 1.40.4.1: #i80250# symbol style automatic is not saved correctly, #i78615# automatic symbol size are not loaded correctly
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index 0520e85c47a9..68d73b881654 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -4,9 +4,9 @@ * * $RCSfile: SchXMLPlotAreaContext.cxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.41 $ * - * last change: $Author: rt $ $Date: 2007-07-25 08:06:44 $ + * last change: $Author: ihi $ $Date: 2007-08-17 12:05:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -453,13 +453,21 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext( mrImportHelper.GetChartFamilyID(), msAutoStyleName ); - if( pStyle && pStyle->ISA( XMLPropStyleContext )) + XMLPropStyleContext* pPropStyleContext = + const_cast< XMLPropStyleContext * >( + dynamic_cast< const XMLPropStyleContext * >( pStyle ) ); + if( pPropStyleContext ) { - (( XMLPropStyleContext* )pStyle )->FillPropertySet( xProp ); + pPropStyleContext->FillPropertySet( xProp ); // get the data row source that was set without having data xProp->getPropertyValue( ::rtl::OUString::createFromAscii("DataRowSource")) >>= mrDataRowSource; + + //lines on/off + //this old property is not supported fully anymore with the new chart, so we need to get the information a little bit different from similar properties + mrSeriesDefaultsAndStyles.maLinesOnProperty = SchXMLTools::getPropertyFromContext( + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Lines")), pPropStyleContext, pStylesCtxt ); } } } @@ -489,9 +497,6 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri mrSeriesDefaultsAndStyles.maPercentDefault >>= mbPercentStacked; mrSeriesDefaultsAndStyles.maStackedBarsConnectedDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StackedBarsConnected"))); - //lines on/off - mrSeriesDefaultsAndStyles.maLinesOnProperty = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Lines"))); - // deep uno::Any aDeepProperty( xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Deep")))); // #124488# old versions store a 3d area and 3D line deep chart with Deep==false => workaround for this @@ -1362,12 +1367,14 @@ SchXMLDataPointContext::SchXMLDataPointContext( SchXMLImportHelper& rImpHelper, ::std::list< DataRowPointStyle >& rStyleList, const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries, - sal_Int32& rIndex ) : + sal_Int32& rIndex, + bool bSymbolSizeForSeriesIsMissingInFile ) : SvXMLImportContext( rImport, XML_NAMESPACE_CHART, rLocalName ), mrImportHelper( rImpHelper ), mrStyleList( rStyleList ), m_xSeries( xSeries ), - mrIndex( rIndex ) + mrIndex( rIndex ), + mbSymbolSizeForSeriesIsMissingInFile( bSymbolSizeForSeriesIsMissingInFile ) { } @@ -1402,6 +1409,7 @@ void SchXMLDataPointContext::StartElement( const uno::Reference< xml::sax::XAttr DataRowPointStyle aStyle( DataRowPointStyle::DATA_POINT, m_xSeries, mrIndex, nRepeat, sAutoStyleName ); + aStyle.mbSymbolSizeForSeriesIsMissingInFile = mbSymbolSizeForSeriesIsMissingInFile; mrStyleList.push_back( aStyle ); } mrIndex += nRepeat; |