#ifndef com_sun_star_chart_XLegend_idl #define com_sun_star_chart_XLegend_idl #include #ifndef __com_sun_star_lang_IllegalArgumentException_idl__ #include #endif #ifndef __com_sun_star_container_NoSuchElementException_idl__ #include #endif #include module com { module sun { module star { module chart2 { /** interface for the legend of a diagram */ interface XLegend : ::com::sun::star::uno::XInterface { /** The entry added is appended to the list, such that it appears at the end of the legend. @param xEntry If it supports CustomLegendEntry, the XTitle is used for displaying a text, and the symbol is displayed according to the CustomLegendEntry::SymbolStyle property. */ void registerEntry( [in] XLegendEntry xEntry ) raises( com::sun::star::lang::IllegalArgumentException ); /** Removes an entry that was registered before

(see registerEntry)

*/ void revokeEntry( [in] XLegendEntry xEntry ) raises( com::sun::star::container::NoSuchElementException ); /** Returns a list of all legend entries in the order in which they were registered. */ sequence< XLegendEntry > getEntries(); }; } ; // chart2 } ; // com } ; // sun } ; // star #endif