LOK: tilebench improvements
[LibreOffice.git] / sc / inc / ChartTools.hxx
blobffac3aeb036d19e07d9fddab4dee7730efb83a9d
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 <svx/svdoole2.hxx>
16 #include <svx/svditer.hxx>
18 #include <docsh.hxx>
19 #include "drwlayer.hxx"
21 namespace sc {
22 namespace tools {
24 enum class ChartSourceType
26 CELL_RANGE,
27 PIVOT_TABLE
30 class ChartIterator
32 private:
33 std::unique_ptr<SdrObjListIter> m_pIterator;
34 ChartSourceType m_eChartSourceType;
35 public:
36 ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
37 SdrOle2Obj* next();
40 SdrOle2Obj* findChartsByName(ScDocShell* pDocShell, SCTAB nTab,
41 OUString const & rName,
42 ChartSourceType eChartSourceType);
44 SdrOle2Obj* getChartByIndex(ScDocShell* pDocShell, SCTAB nTab,
45 long nIndex, ChartSourceType eChartSourceType);
47 std::vector<SdrOle2Obj*> getAllPivotChartsConntectedTo(OUString const & sPivotTableName, ScDocShell* pDocShell);
49 }} // end sc::tools
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */