summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-23 10:36:18 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-23 10:36:18 +0000
commit5b6e50e51802513994d15d50b43b63bc667f4dc2 (patch)
tree49eb2f5bfa2271882e22646e1616e5ae4f506b5f /xmloff
parent66b63ccf7a4d759f36793ec972e364522c9a81e3 (diff)
INTEGRATION: CWS chart17 (1.36.68); FILE MERGED
2007/10/12 12:38:50 bm 1.36.68.1: #i7998# equations for regression curves
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx24
1 files changed, 21 insertions, 3 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index 535d2e8877ed..c7563e1e2faf 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: SchXMLImport.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 14:48:06 $
+ * last change: $Author: ihi $ $Date: 2007-11-23 11:36:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -307,6 +307,16 @@ static __FAR_DATA SvXMLTokenMapEntry aSeriesAttrTokenMap[] =
XML_TOKEN_MAP_END
};
+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
+};
+
// ========================================
SchXMLImportHelper::SchXMLImportHelper() :
@@ -325,7 +335,8 @@ SchXMLImportHelper::SchXMLImportHelper() :
mpLegendAttrTokenMap( 0 ),
mpAutoStyleAttrTokenMap( 0 ),
mpCellAttrTokenMap( 0 ),
- mpSeriesAttrTokenMap( 0 )
+ mpSeriesAttrTokenMap( 0 ),
+ mpRegEquationAttrTokenMap( 0 )
{
}
@@ -481,6 +492,13 @@ const SvXMLTokenMap& SchXMLImportHelper::GetSeriesAttrTokenMap()
return *mpSeriesAttrTokenMap;
}
+const SvXMLTokenMap& SchXMLImportHelper::GetRegEquationAttrTokenMap()
+{
+ if( ! mpRegEquationAttrTokenMap )
+ mpRegEquationAttrTokenMap = new SvXMLTokenMap( aRegressionEquationAttrTokenMap );
+ return *mpRegEquationAttrTokenMap;
+}
+
// ----------------------------------------
sal_Int32 SchXMLImportHelper::GetNumberOfSeries()