tdf#48459 sw inline heading: don't apply inside frames or over 120 chars
[LibreOffice.git] / sc / inc / ChartTools.hxx
blobaaae1646c1bd441b80657b8fc38da0b170e8084f
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 #pragma once
13 #include <string_view>
14 #include <vector>
16 #include <svx/svditer.hxx>
17 #include <tools/long.hxx>
18 #include "types.hxx"
19 #include <optional>
21 class ScDocShell;
22 class SdrOle2Obj;
24 namespace sc::tools {
26 enum class ChartSourceType
28 CELL_RANGE,
29 PIVOT_TABLE
32 class ChartIterator
34 private:
35 std::optional<SdrObjListIter> m_oIterator;
36 ChartSourceType m_eChartSourceType;
37 public:
38 ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
39 SdrOle2Obj* next();
42 SdrOle2Obj* findChartsByName(ScDocShell* pDocShell, SCTAB nTab,
43 std::u16string_view rName,
44 ChartSourceType eChartSourceType);
46 SdrOle2Obj* getChartByIndex(ScDocShell* pDocShell, SCTAB nTab,
47 ::tools::Long nIndex, ChartSourceType eChartSourceType);
49 std::vector<SdrOle2Obj*> getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell* pDocShell);
51 } // end sc::tools
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */