Files
libreoffice/xmloff/source/chart/SchXMLImport.cxx

1068 lines
39 KiB
C++
Raw Normal View History

2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 16:07:07 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:07:07 +00:00
*
* $RCSfile: SchXMLImport.cxx,v $
* $Revision: 1.41 $
2000-09-18 16:07:07 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 16:07:07 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 16:07:07 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_xmloff.hxx"
2000-09-18 16:07:07 +00:00
#include "SchXMLImport.hxx"
#include "SchXMLChartContext.hxx"
#include "contexts.hxx"
#include "XMLChartPropertySetMapper.hxx"
#include "SchXMLTools.hxx"
2000-09-18 16:07:07 +00:00
#include <tools/debug.hxx>
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
#include <rtl/ustrbuf.hxx>
// header for class ByteString
#include <tools/string.hxx>
#include <comphelper/processfactory.hxx>
2000-09-18 16:07:07 +00:00
#include "xmlnmspe.hxx"
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmlictxt.hxx>
#include <xmloff/xmlstyle.hxx>
2000-09-18 16:07:07 +00:00
#include <com/sun/star/task/XStatusIndicatorSupplier.hpp>
#include <com/sun/star/chart/XChartDocument.hpp>
#include <com/sun/star/chart/XChartDataArray.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/chart2/data/XDataReceiver.hpp>
#include <com/sun/star/chart2/data/XDataProvider.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
#include <typeinfo>
2000-09-18 16:07:07 +00:00
using namespace com::sun::star;
using namespace ::xmloff::token;
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
using ::rtl::OUStringToOString;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
namespace
{
Reference< uno::XComponentContext > lcl_getComponentContext()
{
Reference< uno::XComponentContext > xContext;
try
{
Reference< beans::XPropertySet > xFactProp( comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
if( xFactProp.is())
xFactProp->getPropertyValue(OUString::createFromAscii("DefaultContext")) >>= xContext;
}
catch( uno::Exception& )
{}
return xContext;
}
class lcl_MatchesChartType : public ::std::unary_function< Reference< chart2::XChartType >, bool >
{
public:
explicit lcl_MatchesChartType( const OUString & aChartTypeName ) :
m_aChartTypeName( aChartTypeName )
{}
bool operator () ( const Reference< chart2::XChartType > & xChartType ) const
{
return (xChartType.is() &&
xChartType->getChartType().equals( m_aChartTypeName ));
}
private:
OUString m_aChartTypeName;
};
} // anonymous namespace
2000-09-18 16:07:07 +00:00
/* ----------------------------------------
TokenMaps for distinguishing different
tokens in different contexts
----------------------------------------*/
// ----------------------------------------
// element maps
// ----------------------------------------
2000-09-18 16:07:07 +00:00
// ----------------------------------------
// attribute maps
// ----------------------------------------
2000-09-18 16:07:07 +00:00
// ========================================
SchXMLImportHelper::SchXMLImportHelper() :
mpAutoStyles( 0 ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
mpChartDocElemTokenMap( 0 ),
2000-09-18 16:07:07 +00:00
mpTableElemTokenMap( 0 ),
mpChartElemTokenMap( 0 ),
mpPlotAreaElemTokenMap( 0 ),
mpSeriesElemTokenMap( 0 ),
mpAxisElemTokenMap( 0 ),
2000-09-18 16:07:07 +00:00
mpChartAttrTokenMap( 0 ),
mpPlotAreaAttrTokenMap( 0 ),
mpAxisAttrTokenMap( 0 ),
mpLegendAttrTokenMap( 0 ),
mpAutoStyleAttrTokenMap( 0 ),
mpCellAttrTokenMap( 0 ),
mpSeriesAttrTokenMap( 0 ),
mpRegEquationAttrTokenMap( 0 )
2000-09-18 16:07:07 +00:00
{
}
SchXMLImportHelper::~SchXMLImportHelper()
{
// delete token maps
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
if( mpChartDocElemTokenMap )
delete mpChartDocElemTokenMap;
2000-09-18 16:07:07 +00:00
if( mpTableElemTokenMap )
delete mpTableElemTokenMap;
if( mpChartElemTokenMap )
delete mpChartElemTokenMap;
if( mpPlotAreaElemTokenMap )
delete mpPlotAreaElemTokenMap;
if( mpSeriesElemTokenMap )
delete mpSeriesElemTokenMap;
if( mpAxisElemTokenMap )
delete mpAxisElemTokenMap;
2000-09-18 16:07:07 +00:00
if( mpChartAttrTokenMap )
delete mpChartAttrTokenMap;
if( mpPlotAreaAttrTokenMap )
delete mpPlotAreaAttrTokenMap;
if( mpAxisAttrTokenMap )
delete mpAxisAttrTokenMap;
if( mpLegendAttrTokenMap )
delete mpLegendAttrTokenMap;
if( mpAutoStyleAttrTokenMap )
delete mpAutoStyleAttrTokenMap;
if( mpCellAttrTokenMap )
delete mpCellAttrTokenMap;
if( mpSeriesAttrTokenMap )
delete mpSeriesAttrTokenMap;
}
SvXMLImportContext* SchXMLImportHelper::CreateChartContext(
SvXMLImport& rImport,
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
sal_uInt16 nPrefix, const OUString& rLocalName,
const Reference< frame::XModel > xChartModel,
const Reference< xml::sax::XAttributeList >& )
2000-09-18 16:07:07 +00:00
{
SvXMLImportContext* pContext = 0;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< chart::XChartDocument > xDoc( xChartModel, uno::UNO_QUERY );
2000-09-18 16:07:07 +00:00
if( xDoc.is())
{
mxChartDoc = xDoc;
pContext = new SchXMLChartContext( *this, rImport, rLocalName );
}
else
{
DBG_ERROR( "No valid XChartDocument given as XModel" );
pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName );
}
return pContext;
}
/* ----------------------------------------
get various token maps
----------------------------------------*/
const SvXMLTokenMap& SchXMLImportHelper::GetDocElemTokenMap()
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
if( ! mpChartDocElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aDocElemTokenMap[] =
{
{ XML_NAMESPACE_OFFICE, XML_AUTOMATIC_STYLES, XML_TOK_DOC_AUTOSTYLES },
{ XML_NAMESPACE_OFFICE, XML_STYLES, XML_TOK_DOC_STYLES },
{ XML_NAMESPACE_OFFICE, XML_META, XML_TOK_DOC_META },
{ XML_NAMESPACE_OFFICE, XML_BODY, XML_TOK_DOC_BODY },
XML_TOKEN_MAP_END
};
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
mpChartDocElemTokenMap = new SvXMLTokenMap( aDocElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpChartDocElemTokenMap )
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
return *mpChartDocElemTokenMap;
2000-09-18 16:07:07 +00:00
}
const SvXMLTokenMap& SchXMLImportHelper::GetTableElemTokenMap()
{
if( ! mpTableElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aTableElemTokenMap[] =
{
{ XML_NAMESPACE_TABLE, XML_TABLE_HEADER_COLUMNS, XML_TOK_TABLE_HEADER_COLS },
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS, XML_TOK_TABLE_COLUMNS },
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, XML_TOK_TABLE_COLUMN },
{ XML_NAMESPACE_TABLE, XML_TABLE_HEADER_ROWS, XML_TOK_TABLE_HEADER_ROWS },
{ XML_NAMESPACE_TABLE, XML_TABLE_ROWS, XML_TOK_TABLE_ROWS },
{ XML_NAMESPACE_TABLE, XML_TABLE_ROW, XML_TOK_TABLE_ROW },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpTableElemTokenMap = new SvXMLTokenMap( aTableElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpTableElemTokenMap )
2000-09-18 16:07:07 +00:00
return *mpTableElemTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetChartElemTokenMap()
{
if( ! mpChartElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aChartElemTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_PLOT_AREA, XML_TOK_CHART_PLOT_AREA },
{ XML_NAMESPACE_CHART, XML_TITLE, XML_TOK_CHART_TITLE },
{ XML_NAMESPACE_CHART, XML_SUBTITLE, XML_TOK_CHART_SUBTITLE },
{ XML_NAMESPACE_CHART, XML_LEGEND, XML_TOK_CHART_LEGEND },
{ XML_NAMESPACE_TABLE, XML_TABLE, XML_TOK_CHART_TABLE },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpChartElemTokenMap = new SvXMLTokenMap( aChartElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpChartElemTokenMap )
2000-09-18 16:07:07 +00:00
return *mpChartElemTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetPlotAreaElemTokenMap()
{
if( ! mpPlotAreaElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aPlotAreaElemTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_AXIS, XML_TOK_PA_AXIS },
{ XML_NAMESPACE_CHART, XML_SERIES, XML_TOK_PA_SERIES },
{ XML_NAMESPACE_CHART, XML_WALL, XML_TOK_PA_WALL },
{ XML_NAMESPACE_CHART, XML_FLOOR, XML_TOK_PA_FLOOR },
{ XML_NAMESPACE_DR3D, XML_LIGHT, XML_TOK_PA_LIGHT_SOURCE },
{ XML_NAMESPACE_CHART, XML_STOCK_GAIN_MARKER, XML_TOK_PA_STOCK_GAIN },
{ XML_NAMESPACE_CHART, XML_STOCK_LOSS_MARKER, XML_TOK_PA_STOCK_LOSS },
{ XML_NAMESPACE_CHART, XML_STOCK_RANGE_LINE, XML_TOK_PA_STOCK_RANGE },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpPlotAreaElemTokenMap = new SvXMLTokenMap( aPlotAreaElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpPlotAreaElemTokenMap )
2000-09-18 16:07:07 +00:00
return *mpPlotAreaElemTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetSeriesElemTokenMap()
{
if( ! mpSeriesElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aSeriesElemTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_DATA_POINT, XML_TOK_SERIES_DATA_POINT },
{ XML_NAMESPACE_CHART, XML_DOMAIN, XML_TOK_SERIES_DOMAIN },
{ XML_NAMESPACE_CHART, XML_MEAN_VALUE, XML_TOK_SERIES_MEAN_VALUE_LINE },
{ XML_NAMESPACE_CHART, XML_REGRESSION_CURVE, XML_TOK_SERIES_REGRESSION_CURVE },
{ XML_NAMESPACE_CHART, XML_ERROR_INDICATOR, XML_TOK_SERIES_ERROR_INDICATOR },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpSeriesElemTokenMap = new SvXMLTokenMap( aSeriesElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpSeriesElemTokenMap )
2000-09-18 16:07:07 +00:00
return *mpSeriesElemTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetAxisElemTokenMap()
{
if( ! mpAxisElemTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aAxisElemTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_TITLE, XML_TOK_AXIS_TITLE },
{ XML_NAMESPACE_CHART, XML_CATEGORIES, XML_TOK_AXIS_CATEGORIES },
{ XML_NAMESPACE_CHART, XML_GRID, XML_TOK_AXIS_GRID },
XML_TOKEN_MAP_END
};
mpAxisElemTokenMap = new SvXMLTokenMap( aAxisElemTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpAxisElemTokenMap )
return *mpAxisElemTokenMap;
}
2000-09-18 16:07:07 +00:00
// ----------------------------------------
const SvXMLTokenMap& SchXMLImportHelper::GetChartAttrTokenMap()
{
if( ! mpChartAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aChartAttrTokenMap[] =
{
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
{ XML_NAMESPACE_XLINK, XML_HREF, XML_TOK_CHART_HREF },
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{ XML_NAMESPACE_CHART, XML_CLASS, XML_TOK_CHART_CLASS },
{ XML_NAMESPACE_SVG, XML_WIDTH, XML_TOK_CHART_WIDTH },
{ XML_NAMESPACE_SVG, XML_HEIGHT, XML_TOK_CHART_HEIGHT },
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_CHART_STYLE_NAME },
{ XML_NAMESPACE_CHART, XML_COLUMN_MAPPING, XML_TOK_CHART_COL_MAPPING },
{ XML_NAMESPACE_CHART, XML_ROW_MAPPING, XML_TOK_CHART_ROW_MAPPING },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpChartAttrTokenMap = new SvXMLTokenMap( aChartAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpChartAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpChartAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetPlotAreaAttrTokenMap()
{
if( ! mpPlotAreaAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aPlotAreaAttrTokenMap[] =
{
{ XML_NAMESPACE_SVG, XML_X, XML_TOK_PA_X },
{ XML_NAMESPACE_SVG, XML_Y, XML_TOK_PA_Y },
{ XML_NAMESPACE_SVG, XML_WIDTH, XML_TOK_PA_WIDTH },
{ XML_NAMESPACE_SVG, XML_HEIGHT, XML_TOK_PA_HEIGHT },
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_PA_STYLE_NAME },
{ XML_NAMESPACE_TABLE, XML_CELL_RANGE_ADDRESS, XML_TOK_PA_CHART_ADDRESS },
{ XML_NAMESPACE_CHART, XML_DATA_SOURCE_HAS_LABELS, XML_TOK_PA_DS_HAS_LABELS },
{ XML_NAMESPACE_DR3D, XML_TRANSFORM, XML_TOK_PA_TRANSFORM },
{ XML_NAMESPACE_DR3D, XML_VRP, XML_TOK_PA_VRP },
{ XML_NAMESPACE_DR3D, XML_VPN, XML_TOK_PA_VPN },
{ XML_NAMESPACE_DR3D, XML_VUP, XML_TOK_PA_VUP },
{ XML_NAMESPACE_DR3D, XML_PROJECTION, XML_TOK_PA_PROJECTION },
{ XML_NAMESPACE_DR3D, XML_DISTANCE, XML_TOK_PA_DISTANCE },
{ XML_NAMESPACE_DR3D, XML_FOCAL_LENGTH, XML_TOK_PA_FOCAL_LENGTH },
{ XML_NAMESPACE_DR3D, XML_SHADOW_SLANT, XML_TOK_PA_SHADOW_SLANT },
{ XML_NAMESPACE_DR3D, XML_SHADE_MODE, XML_TOK_PA_SHADE_MODE },
{ XML_NAMESPACE_DR3D, XML_AMBIENT_COLOR, XML_TOK_PA_AMBIENT_COLOR },
{ XML_NAMESPACE_DR3D, XML_LIGHTING_MODE, XML_TOK_PA_LIGHTING_MODE },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpPlotAreaAttrTokenMap = new SvXMLTokenMap( aPlotAreaAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpPlotAreaAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpPlotAreaAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetAxisAttrTokenMap()
{
if( ! mpAxisAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aAxisAttrTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_DIMENSION, XML_TOK_AXIS_DIMENSION },
{ XML_NAMESPACE_CHART, XML_NAME, XML_TOK_AXIS_NAME },
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_AXIS_STYLE_NAME },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpAxisAttrTokenMap = new SvXMLTokenMap( aAxisAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpAxisAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpAxisAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetLegendAttrTokenMap()
{
if( ! mpLegendAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aLegendAttrTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_LEGEND_POSITION, XML_TOK_LEGEND_POSITION },
{ XML_NAMESPACE_SVG, XML_X, XML_TOK_LEGEND_X },
{ XML_NAMESPACE_SVG, XML_Y, XML_TOK_LEGEND_Y },
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_LEGEND_STYLE_NAME },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpLegendAttrTokenMap = new SvXMLTokenMap( aLegendAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpLegendAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpLegendAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetAutoStyleAttrTokenMap()
{
if( ! mpAutoStyleAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aAutoStyleAttrTokenMap[] =
{
{ XML_NAMESPACE_STYLE, XML_FAMILY, XML_TOK_AS_FAMILY },
{ XML_NAMESPACE_STYLE, XML_NAME, XML_TOK_AS_NAME },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpAutoStyleAttrTokenMap = new SvXMLTokenMap( aAutoStyleAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpAutoStyleAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpAutoStyleAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetCellAttrTokenMap()
{
if( ! mpCellAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aCellAttrTokenMap[] =
{
{ XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_TOK_CELL_VAL_TYPE },
{ XML_NAMESPACE_OFFICE, XML_VALUE, XML_TOK_CELL_VALUE },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpCellAttrTokenMap = new SvXMLTokenMap( aCellAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpCellAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpCellAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetSeriesAttrTokenMap()
{
if( ! mpSeriesAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aSeriesAttrTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_VALUES_CELL_RANGE_ADDRESS, XML_TOK_SERIES_CELL_RANGE },
{ XML_NAMESPACE_CHART, XML_LABEL_CELL_ADDRESS, XML_TOK_SERIES_LABEL_ADDRESS },
{ XML_NAMESPACE_CHART, XML_ATTACHED_AXIS, XML_TOK_SERIES_ATTACHED_AXIS },
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_SERIES_STYLE_NAME },
{ XML_NAMESPACE_CHART, XML_CLASS, XML_TOK_SERIES_CHART_CLASS },
XML_TOKEN_MAP_END
};
2000-09-18 16:07:07 +00:00
mpSeriesAttrTokenMap = new SvXMLTokenMap( aSeriesAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpSeriesAttrTokenMap )
2000-09-18 16:07:07 +00:00
return *mpSeriesAttrTokenMap;
}
const SvXMLTokenMap& SchXMLImportHelper::GetRegEquationAttrTokenMap()
{
if( ! mpRegEquationAttrTokenMap )
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
{
static __FAR_DATA SvXMLTokenMapEntry aRegressionEquationAttrTokenMap[] =
{
{ XML_NAMESPACE_CHART, XML_STYLE_NAME, XML_TOK_REGEQ_STYLE_NAME },
{ XML_NAMESPACE_CHART, XML_DISPLAY_EQUATION, XML_TOK_REGEQ_DISPLAY_EQUATION },
{ XML_NAMESPACE_CHART, XML_DISPLAY_R_SQUARE, XML_TOK_REGEQ_DISPLAY_R_SQUARE },
{ XML_NAMESPACE_SVG, XML_X, XML_TOK_REGEQ_POS_X },
{ XML_NAMESPACE_SVG, XML_Y, XML_TOK_REGEQ_POS_Y },
XML_TOKEN_MAP_END
};
mpRegEquationAttrTokenMap = new SvXMLTokenMap( aRegressionEquationAttrTokenMap );
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
} // if( ! mpRegEquationAttrTokenMap )
return *mpRegEquationAttrTokenMap;
}
2000-09-18 16:07:07 +00:00
// ----------------------------------------
sal_Int32 SchXMLImportHelper::GetNumberOfSeries()
{
if( mxChartDoc.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< chart::XChartDataArray > xData( mxChartDoc->getData(), uno::UNO_QUERY );
if( xData.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< Sequence< double > > xArray = xData->getData();
if( xArray.getLength())
return xArray[ 0 ].getLength();
}
}
return 0;
}
sal_Int32 SchXMLImportHelper::GetLengthOfSeries()
{
if( mxChartDoc.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< chart::XChartDataArray > xData( mxChartDoc->getData(), uno::UNO_QUERY );
if( xData.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< Sequence< double > > xArray = xData->getData();
return xArray.getLength();
}
}
return 0;
}
2000-09-18 16:07:07 +00:00
// -1 means don't change
void SchXMLImportHelper::ResizeChartData( sal_Int32 nSeries, sal_Int32 nDataPoints )
{
if( mxChartDoc.is())
{
sal_Bool bWasChanged = sal_False;
sal_Bool bDataInColumns = sal_True;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< beans::XPropertySet > xDiaProp( mxChartDoc->getDiagram(), uno::UNO_QUERY );
if( xDiaProp.is())
{
chart::ChartDataRowSource eRowSource;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
xDiaProp->getPropertyValue( OUString::createFromAscii( "DataRowSource" )) >>= eRowSource;
bDataInColumns = ( eRowSource == chart::ChartDataRowSource_COLUMNS );
// the chart core treats donut chart with interchanged rows/columns
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< chart::XDiagram > xDiagram( xDiaProp, uno::UNO_QUERY );
if( xDiagram.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
OUString sChartType = xDiagram->getDiagramType();
if( 0 == sChartType.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart.DonutDiagram" )))
{
bDataInColumns = ! bDataInColumns;
}
}
}
sal_Int32 nColCount = bDataInColumns ? nSeries : nDataPoints;
sal_Int32 nRowCount = bDataInColumns ? nDataPoints : nSeries;
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< chart::XChartDataArray > xData( mxChartDoc->getData(), uno::UNO_QUERY );
2000-09-18 16:07:07 +00:00
if( xData.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< Sequence< double > > xArray = xData->getData();
2000-09-18 16:07:07 +00:00
// increase number of rows
if( xArray.getLength() < nRowCount )
{
sal_Int32 nOldLen = xArray.getLength();
xArray.realloc( nRowCount );
if( nColCount == -1 )
{
sal_Int32 nSize = xArray[ 0 ].getLength();
for( sal_Int32 i = nOldLen; i < nRowCount; i++ )
xArray[ i ].realloc( nSize );
}
bWasChanged = sal_True;
}
if( nSeries == -1 &&
nRowCount > 0 )
nColCount = xArray[ 0 ].getLength();
// columns
if( nColCount > 0 &&
xArray[ 0 ].getLength() < nColCount )
{
if( nDataPoints == -1 )
nRowCount = xArray.getLength();
for( sal_Int32 i = 0; i < nRowCount; i++ )
xArray[ i ].realloc( nColCount );
bWasChanged = sal_True;
}
if( bWasChanged )
{
xData->setData( xArray );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
mxChartDoc->attachData(
Reference< chart::XChartData >( xData, uno::UNO_QUERY ));
2000-09-18 16:07:07 +00:00
}
}
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
//static
void SchXMLImportHelper::DeleteDataSeries(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XChartDocument > & xDoc )
{
if( xDoc.is() )
try
{
Reference< chart2::XCoordinateSystemContainer > xCooSysCnt(
xDoc->getFirstDiagram(), uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq(
xCooSysCnt->getCoordinateSystems());
sal_Int32 nCooSysIndex = 0;
for( nCooSysIndex=0; nCooSysIndex<aCooSysSeq.getLength(); nCooSysIndex++ )
{
Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[ nCooSysIndex ], uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
sal_Int32 nChartTypeIndex = 0;
for( nChartTypeIndex=0; nChartTypeIndex<aChartTypes.getLength(); nChartTypeIndex++ )
{
Reference< chart2::XDataSeriesContainer > xSeriesCnt( aChartTypes[nChartTypeIndex], uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XDataSeries > > aSeriesSeq( xSeriesCnt->getDataSeries());
sal_Int32 nSeriesIndex = 0;
for( nSeriesIndex=0; nSeriesIndex<aSeriesSeq.getLength(); nSeriesIndex++ )
{
if( xSeries==aSeriesSeq[nSeriesIndex] )
{
xSeriesCnt->removeDataSeries(xSeries);
return;
}
}
}
}
}
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
OSL_ENSURE( false, OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
}
// static
Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
const Reference< chart2::XChartDocument > & xDoc,
sal_Int32 nCoordinateSystemIndex,
const OUString & rChartTypeName,
bool bPushLastChartType /* = false */ )
{
Reference< chart2::XDataSeries > xResult;
if(!xDoc.is())
return xResult;
try
{
Reference< chart2::XCoordinateSystemContainer > xCooSysCnt(
xDoc->getFirstDiagram(), uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq(
xCooSysCnt->getCoordinateSystems());
Reference< uno::XComponentContext > xContext( lcl_getComponentContext());
if( nCoordinateSystemIndex < aCooSysSeq.getLength())
{
Reference< chart2::XChartType > xCurrentType;
{
Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[ nCoordinateSystemIndex ], uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
// find matching chart type group
const Reference< chart2::XChartType > * pBegin = aChartTypes.getConstArray();
const Reference< chart2::XChartType > * pEnd = pBegin + aChartTypes.getLength();
const Reference< chart2::XChartType > * pIt =
::std::find_if( pBegin, pEnd, lcl_MatchesChartType( rChartTypeName ));
if( pIt != pEnd )
xCurrentType.set( *pIt );
// if chart type is set at series and differs from current one,
// create a new chart type
if( !xCurrentType.is())
{
xCurrentType.set(
xContext->getServiceManager()->createInstanceWithContext( rChartTypeName, xContext ),
uno::UNO_QUERY );
if( xCurrentType.is())
{
if( bPushLastChartType && aChartTypes.getLength())
{
sal_Int32 nIndex( aChartTypes.getLength() - 1 );
aChartTypes.realloc( aChartTypes.getLength() + 1 );
aChartTypes[ nIndex + 1 ] = aChartTypes[ nIndex ];
aChartTypes[ nIndex ] = xCurrentType;
xCTCnt->setChartTypes( aChartTypes );
}
else
xCTCnt->addChartType( xCurrentType );
}
}
}
if( xCurrentType.is())
{
Reference< chart2::XDataSeriesContainer > xSeriesCnt( xCurrentType, uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XDataSeries > > aSeriesSeq( xSeriesCnt->getDataSeries());
if( xContext.is() )
{
xResult.set(
xContext->getServiceManager()->createInstanceWithContext(
OUString::createFromAscii("com.sun.star.chart2.DataSeries"),
xContext ), uno::UNO_QUERY_THROW );
}
if( xResult.is() )
xSeriesCnt->addDataSeries( xResult );
}
}
}
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
OSL_ENSURE( false, OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
return xResult;
}
// static
Reference< chart2::data::XLabeledDataSequence > SchXMLImportHelper::GetNewLabeledDataSequence()
{
// @todo: remove this asap
OSL_ENSURE( false, "Do not call this method" );
Reference< chart2::data::XLabeledDataSequence > xResult;
// DO NOT USED -- DEPRECATED. Use SchXMLTools::GetNewLabeledDataSequence() instead
return xResult;
}
2000-09-18 16:07:07 +00:00
// ========================================
// #110680#
SchXMLImport::SchXMLImport(
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Reference< lang::XMultiServiceFactory >& xServiceFactory,
sal_uInt16 nImportFlags ) :
SvXMLImport( xServiceFactory, nImportFlags )
{
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
GetNamespaceMap().Add( GetXMLToken(XML_NP_XLINK), GetXMLToken(XML_N_XLINK), XML_NAMESPACE_XLINK );
mbIsGraphicLoadOnDemandSupported = false;
}
// #110680#
SchXMLImport::SchXMLImport(
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Reference< lang::XMultiServiceFactory >& xServiceFactory,
Reference< frame::XModel > xModel,
Reference< document::XGraphicObjectResolver >& rGrfContainer,
sal_Bool /*bLoadDoc*/, sal_Bool bShowProgress )
: SvXMLImport( xServiceFactory, xModel, rGrfContainer )
2000-09-18 16:07:07 +00:00
{
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
GetNamespaceMap().Add( GetXMLToken(XML_NP_XLINK), GetXMLToken(XML_N_XLINK), XML_NAMESPACE_XLINK );
2000-09-18 16:07:07 +00:00
// get status indicator (if requested)
if( bShowProgress )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< frame::XController > xController( xModel->getCurrentController());
2000-09-18 16:07:07 +00:00
if( xController.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< frame::XFrame > xFrame( xController->getFrame());
2000-09-18 16:07:07 +00:00
if( xFrame.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< task::XStatusIndicatorSupplier > xFactory( xFrame, uno::UNO_QUERY );
2000-09-18 16:07:07 +00:00
if( xFactory.is())
{
mxStatusIndicator = xFactory->getStatusIndicator();
}
}
}
}
// add progress view
if( mxStatusIndicator.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const OUString aText( RTL_CONSTASCII_USTRINGPARAM( "XML Import" ));
2000-09-18 16:07:07 +00:00
mxStatusIndicator->start( aText, 100 ); // use percentage as values
}
}
2001-09-12 09:33:50 +00:00
SchXMLImport::~SchXMLImport() throw ()
2000-09-18 16:07:07 +00:00
{
// stop progress view
if( mxStatusIndicator.is())
{
mxStatusIndicator->end();
mxStatusIndicator->reset();
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
uno::Reference< chart2::XChartDocument > xChartDoc( GetModel(), uno::UNO_QUERY );
if( xChartDoc.is() && xChartDoc->hasControllersLocked() )
xChartDoc->unlockControllers();
2000-09-18 16:07:07 +00:00
}
// create the main context (subcontexts are created
// by the one created here)
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
SvXMLImportContext *SchXMLImport::CreateContext( USHORT nPrefix, const OUString& rLocalName,
const Reference< xml::sax::XAttributeList >& xAttrList )
2000-09-18 16:07:07 +00:00
{
SvXMLImportContext* pContext = 0;
// accept <office:document>
if( XML_NAMESPACE_OFFICE == nPrefix &&
( IsXMLToken( rLocalName, XML_DOCUMENT_STYLES) ||
IsXMLToken( rLocalName, XML_DOCUMENT_CONTENT) ))
2000-09-18 16:07:07 +00:00
{
pContext = new SchXMLDocContext( maImportHelper, *this, nPrefix, rLocalName );
} else if ( (XML_NAMESPACE_OFFICE == nPrefix) &&
( IsXMLToken(rLocalName, XML_DOCUMENT) ||
(IsXMLToken(rLocalName, XML_DOCUMENT_META)
&& (getImportFlags() & IMPORT_META) )) )
2000-09-18 16:07:07 +00:00
{
uno::Reference<document::XDocumentPropertiesSupplier> xDPS(
GetModel(), uno::UNO_QUERY);
// mst@: right now, this seems to be not supported, so it is untested
if (xDPS.is()) {
uno::Reference<xml::sax::XDocumentHandler> xDocBuilder(
mxServiceFactory->createInstance(
::rtl::OUString::createFromAscii(
"com.sun.star.xml.dom.SAXDocumentBuilder")),
uno::UNO_QUERY_THROW);
pContext = (IsXMLToken(rLocalName, XML_DOCUMENT_META))
? new SvXMLMetaDocumentContext(*this,
XML_NAMESPACE_OFFICE, rLocalName,
xDPS->getDocumentProperties(), xDocBuilder)
// flat OpenDocument file format
: new SchXMLFlatDocContext_Impl(
maImportHelper, *this, nPrefix, rLocalName,
xDPS->getDocumentProperties(), xDocBuilder);
} else {
pContext = (IsXMLToken(rLocalName, XML_DOCUMENT_META))
? SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList )
: new SchXMLDocContext( maImportHelper, *this,
nPrefix, rLocalName );
}
} else {
2000-09-18 16:07:07 +00:00
pContext = SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList );
}
return pContext;
}
SvXMLImportContext* SchXMLImport::CreateStylesContext(
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const OUString& rLocalName,
const Reference<xml::sax::XAttributeList>& xAttrList )
{
//#i103287# make sure that the version information is set before importing all the properties (especially stroke-opacity!)
SchXMLTools::setBuildIDAtImportInfo( GetModel(), getImportInfo() );
SvXMLStylesContext* pStylesCtxt =
new SvXMLStylesContext( *(this), XML_NAMESPACE_OFFICE, rLocalName, xAttrList );
// set context at base class, so that all auto-style classes are imported
SetAutoStyles( pStylesCtxt );
maImportHelper.SetAutoStylesContext( pStylesCtxt );
return pStylesCtxt;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComponent >& xDoc )
throw(lang::IllegalArgumentException, uno::RuntimeException)
{
uno::Reference< chart2::XChartDocument > xOldDoc( GetModel(), uno::UNO_QUERY );
if( xOldDoc.is() && xOldDoc->hasControllersLocked() )
xOldDoc->unlockControllers();
SvXMLImport::setTargetDocument( xDoc );
//set data provider and number formatter
// try to get an XDataProvider and set it
// @todo: if we have our own data, we must not use the parent as data provider
uno::Reference< chart2::XChartDocument > xChartDoc( GetModel(), uno::UNO_QUERY );
if( xChartDoc.is() )
try
{
//prevent rebuild of view during load ( necesarry especially if loaded not via load api, which is the case for example if binary files are loaded )
xChartDoc->lockControllers();
uno::Reference< container::XChild > xChild( xChartDoc, uno::UNO_QUERY );
uno::Reference< chart2::data::XDataReceiver > xDataReceiver( xChartDoc, uno::UNO_QUERY );
bool bHasOwnData = true;
if( xChild.is() && xDataReceiver.is())
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
{
Reference< lang::XMultiServiceFactory > xFact( xChild->getParent(), uno::UNO_QUERY );
if( xFact.is() )
{
//if the parent has a number formatter we will use the numberformatter of the parent
Reference< util::XNumberFormatsSupplier > xNumberFormatsSupplier( xFact, uno::UNO_QUERY );
xDataReceiver->attachNumberFormatsSupplier( xNumberFormatsSupplier );
if ( !xChartDoc->getDataProvider().is() )
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
{
const OUString aDataProviderServiceName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.chart2.data.DataProvider"));
const uno::Sequence< OUString > aServiceNames( xFact->getAvailableServiceNames());
const OUString * pBegin = aServiceNames.getConstArray();
const OUString * pEnd = pBegin + aServiceNames.getLength();
if( ::std::find( pBegin, pEnd, aDataProviderServiceName ) != pEnd )
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
{
Reference< chart2::data::XDataProvider > xProvider(
xFact->createInstance( aDataProviderServiceName ), uno::UNO_QUERY );
if( xProvider.is())
{
xDataReceiver->attachDataProvider( xProvider );
bHasOwnData = false;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
}
}
else
bHasOwnData = false;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
}
// else we have no parent => we have our own data
if( bHasOwnData && ! xChartDoc->hasInternalDataProvider() )
xChartDoc->createInternalDataProvider( sal_False );
}
}
catch( uno::Exception & rEx )
{
#ifdef DBG_UTIL
String aStr( rEx.Message );
ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US );
DBG_ERROR1( "SchXMLChartContext::StartElement(): Exception caught: %s", aBStr.GetBuffer());
#else
(void)rEx; // avoid warning for pro build
#endif
}
}
// export components ========================================
// first version: everything comes from one storage
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< OUString > SAL_CALL SchXMLImport_getSupportedServiceNames() throw()
{
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisImporter" ) );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq;
}
OUString SAL_CALL SchXMLImport_getImplementationName() throw()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport" ) );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
// return (cppu::OWeakObject*)new SchXMLImport();
return (cppu::OWeakObject*)new SchXMLImport(rSMgr);
}
// ============================================================
// multiple storage version: one for content / styles / meta
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< OUString > SAL_CALL SchXMLImport_Styles_getSupportedServiceNames() throw()
{
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisStylesImporter" ) );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq;
}
OUString SAL_CALL SchXMLImport_Styles_getImplementationName() throw()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Styles" ) );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
// return (cppu::OWeakObject*)new SchXMLImport( IMPORT_STYLES );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_STYLES );
}
// ------------------------------------------------------------
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< OUString > SAL_CALL SchXMLImport_Content_getSupportedServiceNames() throw()
{
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisContentImporter" ) );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq;
}
OUString SAL_CALL SchXMLImport_Content_getImplementationName() throw()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Content" ) );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
// return (cppu::OWeakObject*)new SchXMLImport( IMPORT_CONTENT | IMPORT_AUTOSTYLES | IMPORT_FONTDECLS );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_CONTENT | IMPORT_AUTOSTYLES | IMPORT_FONTDECLS );
}
// ------------------------------------------------------------
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Sequence< OUString > SAL_CALL SchXMLImport_Meta_getSupportedServiceNames() throw()
{
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisMetaImporter" ) );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq;
}
OUString SAL_CALL SchXMLImport_Meta_getImplementationName() throw()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Meta" ) );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.26: #i75530# import explicit chart types at data series in correct order 2007/03/26 13:59:48 bm 1.29.28.25: #i75651# label-cell-range-address -> label-cell-address like specified in RNG schema 2007/01/29 14:20:30 bm 1.29.28.24: do not need table-number-list on import 2006/12/12 16:55:11 bm 1.29.28.23: own data with no categories element: apply categories in applyTable() 2006/12/07 16:32:06 bm 1.29.28.22: #i64497# some more fixes for clipboard 2006/12/06 18:50:46 bm 1.29.28.21: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/11/30 15:44:04 bm 1.29.28.20: #i64497# if we get no data provider via factory, we use own data 2006/10/20 09:50:40 bm 1.29.28.19: warnings removed 2006/10/19 09:59:18 bm 1.29.28.18: RESYNC: (1.32-1.34); FILE MERGED 2006/09/29 13:16:35 bm 1.29.28.17: #i64500# allow importers to disable load-on demmand of graphics, like the chart 2006/08/02 12:25:40 iha 1.29.28.16: read wrongly created files properly while having addin with basediagram xy 2006/08/01 09:00:08 iha 1.29.28.15: helping methods for chart im- and export 2005/12/21 21:34:22 iha 1.29.28.14: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/10/13 17:37:23 iha 1.29.28.13: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:14 bm 1.29.28.12: RESYNC: (1.31-1.32); FILE MERGED 2005/09/08 15:45:20 iha 1.29.28.11: lock controller for binary loading already before the dataprovider gets attached 2005/09/08 11:33:43 iha 1.29.28.10: set data provider and number formatter in the filter and not in the model load methods thus binary loading also gets the correct dataprovider and numberformatter 2005/08/19 16:10:23 bm 1.29.28.9: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/08/15 13:09:12 bm 1.29.28.8: applyTableSimple: gets the data directly. This eases filling the internal data provider 2005/07/25 13:42:42 bm 1.29.28.7: RESYNC: (1.30-1.31); FILE MERGED 2005/07/15 21:00:16 iha 1.29.28.6: change from series index to series identifier 2005/07/04 15:56:28 bm 1.29.28.5: GetNewDataSeries: search for matching chart type group rather than using the last one 2005/06/24 09:07:28 bm 1.29.28.4: stock chart 2005/06/17 17:03:42 bm 1.29.28.3: using new API for im-/export of data 2005/03/17 11:21:22 bm 1.29.28.2: RESYNC: (1.29-1.30); FILE MERGED 2004/09/08 15:33:51 bm 1.29.28.1: call attachData() after changing data of ChartDocument
2007-05-22 15:06:26 +00:00
Reference< uno::XInterface > SAL_CALL SchXMLImport_Meta_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
{
// #110680#
// return (cppu::OWeakObject*)new SchXMLImport( IMPORT_META );
return (cppu::OWeakObject*)new SchXMLImport( rSMgr, IMPORT_META );
}
// XServiceInfo
OUString SAL_CALL SchXMLImport::getImplementationName() throw( uno::RuntimeException )
{
switch( getImportFlags())
{
case IMPORT_ALL:
return SchXMLImport_getImplementationName();
case IMPORT_STYLES:
return SchXMLImport_Styles_getImplementationName();
case ( IMPORT_CONTENT | IMPORT_AUTOSTYLES | IMPORT_FONTDECLS ):
return SchXMLImport_Content_getImplementationName();
case IMPORT_META:
return SchXMLImport_Meta_getImplementationName();
case IMPORT_SETTINGS:
// there is no settings component in chart
default:
return OUString::createFromAscii( "SchXMLImport" );
}
}