diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-13 07:03:19 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-13 07:03:19 +0000 |
commit | eafb5329d26c80efbb0444350ca1871f1b30b3c7 (patch) | |
tree | 83ad41347fd54cf47e1e417f8b0cce7d022c2a3c /xmloff/source/chart | |
parent | 0af310b1f39caaf8341896e001ccf8953e2dee58 (diff) |
INTEGRATION: CWS oasis (1.27.256); FILE MERGED
2004/06/21 09:12:30 mib 1.27.256.6: #i20153#: meta generator, service names for chart and forms
2004/06/19 12:11:42 bm 1.27.256.5: #i20158#: mpAxisElemTokenMap was uninitialized
2004/06/19 11:45:11 bm 1.27.256.4: #i20158#: categories element is at category-axis now
2004/06/12 19:37:25 mib 1.27.256.3: RESYNC: (1.27-1.28); FILE MERGED
2004/04/23 14:21:13 mib 1.27.256.2: - added draw/impress/calc/chart OOo import components (#i20153#)
- turned draw/impress/chart import/export components into OASIS components (#i20153#)
2004/04/22 15:16:59 mib 1.27.256.1: - renamed most *:value attributes to office:value (#i20153#)
- renamed some more formatting properties (#i20153#)
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/SchXMLImport.cxx | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx index fb88fb7a86e0..c5715fcc4bcf 100644 --- a/xmloff/source/chart/SchXMLImport.cxx +++ b/xmloff/source/chart/SchXMLImport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: SchXMLImport.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: rt $ $Date: 2004-05-03 13:32:16 $ + * last change: $Author: rt $ $Date: 2004-07-13 08:03:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -150,7 +150,6 @@ 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_CATEGORIES, XML_TOK_PA_CATEGORIES }, { 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 }, @@ -170,6 +169,14 @@ static __FAR_DATA SvXMLTokenMapEntry aSeriesElemTokenMap[] = XML_TOKEN_MAP_END }; +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 +}; + // ---------------------------------------- // attribute maps // ---------------------------------------- @@ -180,7 +187,6 @@ static __FAR_DATA SvXMLTokenMapEntry aChartAttrTokenMap[] = { 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_ADD_IN_NAME, XML_TOK_CHART_ADDIN_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 @@ -226,8 +232,8 @@ static __FAR_DATA SvXMLTokenMapEntry aAutoStyleAttrTokenMap[] = static __FAR_DATA SvXMLTokenMapEntry aCellAttrTokenMap[] = { - { XML_NAMESPACE_TABLE, XML_VALUE_TYPE, XML_TOK_CELL_VAL_TYPE }, - { XML_NAMESPACE_TABLE, XML_VALUE, XML_TOK_CELL_VALUE }, + { XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_TOK_CELL_VAL_TYPE }, + { XML_NAMESPACE_OFFICE, XML_VALUE, XML_TOK_CELL_VALUE }, XML_TOKEN_MAP_END }; @@ -251,6 +257,7 @@ SchXMLImportHelper::SchXMLImportHelper() : mpChartElemTokenMap( 0 ), mpPlotAreaElemTokenMap( 0 ), mpSeriesElemTokenMap( 0 ), + mpAxisElemTokenMap( 0 ), mpChartAttrTokenMap( 0 ), mpPlotAreaAttrTokenMap( 0 ), @@ -275,6 +282,8 @@ SchXMLImportHelper::~SchXMLImportHelper() delete mpPlotAreaElemTokenMap; if( mpSeriesElemTokenMap ) delete mpSeriesElemTokenMap; + if( mpAxisElemTokenMap ) + delete mpAxisElemTokenMap; if( mpChartAttrTokenMap ) delete mpChartAttrTokenMap; @@ -354,6 +363,13 @@ const SvXMLTokenMap& SchXMLImportHelper::GetSeriesElemTokenMap() return *mpSeriesElemTokenMap; } +const SvXMLTokenMap& SchXMLImportHelper::GetAxisElemTokenMap() +{ + if( ! mpAxisElemTokenMap ) + mpAxisElemTokenMap = new SvXMLTokenMap( aAxisElemTokenMap ); + return *mpAxisElemTokenMap; +} + // ---------------------------------------- const SvXMLTokenMap& SchXMLImportHelper::GetChartAttrTokenMap() @@ -610,7 +626,7 @@ SvXMLImportContext* SchXMLImport::CreateStylesContext( uno::Sequence< OUString > SAL_CALL SchXMLImport_getSupportedServiceNames() throw() { - const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLImporter" ) ); + const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisImporter" ) ); const uno::Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } @@ -633,7 +649,7 @@ uno::Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const uno uno::Sequence< OUString > SAL_CALL SchXMLImport_Styles_getSupportedServiceNames() throw() { - const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLStylesImporter" ) ); + const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisStylesImporter" ) ); const uno::Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } @@ -654,7 +670,7 @@ uno::Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(co uno::Sequence< OUString > SAL_CALL SchXMLImport_Content_getSupportedServiceNames() throw() { - const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLContentImporter" ) ); + const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisContentImporter" ) ); const uno::Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } @@ -675,7 +691,7 @@ uno::Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(c uno::Sequence< OUString > SAL_CALL SchXMLImport_Meta_getSupportedServiceNames() throw() { - const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLMetaImporter" ) ); + const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisMetaImporter" ) ); const uno::Sequence< OUString > aSeq( &aServiceName, 1 ); return aSeq; } |