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 
19 namespace sc
20 {
26 {
27  typedef std::unordered_map<OUString, OUString> SelectedPagesType;
28 
30  {
32  SelectedPagesType maSelectedPages;
33 
34  SelectedPages(ScDPObject* pObj, const SelectedPagesType& rSelected);
35  };
36 
37  struct SheetSource
38  {
41 
42  SheetSource(ScDPObject* pObj, const ScSheetSourceDesc& rDesc);
43  };
44 
45  struct DBSource
46  {
49 
50  DBSource(ScDPObject* pObj, const ScImportSourceDesc& rDesc);
51  };
52 
54  {
57 
58  ServiceSource(ScDPObject* pObj, const ScDPServiceDesc& rDesc);
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, const SelectedPagesType& rSelected);
73 
74  void process();
75 };
76 }
77 
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< DBSource > maDBSources
Definition: pivotsource.hxx:63
std::vector< ServiceSource > maServiceSources
Definition: pivotsource.hxx:64
ServiceSource(ScDPObject *pObj, const ScDPServiceDesc &rDesc)
Definition: pivotsource.cxx:27
Store pivot table data that need to be post-processed at the end of the import.
Definition: pivotsource.hxx:25
void appendSheetSource(ScDPObject *pObj, const ScSheetSourceDesc &rDesc)
Definition: pivotsource.cxx:32
void appendServiceSource(ScDPObject *pObj, const ScDPServiceDesc &rDesc)
Definition: pivotsource.cxx:42
std::vector< SheetSource > maSheetSources
Definition: pivotsource.hxx:62
SelectedPages(ScDPObject *pObj, const SelectedPagesType &rSelected)
Definition: pivotsource.cxx:18
void appendSelectedPages(ScDPObject *pObj, const SelectedPagesType &rSelected)
Definition: pivotsource.cxx:47
std::vector< SelectedPages > maSelectedPagesList
Definition: pivotsource.hxx:61
DBSource(ScDPObject *pObj, const ScImportSourceDesc &rDesc)
Definition: pivotsource.cxx:24
SheetSource(ScDPObject *pObj, const ScSheetSourceDesc &rDesc)
Definition: pivotsource.cxx:21
std::unordered_map< OUString, OUString > SelectedPagesType
Definition: pivotsource.hxx:27
void appendDBSource(ScDPObject *pObj, const ScImportSourceDesc &rDesc)
Definition: pivotsource.cxx:37
This class contains authoritative information on the internal reference used as the data source for d...
Definition: dpshttab.hxx:38