LibreOffice Module sc (master) 1
ChartTools.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 */
10
11#pragma once
12
13#include <string_view>
14#include <memory>
15#include <vector>
16
17#include <svx/svditer.hxx>
18#include <tools/long.hxx>
19#include "types.hxx"
20#include <optional>
21
22class ScDocShell;
23class SdrOle2Obj;
24
25namespace sc::tools {
26
28{
31};
32
34{
35private:
36 std::optional<SdrObjListIter> m_oIterator;
38public:
39 ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
41};
42
44 std::u16string_view rName,
45 ChartSourceType eChartSourceType);
46
48 ::tools::Long nIndex, ChartSourceType eChartSourceType);
49
50std::vector<SdrOle2Obj*> getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell* pDocShell);
51
52} // end sc::tools
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::optional< SdrObjListIter > m_oIterator
Definition: ChartTools.hxx:36
ChartIterator(ScDocShell *pDocShell, SCTAB nTab, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:58
ChartSourceType m_eChartSourceType
Definition: ChartTools.hxx:37
SdrOle2Obj * getChartByIndex(ScDocShell *pDocShell, SCTAB nTab, ::tools::Long nIndex, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:120
std::vector< SdrOle2Obj * > getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell *pDocShell)
Definition: ChartTools.cxx:142
SdrOle2Obj * findChartsByName(ScDocShell *pDocShell, SCTAB nTab, std::u16string_view rName, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:98
long Long
sal_Int16 SCTAB
Definition: types.hxx:22