Avoid potential negative array index access to cached text.
[LibreOffice.git] / chart2 / source / inc / ChartModelHelper.hxx
blob9c18af92be6a1babfa43599983b41fae3a5843c9
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 .
19 #pragma once
21 #include <com/sun/star/awt/Size.hpp>
22 #include "charttoolsdllapi.hxx"
23 #include <rtl/ref.hxx>
25 #include <vector>
27 namespace chart { class ChartModel; }
28 namespace com::sun::star::chart2 { class XChartDocument; }
29 namespace com::sun::star::chart2 { class XChartType; }
30 namespace com::sun::star::chart2 { class XCoordinateSystem; }
31 namespace com::sun::star::chart2 { class XDataSeries; }
32 namespace com::sun::star::chart2 { class XDiagram; }
33 namespace com::sun::star::chart2::data { class XDataProvider; }
34 namespace com::sun::star::chart2::data { class XRangeHighlighter; }
35 namespace com::sun::star::frame { class XModel; }
36 namespace com::sun::star::view { class XSelectionSupplier; }
38 namespace chart
40 class BaseCoordinateSystem;
41 class ChartType;
42 class DataSeries;
43 class Diagram;
44 class InternalDataProvider;
46 class OOO_DLLPUBLIC_CHARTTOOLS ChartModelHelper
48 public:
49 static rtl::Reference< InternalDataProvider > createInternalDataProvider(
50 const rtl::Reference<::chart::ChartModel>& xChartDoc, bool bConnectToModel );
52 static rtl::Reference< ::chart::BaseCoordinateSystem >
53 getFirstCoordinateSystem( const rtl::Reference<::chart::ChartModel>& xModel );
55 static std::vector< rtl::Reference< ::chart::DataSeries > >
56 getDataSeries( const rtl::Reference< ::chart::ChartModel > & xModel );
58 static rtl::Reference< ChartType >
59 getChartTypeOfSeries(
60 const rtl::Reference<::chart::ChartModel>& xModel
61 , const rtl::Reference< ::chart::DataSeries >& xGivenDataSeries );
63 static css::awt::Size getDefaultPageSize();
65 static css::awt::Size getPageSize( const rtl::Reference<::chart::ChartModel>& xModel );
67 static void triggerRangeHighlighting( const rtl::Reference<::chart::ChartModel>& xModel );
69 static bool isIncludeHiddenCells( const rtl::Reference<::chart::ChartModel>& xChartModel );
71 static bool setIncludeHiddenCells( bool bIncludeHiddenCells, ChartModel& rModel);
75 } //namespace chart
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */