fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / inc / ChartModelHelper.hxx
blob426bdafa86879716b56bb0a01ea220c62d514c3a
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 #ifndef INCLUDED_CHART2_SOURCE_INC_CHARTMODELHELPER_HXX
20 #define INCLUDED_CHART2_SOURCE_INC_CHARTMODELHELPER_HXX
22 #include <com/sun/star/chart2/XChartType.hpp>
23 #include <com/sun/star/chart2/XDataSeries.hpp>
24 #include <com/sun/star/chart2/XDiagram.hpp>
25 #include <com/sun/star/chart2/XChartDocument.hpp>
26 #include <com/sun/star/chart2/data/XDataProvider.hpp>
27 #include <com/sun/star/chart2/data/XRangeHighlighter.hpp>
28 #include <com/sun/star/view/XSelectionSupplier.hpp>
30 #include <com/sun/star/awt/Size.hpp>
31 #include <com/sun/star/frame/XModel.hpp>
32 #include "charttoolsdllapi.hxx"
34 #include "ChartModel.hxx"
36 #include <vector>
38 namespace chart
41 /**
44 class OOO_DLLPUBLIC_CHARTTOOLS ChartModelHelper
46 public:
47 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XRangeHighlighter > createRangeHighlighter(
48 const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier >& xSelectionSupplier );
50 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > createInternalDataProvider(
51 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >& xChartDoc, bool bConnectToModel );
53 static ::com::sun::star::uno::Reference<
54 ::com::sun::star::chart2::XDiagram >
55 findDiagram( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
57 static ::com::sun::star::uno::Reference<
58 ::com::sun::star::chart2::XDiagram >
59 findDiagram( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >& xChartDoc );
61 static ::com::sun::star::uno::Reference<
62 ::com::sun::star::chart2::XCoordinateSystem >
63 getFirstCoordinateSystem( ChartModel& rModel );
65 static ::com::sun::star::uno::Reference<
66 ::com::sun::star::chart2::XCoordinateSystem >
67 getFirstCoordinateSystem( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
69 SAL_DLLPRIVATE static ::std::vector< ::com::sun::star::uno::Reference<
70 ::com::sun::star::chart2::XDataSeries > > getDataSeries(
71 ChartModel& rModel );
73 SAL_DLLPRIVATE static ::std::vector< ::com::sun::star::uno::Reference<
74 ::com::sun::star::chart2::XDataSeries > > getDataSeries(
75 const ::com::sun::star::uno::Reference<
76 ::com::sun::star::chart2::XChartDocument > & xChartDoc );
77 static ::std::vector< ::com::sun::star::uno::Reference<
78 ::com::sun::star::chart2::XDataSeries > > getDataSeries(
79 const ::com::sun::star::uno::Reference<
80 ::com::sun::star::frame::XModel > & xModel );
82 static ::com::sun::star::uno::Reference<
83 ::com::sun::star::chart2::XChartType >
84 getChartTypeOfSeries(
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::frame::XModel >& xModel
87 , const ::com::sun::star::uno::Reference<
88 ::com::sun::star::chart2::XDataSeries >& xGivenDataSeries );
90 static ::com::sun::star::awt::Size getDefaultPageSize();
92 static ::com::sun::star::awt::Size getPageSize(
93 const ::com::sun::star::uno::Reference<
94 ::com::sun::star::frame::XModel >& xModel );
96 static void triggerRangeHighlighting( const ::com::sun::star::uno::Reference<
97 ::com::sun::star::frame::XModel >& xModel );
99 static bool isIncludeHiddenCells( const ::com::sun::star::uno::Reference<
100 ::com::sun::star::frame::XModel >& xChartModel );
102 static bool setIncludeHiddenCells( bool bIncludeHiddenCells, ChartModel& rModel);
105 } //namespace chart
106 #endif
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */