LibreOffice Module sc (master)
1
sc
inc
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
21
class
ScDocShell
;
22
class
SdrOle2Obj
;
23
24
namespace
sc::tools
{
25
26
enum class
ChartSourceType
27
{
28
CELL_RANGE
,
29
PIVOT_TABLE
30
};
31
32
class
ChartIterator
33
{
34
private
:
35
std::unique_ptr<SdrObjListIter>
m_pIterator
;
36
ChartSourceType
m_eChartSourceType
;
37
public
:
38
ChartIterator
(
ScDocShell
* pDocShell,
SCTAB
nTab,
ChartSourceType
eChartSourceType);
39
SdrOle2Obj
*
next
();
40
};
41
42
SdrOle2Obj
*
findChartsByName
(
ScDocShell
* pDocShell,
SCTAB
nTab,
43
std::u16string_view rName,
44
ChartSourceType
eChartSourceType);
45
46
SdrOle2Obj
*
getChartByIndex
(
ScDocShell
* pDocShell,
SCTAB
nTab,
47
::tools::Long
nIndex,
ChartSourceType
eChartSourceType);
48
49
std::vector<SdrOle2Obj*>
getAllPivotChartsConnectedTo
(std::u16string_view sPivotTableName,
ScDocShell
* pDocShell);
50
51
}
// end sc::tools
52
53
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDocShell
Definition:
docsh.hxx:82
SdrOle2Obj
sc::tools::ChartIterator
Definition:
ChartTools.hxx:33
sc::tools::ChartIterator::next
SdrOle2Obj * next()
Definition:
ChartTools.cxx:73
sc::tools::ChartIterator::ChartIterator
ChartIterator(ScDocShell *pDocShell, SCTAB nTab, ChartSourceType eChartSourceType)
Definition:
ChartTools.cxx:58
sc::tools::ChartIterator::m_eChartSourceType
ChartSourceType m_eChartSourceType
Definition:
ChartTools.hxx:36
sc::tools::ChartIterator::m_pIterator
std::unique_ptr< SdrObjListIter > m_pIterator
Definition:
ChartTools.hxx:35
long.hxx
sc::tools
Definition:
ChartTools.cxx:24
sc::tools::ChartSourceType
ChartSourceType
Definition:
ChartTools.hxx:27
sc::tools::ChartSourceType::PIVOT_TABLE
@ PIVOT_TABLE
sc::tools::ChartSourceType::CELL_RANGE
@ CELL_RANGE
sc::tools::getChartByIndex
SdrOle2Obj * getChartByIndex(ScDocShell *pDocShell, SCTAB nTab, ::tools::Long nIndex, ChartSourceType eChartSourceType)
Definition:
ChartTools.cxx:120
sc::tools::getAllPivotChartsConnectedTo
std::vector< SdrOle2Obj * > getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell *pDocShell)
Definition:
ChartTools.cxx:142
sc::tools::findChartsByName
SdrOle2Obj * findChartsByName(ScDocShell *pDocShell, SCTAB nTab, std::u16string_view rName, ChartSourceType eChartSourceType)
Definition:
ChartTools.cxx:98
tools::Long
long Long
svditer.hxx
types.hxx
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:22
Generated on Fri Mar 24 2023 12:11:23 for LibreOffice Module sc (master) by
1.9.3