fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / inc / RangeSelectionHelper.hxx
blob7d229e3c688b7bab5e8017056afdfe398b5e94e7
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_CONTROLLER_INC_RANGESELECTIONHELPER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RANGESELECTIONHELPER_HXX
22 #include <com/sun/star/chart2/XChartDocument.hpp>
23 #include <com/sun/star/beans/PropertyValue.hpp>
25 namespace com { namespace sun { namespace star {
26 namespace sheet{
27 class XRangeSelection;
28 class XRangeSelectionListener;
29 class XCellRangesAccess;
31 }}}
33 namespace chart
36 class RangeSelectionListenerParent;
38 class RangeSelectionHelper
40 public:
41 explicit RangeSelectionHelper(
42 const ::com::sun::star::uno::Reference<
43 ::com::sun::star::chart2::XChartDocument > & xChartDocument );
44 ~RangeSelectionHelper();
46 bool hasRangeSelection();
47 ::com::sun::star::uno::Reference<
48 ::com::sun::star::sheet::XRangeSelection > getRangeSelection();
49 void raiseRangeSelectionDocument();
50 bool chooseRange(
51 const OUString & aCurrentRange,
52 const OUString & aUIString,
53 RangeSelectionListenerParent & rListenerParent );
54 void stopRangeListening( bool bRemoveListener = true );
55 bool verifyCellRange( const OUString & rRangeStr );
56 bool verifyArguments( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArguments );
58 private:
59 ::com::sun::star::uno::Reference<
60 ::com::sun::star::sheet::XRangeSelection >
61 m_xRangeSelection;
63 ::com::sun::star::uno::Reference<
64 ::com::sun::star::chart2::XChartDocument >
65 m_xChartDocument;
67 ::com::sun::star::uno::Reference<
68 ::com::sun::star::sheet::XCellRangesAccess >
69 m_xCellRangesAccess;
71 ::com::sun::star::uno::Reference<
72 ::com::sun::star::sheet::XRangeSelectionListener >
73 m_xRangeSelectionListener;
76 } // namespace chart
78 // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RANGESELECTIONHELPER_HXX
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */