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 #ifndef INCLUDED_SC_INC_CHARTTOOLS_HXX
12 #define INCLUDED_SC_INC_CHARTTOOLS_HXX
13 
14 #include <memory>
15 #include <vector>
16 
17 #include <svx/svditer.hxx>
18 #include <rtl/ustring.hxx>
19 #include <tools/long.hxx>
20 
21 #include "types.hxx"
22 
23 class ScDocShell;
24 class SdrOle2Obj;
25 
26 namespace sc::tools {
27 
28 enum class ChartSourceType
29 {
30  CELL_RANGE,
32 };
33 
35 {
36 private:
37  std::unique_ptr<SdrObjListIter> m_pIterator;
39 public:
40  ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
41  SdrOle2Obj* next();
42 };
43 
45  std::u16string_view rName,
46  ChartSourceType eChartSourceType);
47 
48 SdrOle2Obj* getChartByIndex(ScDocShell* pDocShell, SCTAB nTab,
49  ::tools::Long nIndex, ChartSourceType eChartSourceType);
50 
51 std::vector<SdrOle2Obj*> getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell* pDocShell);
52 
53 } // end sc::tools
54 
55 #endif
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
long Long
SdrOle2Obj * getChartByIndex(ScDocShell *pDocShell, SCTAB nTab,::tools::Long nIndex, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:120
ChartIterator(ScDocShell *pDocShell, SCTAB nTab, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:58
std::unique_ptr< SdrObjListIter > m_pIterator
Definition: ChartTools.hxx:37
std::vector< SdrOle2Obj * > getAllPivotChartsConnectedTo(std::u16string_view sPivotTableName, ScDocShell *pDocShell)
Definition: ChartTools.cxx:142
ChartSourceType m_eChartSourceType
Definition: ChartTools.hxx:38
SdrOle2Obj * findChartsByName(ScDocShell *pDocShell, SCTAB nTab, std::u16string_view rName, ChartSourceType eChartSourceType)
Definition: ChartTools.cxx:98
sal_Int16 SCTAB
Definition: types.hxx:23