nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / inc / ChartTypeHelper.hxx
blob1a634532182555f2580740cc6d2c90a2ca4283f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <com/sun/star/drawing/Direction3D.hpp>
23 #include "charttoolsdllapi.hxx"
25 namespace com::sun::star::chart2 { class XChartType; }
26 namespace com::sun::star::chart2 { class XDataSeries; }
28 namespace chart
31 class OOO_DLLPUBLIC_CHARTTOOLS ChartTypeHelper
33 public:
34 static bool isSupportingGeometryProperties( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
35 static bool isSupportingStatisticProperties( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
36 static bool isSupportingRegressionProperties(const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
37 static bool isSupportingMainAxis( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount, sal_Int32 nDimensionIndex );
38 static bool isSupportingSecondaryAxis( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
39 static bool isSupportingAreaProperties( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
40 static bool isSupportingSymbolProperties( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
41 static bool isSupportingOverlapAndGapWidthProperties( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
42 static bool isSupportingBarConnectors( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
43 static bool isSupportingRightAngledAxes( const css::uno::Reference< css::chart2::XChartType >& xChartType );
44 static bool isSupportingAxisSideBySide( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
45 static bool isSupportingStartingAngle( const css::uno::Reference< css::chart2::XChartType >& xChartType );
46 //starting value for bars or baseline for areas for example
47 static bool isSupportingBaseValue( const css::uno::Reference< css::chart2::XChartType >& xChartType );
48 static bool isSupportingAxisPositioning( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount, sal_Int32 nDimensionIndex );
49 static bool isSupportingDateAxis( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionIndex );
50 static bool isSupportingComplexCategory( const css::uno::Reference< css::chart2::XChartType >& xChartType );
51 static bool isSupportingCategoryPositioning( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nDimensionCount );
53 //returns sequence of css::chart::DataLabelPlacement
54 static css::uno::Sequence < sal_Int32 > getSupportedLabelPlacements(
55 const css::uno::Reference< css::chart2::XChartType >& xChartType, bool bSwapXAndY
56 , const css::uno::Reference< css::chart2::XDataSeries >& xSeries );
58 //returns sequence of css::chart::MissingValueTreatment
59 static css::uno::Sequence < sal_Int32 > getSupportedMissingValueTreatments(
60 const css::uno::Reference< css::chart2::XChartType >& xChartType );
62 SAL_DLLPRIVATE static css::drawing::Direction3D getDefaultSimpleLightDirection( const css::uno::Reference< css::chart2::XChartType >& xChartType );
63 SAL_DLLPRIVATE static css::drawing::Direction3D getDefaultRealisticLightDirection( const css::uno::Reference< css::chart2::XChartType >& xChartType );
64 SAL_DLLPRIVATE static sal_Int32 getDefaultDirectLightColor( bool bSimple, const css::uno::Reference< css::chart2::XChartType >& xChartType );
65 SAL_DLLPRIVATE static sal_Int32 getDefaultAmbientLightColor( bool bSimple, const css::uno::Reference< css::chart2::XChartType >& xChartType );
66 static sal_Int32 getNumberOfDisplayedSeries( const css::uno::Reference< css::chart2::XChartType >& xChartType, sal_Int32 nNumberOfSeries );
67 SAL_DLLPRIVATE static bool noBordersForSimpleScheme( const css::uno::Reference< css::chart2::XChartType >& xChartType );
69 static bool isSeriesInFrontOfAxisLine( const css::uno::Reference< css::chart2::XChartType >& xChartType );
71 static sal_Int32 //one of css::chart2::AxisType
72 getAxisType( const css::uno::Reference< css::chart2::XChartType >& xChartType
73 , sal_Int32 nDimensionIndex );
75 static OUString getRoleOfSequenceForYAxisNumberFormatDetection( const css::uno::Reference<
76 css::chart2::XChartType >& xChartType );
78 static OUString getRoleOfSequenceForDataLabelNumberFormatDetection( const css::uno::Reference<
79 css::chart2::XChartType >& xChartType );
81 static bool isSupportingOnlyDeepStackingFor3D( const css::uno::Reference< css::chart2::XChartType >& xChartType );
84 } //namespace chart
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */