25#include <servicenames.hxx>
37#include <com/sun/star/chart2/XDataSeries.hpp>
43using ::com::sun::star::uno::Reference;
51 m_xChartModel( nullptr )
76 m_aTableMap[
"FillTransparenceGradientName"] = xTransparencyGradientTable;
96 return xChartModel->getFirstChartDiagram();
98 catch(
const uno::Exception & )
114 auto pChartView =
dynamic_cast<ChartView*
>(xInstance.get());
115 assert(!xInstance || pChartView);
136 xResult = pProvider->getDrawModelWrapper()->getMainDrawPage();
149 pProvider->getExplicitValuesForAxis(
150 xAxis, rOutExplicitScale, rOutExplicitIncrement );
161 return ExplicitValueProvider::getExplicitNumberFormatKeyForAxis( xAxis, xCooSys
168 return ExplicitValueProvider::getExplicitNumberFormatKeyForDataLabel(
179 awt::Rectangle aRect = ExplicitValueProvider::AddSubtractAxisTitleSizes(
189 aRect = ExplicitValueProvider::AddSubtractAxisTitleSizes(
197 awt::Rectangle aRect(0,0,0,0);
206 aRect = pProvider->getRectangleOfObject(
"PlotAreaIncludingAxes");
213 awt::Rectangle aRect(0,0,0,0);
222 aRect = pProvider->getDiagramRectangleExcludingAxes();
235 aSize =
ToSize( pProvider->getRectangleOfObject( aCID ) );
248 aPoint =
ToPoint( pProvider->getRectangleOfObject( aCID ) );
257 if( pProvider && xTitle.is() )
260 aSize =
ToSize( pProvider->getRectangleOfObject( aCID ) );
269 if( pProvider && xTitle.is() )
272 aPoint =
ToPoint( pProvider->getRectangleOfObject( aCID ) );
281 if( pProvider && xAxis.is() )
284 aSize =
ToSize( pProvider->getRectangleOfObject( aCID ) );
293 if( pProvider && xAxis.is() )
296 aPoint =
ToPoint( pProvider->getRectangleOfObject( aCID ) );
Reference< uno::XComponentContext > m_xContext
static rtl::Reference< ::chart::BaseCoordinateSystem > getCoordinateSystemOfAxis(const rtl::Reference< ::chart::Axis > &xAxis, const rtl::Reference< ::chart::Diagram > &xDiagram)
static css::awt::Size getPageSize(const rtl::Reference<::chart::ChartModel > &xModel)
The ChartView is responsible to manage the generation of Drawing Objects for visualization on a given...
static css::awt::Rectangle getDiagramRectangleFromModel(const rtl::Reference<::chart::ChartModel > &xChartModel)
static rtl::Reference< ::chart::Legend > getLegend(ChartModel &rModel, const css::uno::Reference< css::uno::XComponentContext > &xContext=nullptr, bool bCreate=false)
static OUString createClassifiedIdentifierForObject(const css::uno::Reference< css::uno::XInterface > &xObject, const rtl::Reference<::chart::ChartModel > &xChartModel)
#define DBG_UNHANDLED_EXCEPTION(...)
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Size ToSize(const css::awt::Rectangle &rRectangle)
awt::Rect --> awt::Size (2D)
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Point ToPoint(const css::awt::Rectangle &rRectangle)
awt::Rect --> awt::Point (2D)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
constexpr OUStringLiteral CHART_VIEW_SERVICE_NAME
describes how tickmarks are positioned on the scale of an axis.
This structure contains the explicit values for a scale like Minimum and Maximum.