LibreOffice Module sc (master) 1
pivotsource.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#pragma once
11
12#include <dpshttab.hxx>
13#include <dpsdbtab.hxx>
14#include <dpobject.hxx>
15
16#include <unordered_map>
17#include <vector>
18
19namespace sc
20{
26{
27 typedef std::unordered_map<OUString, OUString> SelectedPagesType;
28
30 {
33
34 SelectedPages(ScDPObject* pObj, SelectedPagesType&& rSelected);
35 };
36
38 {
41
43 };
44
45 struct DBSource
46 {
49
51 };
52
54 {
57
59 };
60
61 std::vector<SelectedPages> maSelectedPagesList;
62 std::vector<SheetSource> maSheetSources;
63 std::vector<DBSource> maDBSources;
64 std::vector<ServiceSource> maServiceSources;
65
67
68 void appendSheetSource(ScDPObject* pObj, const ScSheetSourceDesc& rDesc);
69 void appendDBSource(ScDPObject* pObj, const ScImportSourceDesc& rDesc);
70 void appendServiceSource(ScDPObject* pObj, const ScDPServiceDesc& rDesc);
71
72 void appendSelectedPages(ScDPObject* pObj, SelectedPagesType&& rSelected);
73
74 void process();
75};
76}
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class contains authoritative information on the internal reference used as the data source for d...
Definition: dpshttab.hxx:40
CAUTION! The following defines must be in the same namespace as the respective type.
DBSource(ScDPObject *pObj, ScImportSourceDesc aDesc)
Definition: pivotsource.cxx:24
SelectedPages(ScDPObject *pObj, SelectedPagesType &&rSelected)
Definition: pivotsource.cxx:18
ServiceSource(ScDPObject *pObj, ScDPServiceDesc aDesc)
Definition: pivotsource.cxx:27
SheetSource(ScDPObject *pObj, ScSheetSourceDesc aDesc)
Definition: pivotsource.cxx:21
Store pivot table data that need to be post-processed at the end of the import.
Definition: pivotsource.hxx:26
void appendSelectedPages(ScDPObject *pObj, SelectedPagesType &&rSelected)
Definition: pivotsource.cxx:47
void appendSheetSource(ScDPObject *pObj, const ScSheetSourceDesc &rDesc)
Definition: pivotsource.cxx:32
std::vector< ServiceSource > maServiceSources
Definition: pivotsource.hxx:64
std::vector< SelectedPages > maSelectedPagesList
Definition: pivotsource.hxx:61
void appendDBSource(ScDPObject *pObj, const ScImportSourceDesc &rDesc)
Definition: pivotsource.cxx:37
std::vector< DBSource > maDBSources
Definition: pivotsource.hxx:63
std::unordered_map< OUString, OUString > SelectedPagesType
Definition: pivotsource.hxx:27
std::vector< SheetSource > maSheetSources
Definition: pivotsource.hxx:62
void appendServiceSource(ScDPObject *pObj, const ScDPServiceDesc &rDesc)
Definition: pivotsource.cxx:42