1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <com/sun/star/awt/Size.hpp>
22 #include "charttoolsdllapi.hxx"
23 #include <rtl/ref.hxx>
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
; }
40 class BaseCoordinateSystem
;
44 class InternalDataProvider
;
46 class OOO_DLLPUBLIC_CHARTTOOLS ChartModelHelper
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
>
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
);
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */