LibreOffice Module chart2 (master) 1
|
#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 | |
Definition at line 54 of file DiagramHelper.hxx.
|
privatedelete |
|
static |
Definition at line 432 of file DiagramHelper.cxx.
References comphelper::sequenceToContainer().
Referenced by chart::lcl_moveSeriesOrCheckIfMoveIsAllowed().
|
static |
Definition at line 189 of file DiagramHelper.cxx.
References chart::lcl_generateAutomaticCategoriesFromChartType().
|
static |
Definition at line 354 of file DiagramHelper.cxx.
References SvNumberFormatter::GetFormatIndex(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), LanguageTag::getLocale(), Application::GetSettings(), chart::NumberFormatterWrapper::getSvNumberFormatter(), and NF_DATE_SYS_DDMMYYYY.
Referenced by chart::AxisHelper::getExplicitNumberFormatKeyForAxis(), and chart::SeriesPlotterContainer::initializeCooSysAndSeriesPlotter().
|
static |
Definition at line 382 of file DiagramHelper.cxx.
References SvNumberFormatter::GetEditFormat(), chart::NumberFormatterWrapper::getSvNumberFormatter(), SvNumberFormatter::GuessDateTimeFormat(), LANGUAGE_SYSTEM, nType, and SAL_WARN.
Referenced by chart::DataBrowser::GetCellText().
|
static |
Definition at line 498 of file DiagramHelper.cxx.
References chart::ChartModelHelper::getPageSize(), chart::RelativePositionHelper::getUpperLeftCornerOfAnchoredObject(), and RelativeSize.
Referenced by chart::wrapper::Chart2ModelContact::GetDiagramRectangleExcludingAxes(), and chart::wrapper::Chart2ModelContact::GetDiagramRectangleIncludingAxes().
|
static |
Definition at line 206 of file DiagramHelper.cxx.
References chart::ChartModelHelper::getFirstCoordinateSystem(), and chart::ExplicitCategoriesProvider::getSimpleCategories().
Referenced by chart::ObjectPropertiesDialogParameter::init().
|
static |
Definition at line 402 of file DiagramHelper.cxx.
References SvNumberFormatter::GetFormatIndex(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), LanguageTag::getLocale(), Application::GetSettings(), chart::NumberFormatterWrapper::getSvNumberFormatter(), and NF_PERCENT_INT.
Referenced by chart::AxisHelper::getExplicitNumberFormatKeyForAxis(), and chart::VSeriesPlotter::getLabelTextForValue().
|
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.
xCorrespondingCoordinateSystem | The 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().
|
static |
Definition at line 338 of file DiagramHelper.cxx.
References nType.
|
static |
Definition at line 158 of file DiagramHelper.cxx.
References chart::DataSeriesHelper::getAttachedAxisIndex().
Referenced by chart::Diagram::getAttachedAxis(), and chart::wrapper::SeriesOptionsItemConverter::SeriesOptionsItemConverter().
|
static |
Definition at line 453 of file DiagramHelper.cxx.
References chart::ChartModelHelper::getPageSize(), chart::lcl_ensureRange0to1(), and RelativeSize.
Referenced by chart::wrapper::DiagramWrapper::setDiagramPositionExcludingAxes(), and chart::wrapper::DiagramWrapper::setDiagramPositionIncludingAxes().
|
static |
Definition at line 528 of file DiagramHelper.cxx.
References GetODFSaneDefaultVersion(), and SvtSaveOptions::ODFSVER_012.
Referenced by chart::ChartController::execute_MouseButtonUp(), chart::ChartController::executeDispatch_PositionAndSize(), chart::ChartController::impl_switchDiagramPositioningToExcludingPositioning(), and chart::ChartView::update().
|
static |
Definition at line 308 of file DiagramHelper.cxx.
References chart::ChartModelHelper::getFirstCoordinateSystem().
Referenced by chart::wrapper::ChartDataWrapper::setDateCategories().
|
static |
Definition at line 323 of file DiagramHelper.cxx.
References chart::ChartModelHelper::getFirstCoordinateSystem().