LibreOffice Module chart2 (master) 1
Static Public Member Functions | List of all members
chart::LegendHelper Class Reference

#include <LegendHelper.hxx>

Static Public Member Functions

static rtl::Reference< ::chart::LegendshowLegend (ChartModel &rModel, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
static void hideLegend (ChartModel &rModel)
 
static rtl::Reference< ::chart::LegendgetLegend (ChartModel &rModel, const css::uno::Reference< css::uno::XComponentContext > &xContext=nullptr, bool bCreate=false)
 
static bool hasLegend (const rtl::Reference< ::chart::Diagram > &xDiagram)
 returns <FALSE>, if either there is no legend at the diagram, or there is a legend which has a "Show" property of value <FALSE>. More...
 

Detailed Description

Definition at line 35 of file LegendHelper.hxx.

Member Function Documentation

◆ getLegend()

rtl::Reference< Legend > chart::LegendHelper::getLegend ( ChartModel &  rModel,
const css::uno::Reference< css::uno::XComponentContext > &  xContext = nullptr,
bool  bCreate = false 
)
static

◆ hasLegend()

bool chart::LegendHelper::hasLegend ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

returns <FALSE>, if either there is no legend at the diagram, or there is a legend which has a "Show" property of value <FALSE>.

Otherwise, <TRUE> is returned.

Definition at line 107 of file LegendHelper.cxx.

Referenced by chart::ObjectHierarchy::createLegendTree(), chart::ChartController::execute_Command(), and chart::impl::ModelState::update().

◆ hideLegend()

void chart::LegendHelper::hideLegend ( ChartModel &  rModel)
static

Definition at line 66 of file LegendHelper.cxx.

References getLegend().

Referenced by chart::ChartController::executeDispatch_DeleteLegend().

◆ showLegend()

rtl::Reference< Legend > chart::LegendHelper::showLegend ( ChartModel &  rModel,
const css::uno::Reference< css::uno::XComponentContext > &  xContext 
)
static

Definition at line 36 of file LegendHelper.cxx.

References ePos, and getLegend().

Referenced by chart::ChartController::executeDispatch_InsertLegend().


The documentation for this class was generated from the following files: