merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / inc / ChartModelHelper.hxx
blob729d427f345f15d6f70f0168a938a97e89b29cc2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ChartModelHelper.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHART2_CONTROLLER_CHARTMODELHELPER_HXX
31 #define _CHART2_CONTROLLER_CHARTMODELHELPER_HXX
33 #include <com/sun/star/chart2/XChartType.hpp>
34 #include <com/sun/star/chart2/XDataSeries.hpp>
35 #include <com/sun/star/chart2/XDiagram.hpp>
36 #include <com/sun/star/chart2/XChartDocument.hpp>
37 #include <com/sun/star/chart2/XUndoManager.hpp>
38 #include <com/sun/star/chart2/data/XDataProvider.hpp>
39 #include <com/sun/star/chart2/data/XRangeHighlighter.hpp>
40 #include <com/sun/star/chart/XChartDataArray.hpp>
41 #include <com/sun/star/view/XSelectionSupplier.hpp>
43 #include <com/sun/star/awt/Size.hpp>
44 #include <com/sun/star/frame/XModel.hpp>
45 #include "charttoolsdllapi.hxx"
47 #include <vector>
49 //.............................................................................
50 namespace chart
52 //.............................................................................
54 //-----------------------------------------------------------------------------
55 /**
58 class OOO_DLLPUBLIC_CHARTTOOLS ChartModelHelper
60 public:
61 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XUndoManager > createUndoManager();
63 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XRangeHighlighter > createRangeHighlighter(
64 const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier >& xSelectionSupplier );
66 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > createInternalDataProvider();
68 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > createInternalDataProvider(
69 const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataArray >& xDataToCopy );
71 static ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > createInternalDataProvider(
72 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >& xChartDoc );
74 static ::com::sun::star::uno::Reference<
75 ::com::sun::star::chart2::XDiagram >
76 findDiagram( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
78 static ::com::sun::star::uno::Reference<
79 ::com::sun::star::chart2::XDiagram >
80 findDiagram( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >& xChartDoc );
82 SAL_DLLPRIVATE static ::std::vector< ::com::sun::star::uno::Reference<
83 ::com::sun::star::chart2::XDataSeries > > getDataSeries(
84 const ::com::sun::star::uno::Reference<
85 ::com::sun::star::chart2::XChartDocument > & xChartDoc );
86 static ::std::vector< ::com::sun::star::uno::Reference<
87 ::com::sun::star::chart2::XDataSeries > > getDataSeries(
88 const ::com::sun::star::uno::Reference<
89 ::com::sun::star::frame::XModel > & xModel );
91 static ::com::sun::star::uno::Reference<
92 ::com::sun::star::chart2::XChartType >
93 getChartTypeOfSeries(
94 const ::com::sun::star::uno::Reference<
95 ::com::sun::star::frame::XModel >& xModel
96 , const ::com::sun::star::uno::Reference<
97 ::com::sun::star::chart2::XDataSeries >& xGivenDataSeries );
99 static ::com::sun::star::awt::Size getPageSize(
100 const ::com::sun::star::uno::Reference<
101 ::com::sun::star::frame::XModel >& xModel );
103 static void setPageSize( const ::com::sun::star::awt::Size& rSize
104 , const ::com::sun::star::uno::Reference<
105 ::com::sun::star::frame::XModel >& xModel );
107 static void triggerRangeHighlighting( const ::com::sun::star::uno::Reference<
108 ::com::sun::star::frame::XModel >& xModel );
110 static bool isIncludeHiddenCells( const ::com::sun::star::uno::Reference<
111 ::com::sun::star::frame::XModel >& xChartModel );
113 static bool setIncludeHiddenCells( bool bIncludeHiddenCells, const ::com::sun::star::uno::Reference<
114 ::com::sun::star::frame::XModel >& xChartModel );
117 //.............................................................................
118 } //namespace chart
119 //.............................................................................
120 #endif