nss: upgrade to release 3.73
[LibreOffice.git] / sc / inc / ChartTools.hxx
blob79aa00fb6056f85eef245a05921b7a686dbf715b
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>
19 #include <tools/long.hxx>
21 #include "types.hxx"
23 class ScDocShell;
24 class SdrOle2Obj;
26 namespace sc::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 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 ::tools::Long nIndex, ChartSourceType eChartSourceType);
51 std::vector<SdrOle2Obj*> getAllPivotChartsConnectedTo(OUString const & sPivotTableName, ScDocShell* pDocShell);
53 } // end sc::tools
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */