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

#include <DiagramHelper.hxx>

Static Public Member Functions

static StackMode getStackModeFromChartType (const rtl::Reference< ::chart::ChartType > &xChartType, bool &rbFound, bool &rbAmbiguous, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCorrespondingCoordinateSystem)
 Retrieves the stackmode of the first DataSeries or none. More...
 
static bool isSeriesAttachedToMainAxis (const rtl::Reference< ::chart::DataSeries > &xDataSeries)
 
static css::uno::Sequence< OUString > getExplicitSimpleCategories (ChartModel &rModel)
 
static SAL_DLLPRIVATE css::uno::Sequence< OUString > generateAutomaticCategoriesFromCooSys (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static void switchToDateCategories (const rtl::Reference<::chart::ChartModel > &xChartDoc)
 
static void switchToTextCategories (const rtl::Reference<::chart::ChartModel > &xChartDoc)
 
static bool isDateNumberFormat (sal_Int32 nNumberFormat, const css::uno::Reference< css::util::XNumberFormats > &xNumberFormats)
 
static sal_Int32 getDateNumberFormat (const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier)
 
static sal_Int32 getDateTimeInputNumberFormat (const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier, double fNumber)
 
static sal_Int32 getPercentNumberFormat (const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumberFormatsSupplier)
 
static SAL_DLLPRIVATE bool areChartTypesCompatible (const rtl::Reference< ::chart::ChartType > &xFirstType, const rtl::Reference< ::chart::ChartType > &xSecondType)
 
static bool setDiagramPositioning (const rtl::Reference<::chart::ChartModel > &xChartModel, const css::awt::Rectangle &rPosRect)
 
static css::awt::Rectangle getDiagramRectangleFromModel (const rtl::Reference<::chart::ChartModel > &xChartModel)
 
static bool switchDiagramPositioningToExcludingPositioning (ChartModel &rModel, bool bResetModifiedState, bool bConvertAlsoFromAutoPositioning)
 

Private Member Functions

 DiagramHelper ()=delete
 

Detailed Description

Definition at line 54 of file DiagramHelper.hxx.

Constructor & Destructor Documentation

◆ DiagramHelper()

chart::DiagramHelper::DiagramHelper ( )
privatedelete

Member Function Documentation

◆ areChartTypesCompatible()

bool chart::DiagramHelper::areChartTypesCompatible ( const rtl::Reference< ::chart::ChartType > &  xFirstType,
const rtl::Reference< ::chart::ChartType > &  xSecondType 
)
static

◆ generateAutomaticCategoriesFromCooSys()

Sequence< OUString > chart::DiagramHelper::generateAutomaticCategoriesFromCooSys ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys)
static

◆ getDateNumberFormat()

sal_Int32 chart::DiagramHelper::getDateNumberFormat ( const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xNumberFormatsSupplier)
static

◆ getDateTimeInputNumberFormat()

sal_Int32 chart::DiagramHelper::getDateTimeInputNumberFormat ( const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xNumberFormatsSupplier,
double  fNumber 
)
static

◆ getDiagramRectangleFromModel()

awt::Rectangle chart::DiagramHelper::getDiagramRectangleFromModel ( const rtl::Reference<::chart::ChartModel > &  xChartModel)
static

◆ getExplicitSimpleCategories()

Sequence< OUString > chart::DiagramHelper::getExplicitSimpleCategories ( ChartModel &  rModel)
static

◆ getPercentNumberFormat()

sal_Int32 chart::DiagramHelper::getPercentNumberFormat ( const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xNumberFormatsSupplier)
static

◆ getStackModeFromChartType()

StackMode chart::DiagramHelper::getStackModeFromChartType ( const rtl::Reference< ::chart::ChartType > &  xChartType,
bool &  rbFound,
bool &  rbAmbiguous,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCorrespondingCoordinateSystem 
)
static

Retrieves the stackmode of the first DataSeries or none.

If the series have differing stack modes, rbAmbiguous is set to true. If no series is there rbFound is set to false.

Parameters
xCorrespondingCoordinateSystemThe coordinate system in which the given chart type xChartType is located. (This is needed for determining percent stacking. If omitted, the result will just indicate "not stacked", "stacked" or "ambiguous")

Definition at line 78 of file DiagramHelper.cxx.

References DBG_UNHANDLED_EXCEPTION, chart::DataSeriesHelper::getAttachedAxisIndex(), i, chart::NONE, chart::YStacked, chart::YStackedPercent, and chart::ZStacked.

Referenced by chart::Diagram::getStackMode(), chart::ChartTypeHelper::getSupportedMissingValueTreatments(), chart::ChartTypeHelper::isSupportingAxisSideBySide(), chart::ChartTypeHelper::isSupportingBarConnectors(), chart::ChartTypeTemplate::matchesTemplate2(), and chart::ColumnLineChartTypeTemplate::matchesTemplate2().

◆ isDateNumberFormat()

bool chart::DiagramHelper::isDateNumberFormat ( sal_Int32  nNumberFormat,
const css::uno::Reference< css::util::XNumberFormats > &  xNumberFormats 
)
static

Definition at line 338 of file DiagramHelper.cxx.

References nType.

◆ isSeriesAttachedToMainAxis()

bool chart::DiagramHelper::isSeriesAttachedToMainAxis ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries)
static

◆ setDiagramPositioning()

bool chart::DiagramHelper::setDiagramPositioning ( const rtl::Reference<::chart::ChartModel > &  xChartModel,
const css::awt::Rectangle &  rPosRect 
)
static

◆ switchDiagramPositioningToExcludingPositioning()

bool chart::DiagramHelper::switchDiagramPositioningToExcludingPositioning ( ChartModel &  rModel,
bool  bResetModifiedState,
bool  bConvertAlsoFromAutoPositioning 
)
static

◆ switchToDateCategories()

void chart::DiagramHelper::switchToDateCategories ( const rtl::Reference<::chart::ChartModel > &  xChartDoc)
static

◆ switchToTextCategories()

void chart::DiagramHelper::switchToTextCategories ( const rtl::Reference<::chart::ChartModel > &  xChartDoc)
static

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