Bump version to 6.4-15
[LibreOffice.git] / sc / inc / ChartTools.hxx
blobaf0a4e807827113a1a8e3b80bb1fa8c2bcf3c1e4
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 */
11 #ifndef INCLUDED_SC_INC_CHARTTOOLS_HXX
12 #define INCLUDED_SC_INC_CHARTTOOLS_HXX
14 #include <memory>
15 #include <vector>
17 #include <svx/svditer.hxx>
18 #include <rtl/ustring.hxx>
20 #include "types.hxx"
22 class ScDocShell;
23 class SdrOle2Obj;
25 namespace sc {
26 namespace tools {
28 enum class ChartSourceType
30 CELL_RANGE,
31 PIVOT_TABLE
34 class ChartIterator
36 private:
37 std::unique_ptr<SdrObjListIter> m_pIterator;
38 ChartSourceType const m_eChartSourceType;
39 public:
40 ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
41 SdrOle2Obj* next();
44 SdrOle2Obj* findChartsByName(ScDocShell* pDocShell, SCTAB nTab,
45 OUString const & rName,
46 ChartSourceType eChartSourceType);
48 SdrOle2Obj* getChartByIndex(ScDocShell* pDocShell, SCTAB nTab,
49 long nIndex, ChartSourceType eChartSourceType);
51 std::vector<SdrOle2Obj*> getAllPivotChartsConntectedTo(OUString const & sPivotTableName, ScDocShell* pDocShell);
53 }} // end sc::tools
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */