summaryrefslogtreecommitdiff
path: root/chart2/source/inc/LegendHelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/inc/LegendHelper.hxx')
-rw-r--r--chart2/source/inc/LegendHelper.hxx20
1 files changed, 18 insertions, 2 deletions
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 <drafts/com/sun/star/chart2/XLegend.hpp>
#endif
+#ifndef _DRAFTS_COM_SUN_STAR_CHART2_XDIAGRAM_HPP_
+#include <drafts/com/sun/star/chart2/XDiagram.hpp>
+#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 );
};
//.............................................................................