LibreOffice Module chart2 (master) 1
ChartModelHelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/awt/Size.hpp>
22#include "charttoolsdllapi.hxx"
23#include <rtl/ref.hxx>
24
25#include <vector>
26
27namespace chart { class ChartModel; }
28namespace com::sun::star::chart2 { class XChartDocument; }
29namespace com::sun::star::chart2 { class XChartType; }
30namespace com::sun::star::chart2 { class XCoordinateSystem; }
31namespace com::sun::star::chart2 { class XDataSeries; }
32namespace com::sun::star::chart2 { class XDiagram; }
33namespace com::sun::star::chart2::data { class XDataProvider; }
34namespace com::sun::star::chart2::data { class XRangeHighlighter; }
35namespace com::sun::star::frame { class XModel; }
36namespace com::sun::star::view { class XSelectionSupplier; }
37
38namespace chart
39{
40class BaseCoordinateSystem;
41class ChartType;
42class DataSeries;
43class Diagram;
44class InternalDataProvider;
45
47{
48public:
49 static rtl::Reference< InternalDataProvider > createInternalDataProvider(
50 const rtl::Reference<::chart::ChartModel>& xChartDoc, bool bConnectToModel );
51
53 getFirstCoordinateSystem( const rtl::Reference<::chart::ChartModel>& xModel );
54
55 static std::vector< rtl::Reference< ::chart::DataSeries > >
56 getDataSeries( const rtl::Reference< ::chart::ChartModel > & xModel );
57
61 , const rtl::Reference< ::chart::DataSeries >& xGivenDataSeries );
62
63 static css::awt::Size getDefaultPageSize();
64
65 static css::awt::Size getPageSize( const rtl::Reference<::chart::ChartModel>& xModel );
66
67 static void triggerRangeHighlighting( const rtl::Reference<::chart::ChartModel>& xModel );
68
69 static bool isIncludeHiddenCells( const rtl::Reference<::chart::ChartModel>& xChartModel );
70
71 static bool setIncludeHiddenCells( bool bIncludeHiddenCells, ChartModel& rModel);
72
73};
74
75} //namespace chart
76
77/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTTOOLS
OOO_DLLPUBLIC_CHARTTOOLS rtl::Reference< ::chart::ChartType > getChartTypeOfSeries(const rtl::Reference< ::chart::DataSeries > &xSeries, const rtl::Reference< ::chart::Diagram > &xDiagram)
Reference< XModel > xModel