summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2000-12-09 15:00:12 +0000
committerBjörn Milcke <bm@openoffice.org>2000-12-09 15:00:12 +0000
commit5ae7344ef826fb138b1bc492f02abdd7c882de52 (patch)
tree87a9ff0f64feadabb8fc933f35926d31d3437bee
parentd3e5e246d2770ac10109d65aef336ec7dcb25ca5 (diff)
#80712# export absolute legend position
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 875ea6e283ca..4a2f88a59d25 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SchXMLExport.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: bm $ $Date: 2000-12-07 18:18:37 $
+ * last change: $Author: bm $ $Date: 2000-12-09 16:00:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -555,18 +555,18 @@ void SchXMLExportHelper::parseDocument( uno::Reference< chart::XChartDocument >&
case chart::ChartLegendPosition_BOTTOM:
msString = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( sXML_bottom ));
break;
- case chart::ChartLegendPosition_NONE:
- {
- msString = rtl::OUString();
- uno::Reference< drawing::XShape > xShape( xProp, uno::UNO_QUERY );
- if( xShape.is())
- addPosition( xShape );
- }
- break;
}
+
+ // export anchor position
if( msString.getLength())
mrExport.AddAttribute( XML_NAMESPACE_CHART, sXML_legend_position, msString );
- }
+
+ // export absolute position
+ msString = rtl::OUString();
+ uno::Reference< drawing::XShape > xShape( xProp, uno::UNO_QUERY );
+ if( xShape.is())
+ addPosition( xShape );
+ }
// write style name
rtl::OUString aASName = GetAutoStylePoolP().Find( nStyleFamily, aPropertyStates );