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

#include <AxisHelper.hxx>

Static Public Member Functions

static css::uno::Reference< css::chart2::XScaling > createLinearScaling ()
 
static css::uno::Reference< css::chart2::XScaling > createLogarithmicScaling (double fBase=10.0)
 
static css::chart2::ScaleData createDefaultScale ()
 
static void removeExplicitScaling (css::chart2::ScaleData &rScaleData)
 
static bool isLogarithmic (const css::uno::Reference< css::chart2::XScaling > &xScaling)
 
static void checkDateAxis (css::chart2::ScaleData &rScale, ExplicitCategoriesProvider *pExplicitCategoriesProvider, bool bChartTypeAllowsDateAxis)
 
static css::chart2::ScaleData getDateCheckedScale (const rtl::Reference< ::chart::Axis > &xAxis, ChartModel &rModel)
 
static sal_Int32 getExplicitNumberFormatKeyForAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCorrespondingCoordinateSystem, const rtl::Reference< ::chart::ChartModel > &xChartDoc, bool bSearchForParallelAxisIfNothingIsFound)
 
static rtl::Reference< ::chart::AxiscreateAxis (sal_Int32 nDimensionIndex, bool bMainAxis, const rtl::Reference< ::chart::Diagram > &xDiagram, const css::uno::Reference< css::uno::XComponentContext > &xContext, ReferenceSizeProvider *pRefSizeProvider=nullptr)
 
static rtl::Reference< ::chart::AxiscreateAxis (sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys, const css::uno::Reference< css::uno::XComponentContext > &xContext, ReferenceSizeProvider *pRefSizeProvider=nullptr)
 
static void showAxis (sal_Int32 nDimensionIndex, bool bMainAxis, const rtl::Reference< ::chart::Diagram > &xDiagram, const css::uno::Reference< css::uno::XComponentContext > &xContext, ReferenceSizeProvider *pRefSizeProvider=nullptr)
 
static void showGrid (sal_Int32 nDimensionIndex, sal_Int32 nCooSysIndex, bool bMainGrid, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static void hideAxis (sal_Int32 nDimensionIndex, bool bMainAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static void hideGrid (sal_Int32 nDimensionIndex, sal_Int32 nCooSysIndex, bool bMainGrid, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static bool isAxisShown (sal_Int32 nDimensionIndex, bool bMainAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static bool isGridShown (sal_Int32 nDimensionIndex, sal_Int32 nCooSysIndex, bool bMainGrid, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static void makeAxisVisible (const rtl::Reference< ::chart::Axis > &xAxis)
 
static void makeGridVisible (const rtl::Reference< ::chart::GridProperties > &xGridProperties)
 
static void makeAxisInvisible (const rtl::Reference< ::chart::Axis > &xAxis)
 
static void makeGridInvisible (const rtl::Reference< ::chart::GridProperties > &xGridProperties)
 
static void hideAxisIfNoDataIsAttached (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static SAL_DLLPRIVATE bool areAxisLabelsVisible (const rtl::Reference< ::chart::Axis > &xAxisProperties)
 
static bool isAxisVisible (const rtl::Reference< ::chart::Axis > &xAxis)
 
static bool isGridVisible (const rtl::Reference< ::chart::GridProperties > &xGridProperties)
 
static rtl::Reference< ::chart::BaseCoordinateSystemgetCoordinateSystemByIndex (const rtl::Reference< ::chart::Diagram > &xDiagram, sal_Int32 nIndex)
 
static rtl::Reference< ::chart::BaseCoordinateSystemgetCoordinateSystemOfAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static rtl::Reference< ::chart::AxisgetAxis (sal_Int32 nDimensionIndex, bool bMainAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static rtl::Reference< ::chart::AxisgetAxis (sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static rtl::Reference< ::chart::AxisgetCrossingMainAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static rtl::Reference< ::chart::AxisgetParallelAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static rtl::Reference< ::chart::GridPropertiesgetGridProperties (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys, sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex, sal_Int32 nSubGridIndex)
 
static sal_Int32 getDimensionIndexOfAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static bool getIndicesForAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys, sal_Int32 &rOutDimensionIndex, sal_Int32 &rOutAxisIndex)
 
static bool getIndicesForAxis (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram, sal_Int32 &rOutCooSysIndex, sal_Int32 &rOutDimensionIndex, sal_Int32 &rOutAxisIndex)
 
static std::vector< rtl::Reference< ::chart::Axis > > getAllAxesOfDiagram (const rtl::Reference< ::chart::Diagram > &xDiagram, bool bOnlyVisible=false)
 
static SAL_DLLPRIVATE std::vector< rtl::Reference< ::chart::Axis > > getAllAxesOfCoordinateSystem (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys, bool bOnlyVisible=false)
 
static std::vector< rtl::Reference< ::chart::GridProperties > > getAllGrids (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static void getAxisOrGridPossibilities (css::uno::Sequence< sal_Bool > &rPossibilityList, const rtl::Reference< ::chart::Diagram > &xDiagram, bool bAxis=true)
 
static void getAxisOrGridExistence (css::uno::Sequence< sal_Bool > &rExistenceList, const rtl::Reference< ::chart::Diagram > &xDiagram, bool bAxis=true)
 
static bool changeVisibilityOfGrids (const rtl::Reference< ::chart::Diagram > &xDiagram, const css::uno::Sequence< sal_Bool > &rOldExistenceList, const css::uno::Sequence< sal_Bool > &rNewExistenceList)
 
static bool changeVisibilityOfAxes (const rtl::Reference< ::chart::Diagram > &xDiagram, const css::uno::Sequence< sal_Bool > &rOldExistenceList, const css::uno::Sequence< sal_Bool > &rNewExistenceList, const css::uno::Reference< css::uno::XComponentContext > &xContext, ReferenceSizeProvider *pRefSizeProvider)
 
static bool shouldAxisBeDisplayed (const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static bool isSecondaryYAxisNeeded (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static rtl::Reference< ::chart::ChartTypegetChartTypeByIndex (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys, sal_Int32 nIndex)
 
static void setRTLAxisLayout (const rtl::Reference< ::chart::BaseCoordinateSystem > &xCooSys)
 
static rtl::Reference< ::chart::ChartTypegetFirstChartTypeWithSeriesAttachedToAxisIndex (const rtl::Reference< ::chart::Diagram > &xDiagram, const sal_Int32 nAttachedAxisIndex)
 
static bool isAxisPositioningEnabled ()
 

Detailed Description

Definition at line 47 of file AxisHelper.hxx.

Member Function Documentation

◆ areAxisLabelsVisible()

bool chart::AxisHelper::areAxisLabelsVisible ( const rtl::Reference< ::chart::Axis > &  xAxisProperties)
static

Definition at line 655 of file AxisHelper.cxx.

Referenced by isAxisVisible().

◆ changeVisibilityOfAxes()

bool chart::AxisHelper::changeVisibilityOfAxes ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
const css::uno::Sequence< sal_Bool > &  rOldExistenceList,
const css::uno::Sequence< sal_Bool > &  rNewExistenceList,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
ReferenceSizeProvider pRefSizeProvider 
)
static

Definition at line 940 of file AxisHelper.cxx.

References hideAxis(), and showAxis().

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

◆ changeVisibilityOfGrids()

bool chart::AxisHelper::changeVisibilityOfGrids ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
const css::uno::Sequence< sal_Bool > &  rOldExistenceList,
const css::uno::Sequence< sal_Bool > &  rNewExistenceList 
)
static

◆ checkDateAxis()

void chart::AxisHelper::checkDateAxis ( css::chart2::ScaleData &  rScale,
ExplicitCategoriesProvider pExplicitCategoriesProvider,
bool  bChartTypeAllowsDateAxis 
)
static

◆ createAxis() [1/2]

static rtl::Reference< ::chart::Axis > chart::AxisHelper::createAxis ( sal_Int32  nDimensionIndex,
bool  bMainAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
ReferenceSizeProvider pRefSizeProvider = nullptr 
)
static

◆ createAxis() [2/2]

static rtl::Reference< ::chart::Axis > chart::AxisHelper::createAxis ( sal_Int32  nDimensionIndex,
sal_Int32  nAxisIndex,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
ReferenceSizeProvider pRefSizeProvider = nullptr 
)
static

◆ createDefaultScale()

ScaleData chart::AxisHelper::createDefaultScale ( )
static

Definition at line 75 of file AxisHelper.cxx.

Referenced by removeExplicitScaling().

◆ createLinearScaling()

Reference< chart2::XScaling > chart::AxisHelper::createLinearScaling ( )
static

◆ createLogarithmicScaling()

Reference< chart2::XScaling > chart::AxisHelper::createLogarithmicScaling ( double  fBase = 10.0)
static

◆ getAllAxesOfCoordinateSystem()

std::vector< rtl::Reference< Axis > > chart::AxisHelper::getAllAxesOfCoordinateSystem ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys,
bool  bOnlyVisible = false 
)
static
Parameters
bOnlyVisibleif </TRUE>, only axes with property "Show" set to </sal_True> are returned

Definition at line 765 of file AxisHelper.cxx.

References DBG_UNHANDLED_EXCEPTION.

Referenced by getAllAxesOfDiagram(), and getCoordinateSystemOfAxis().

◆ getAllAxesOfDiagram()

std::vector< rtl::Reference< Axis > > chart::AxisHelper::getAllAxesOfDiagram ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
bool  bOnlyVisible = false 
)
static

◆ getAllGrids()

std::vector< rtl::Reference< GridProperties > > chart::AxisHelper::getAllGrids ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

◆ getAxis() [1/2]

static rtl::Reference< ::chart::Axis > chart::AxisHelper::getAxis ( sal_Int32  nDimensionIndex,
bool  bMainAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

◆ getAxis() [2/2]

static rtl::Reference< ::chart::Axis > chart::AxisHelper::getAxis ( sal_Int32  nDimensionIndex,
sal_Int32  nAxisIndex,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys 
)
static

◆ getAxisOrGridExistence()

void chart::AxisHelper::getAxisOrGridExistence ( css::uno::Sequence< sal_Bool > &  rExistenceList,
const rtl::Reference< ::chart::Diagram > &  xDiagram,
bool  bAxis = true 
)
static

◆ getAxisOrGridPossibilities()

void chart::AxisHelper::getAxisOrGridPossibilities ( css::uno::Sequence< sal_Bool > &  rPossibilityList,
const rtl::Reference< ::chart::Diagram > &  xDiagram,
bool  bAxis = true 
)
static

◆ getChartTypeByIndex()

rtl::Reference< ChartType > chart::AxisHelper::getChartTypeByIndex ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys,
sal_Int32  nIndex 
)
static

◆ getCoordinateSystemByIndex()

rtl::Reference<::chart::BaseCoordinateSystem > chart::AxisHelper::getCoordinateSystemByIndex ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
sal_Int32  nIndex 
)
static

◆ getCoordinateSystemOfAxis()

rtl::Reference< BaseCoordinateSystem > chart::AxisHelper::getCoordinateSystemOfAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

◆ getCrossingMainAxis()

rtl::Reference< Axis > chart::AxisHelper::getCrossingMainAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys 
)
static

◆ getDateCheckedScale()

chart2::ScaleData chart::AxisHelper::getDateCheckedScale ( const rtl::Reference< ::chart::Axis > &  xAxis,
ChartModel &  rModel 
)
static

◆ getDimensionIndexOfAxis()

sal_Int32 chart::AxisHelper::getDimensionIndexOfAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

Definition at line 700 of file AxisHelper.cxx.

References getIndicesForAxis().

Referenced by chart::ChartTypeTemplate::resetStyles2().

◆ getExplicitNumberFormatKeyForAxis()

sal_Int32 chart::AxisHelper::getExplicitNumberFormatKeyForAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCorrespondingCoordinateSystem,
const rtl::Reference< ::chart::ChartModel > &  xChartDoc,
bool  bSearchForParallelAxisIfNothingIsFound 
)
static

◆ getFirstChartTypeWithSeriesAttachedToAxisIndex()

rtl::Reference< ChartType > chart::AxisHelper::getFirstChartTypeWithSeriesAttachedToAxisIndex ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
const sal_Int32  nAttachedAxisIndex 
)
static

◆ getGridProperties()

rtl::Reference< GridProperties > chart::AxisHelper::getGridProperties ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys,
sal_Int32  nDimensionIndex,
sal_Int32  nAxisIndex,
sal_Int32  nSubGridIndex 
)
static

◆ getIndicesForAxis() [1/2]

static bool chart::AxisHelper::getIndicesForAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys,
sal_Int32 &  rOutDimensionIndex,
sal_Int32 &  rOutAxisIndex 
)
static

◆ getIndicesForAxis() [2/2]

static bool chart::AxisHelper::getIndicesForAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram,
sal_Int32 &  rOutCooSysIndex,
sal_Int32 &  rOutDimensionIndex,
sal_Int32 &  rOutAxisIndex 
)
static

◆ getParallelAxis()

rtl::Reference< Axis > chart::AxisHelper::getParallelAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

◆ hideAxis()

void chart::AxisHelper::hideAxis ( sal_Int32  nDimensionIndex,
bool  bMainAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

Definition at line 461 of file AxisHelper.cxx.

References getAxis(), and makeAxisInvisible().

Referenced by changeVisibilityOfAxes().

◆ hideAxisIfNoDataIsAttached()

void chart::AxisHelper::hideAxisIfNoDataIsAttached ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

Definition at line 475 of file AxisHelper.cxx.

References makeAxisInvisible().

Referenced by chart::Diagram::attachSeriesToAxis().

◆ hideGrid()

void chart::AxisHelper::hideGrid ( sal_Int32  nDimensionIndex,
sal_Int32  nCooSysIndex,
bool  bMainGrid,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

◆ isAxisPositioningEnabled()

bool chart::AxisHelper::isAxisPositioningEnabled ( )
static

◆ isAxisShown()

bool chart::AxisHelper::isAxisShown ( sal_Int32  nDimensionIndex,
bool  bMainAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

Definition at line 635 of file AxisHelper.cxx.

References getAxis(), and isAxisVisible().

Referenced by getAxisOrGridExistence().

◆ isAxisVisible()

bool chart::AxisHelper::isAxisVisible ( const rtl::Reference< ::chart::Axis > &  xAxis)
static

◆ isGridShown()

bool chart::AxisHelper::isGridShown ( sal_Int32  nDimensionIndex,
sal_Int32  nCooSysIndex,
bool  bMainGrid,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

◆ isGridVisible()

bool chart::AxisHelper::isGridVisible ( const rtl::Reference< ::chart::GridProperties > &  xGridProperties)
static

◆ isLogarithmic()

bool chart::AxisHelper::isLogarithmic ( const css::uno::Reference< css::chart2::XScaling > &  xScaling)
static

◆ isSecondaryYAxisNeeded()

bool chart::AxisHelper::isSecondaryYAxisNeeded ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys)
static

Definition at line 870 of file AxisHelper.cxx.

References getPropertyValue().

Referenced by chart::ChartTypeTemplate::createAxes().

◆ makeAxisInvisible()

void chart::AxisHelper::makeAxisInvisible ( const rtl::Reference< ::chart::Axis > &  xAxis)
static

◆ makeAxisVisible()

void chart::AxisHelper::makeAxisVisible ( const rtl::Reference< ::chart::Axis > &  xAxis)
static

◆ makeGridInvisible()

void chart::AxisHelper::makeGridInvisible ( const rtl::Reference< ::chart::GridProperties > &  xGridProperties)
static

◆ makeGridVisible()

void chart::AxisHelper::makeGridVisible ( const rtl::Reference< ::chart::GridProperties > &  xGridProperties)
static

◆ removeExplicitScaling()

void chart::AxisHelper::removeExplicitScaling ( css::chart2::ScaleData &  rScaleData)
static

◆ setRTLAxisLayout()

void chart::AxisHelper::setRTLAxisLayout ( const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys)
static

◆ shouldAxisBeDisplayed()

bool chart::AxisHelper::shouldAxisBeDisplayed ( const rtl::Reference< ::chart::Axis > &  xAxis,
const rtl::Reference< ::chart::BaseCoordinateSystem > &  xCooSys 
)
static

◆ showAxis()

void chart::AxisHelper::showAxis ( sal_Int32  nDimensionIndex,
bool  bMainAxis,
const rtl::Reference< ::chart::Diagram > &  xDiagram,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
ReferenceSizeProvider pRefSizeProvider = nullptr 
)
static

Definition at line 392 of file AxisHelper.cxx.

References createAxis(), getAxis(), and makeAxisVisible().

Referenced by changeVisibilityOfAxes().

◆ showGrid()

void chart::AxisHelper::showGrid ( sal_Int32  nDimensionIndex,
sal_Int32  nCooSysIndex,
bool  bMainGrid,
const rtl::Reference< ::chart::Diagram > &  xDiagram 
)
static

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