Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / chart2 / source / controller / inc / RangeSelectionHelper.hxx
blob0b2ab7153e52eaeaa2db042a821c521e1ff359ad
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 css::uno::Reference< css::chart2::XChartDocument > & xChartDocument );
43 ~RangeSelectionHelper();
45 bool hasRangeSelection();
46 css::uno::Reference< css::sheet::XRangeSelection > const & getRangeSelection();
47 void raiseRangeSelectionDocument();
48 bool chooseRange(
49 const OUString & aCurrentRange,
50 const OUString & aUIString,
51 RangeSelectionListenerParent & rListenerParent );
52 void stopRangeListening( bool bRemoveListener = true );
53 bool verifyCellRange( const OUString & rRangeStr );
54 bool verifyArguments( const css::uno::Sequence< css::beans::PropertyValue >& rArguments );
56 private:
57 css::uno::Reference< css::sheet::XRangeSelection >
58 m_xRangeSelection;
60 css::uno::Reference< css::chart2::XChartDocument >
61 m_xChartDocument;
63 css::uno::Reference< css::sheet::XRangeSelectionListener >
64 m_xRangeSelectionListener;
67 } // namespace chart
69 // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RANGESELECTIONHELPER_HXX
70 #endif
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */