From 1f740d15c8593790a347dc0b472cfbfe5e3dcd22 Mon Sep 17 00:00:00 2001 From: Björn Milcke Date: Thu, 9 Oct 2003 15:46:46 +0000 Subject: legend properties --- chart2/source/inc/LegendHelper.hxx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'chart2/source/inc/LegendHelper.hxx') diff --git a/chart2/source/inc/LegendHelper.hxx b/chart2/source/inc/LegendHelper.hxx index 074c8a2af62a..d85d4a129cd8 100644 --- a/chart2/source/inc/LegendHelper.hxx +++ b/chart2/source/inc/LegendHelper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: LegendHelper.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: bm $ $Date: 2003-10-08 17:40:38 $ + * last change: $Author: bm $ $Date: 2003-10-09 16:46:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -72,6 +72,9 @@ #ifndef _DRAFTS_COM_SUN_STAR_CHART2_XLEGEND_HPP_ #include #endif +#ifndef _DRAFTS_COM_SUN_STAR_CHART2_XDIAGRAM_HPP_ +#include +#endif //............................................................................. namespace chart @@ -91,6 +94,19 @@ public: ::drafts::com::sun::star::chart2::XLegend > getLegend( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ); + + /** fills the legend given with XChartTypeGroup elements as XLegendEntry + objects. + + Note: In, e.g., a standard bar chart the legend contains only one entry, + which is the chart type group. To display all series in the legend, you + have to get all XDataSeries in the tree starting at the chart type group + */ + static void defaultFillEmptyLegend( + const ::com::sun::star::uno::Reference< + ::drafts::com::sun::star::chart2::XLegend > & xLegend, + const ::com::sun::star::uno::Reference< + ::drafts::com::sun::star::chart2::XDiagram > & xDiagram ); }; //............................................................................. -- cgit v1.2.3