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 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_PIVOTSOURCE_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_PIVOTSOURCE_HXX
12 
13 #include <dpshttab.hxx>
14 #include <dpsdbtab.hxx>
15 #include <dpobject.hxx>
16 
17 #include <unordered_map>
18 #include <vector>
19 
20 namespace sc {
21 
27 {
28  typedef std::unordered_map<OUString, OUString> SelectedPagesType;
29 
31  {
33  SelectedPagesType maSelectedPages;
34 
35  SelectedPages( ScDPObject* pObj, const SelectedPagesType& rSelected );
36  };
37 
38  struct SheetSource
39  {
42 
43  SheetSource( ScDPObject* pObj, const ScSheetSourceDesc& rDesc );
44  };
45 
46  struct DBSource
47  {
50 
51  DBSource( ScDPObject* pObj, const ScImportSourceDesc& rDesc );
52  };
53 
55  {
58 
59  ServiceSource( ScDPObject* pObj, const ScDPServiceDesc& rDesc );
60  };
61 
62  std::vector<SelectedPages> maSelectedPagesList;
63  std::vector<SheetSource> maSheetSources;
64  std::vector<DBSource> maDBSources;
65  std::vector<ServiceSource> maServiceSources;
66 
68 
69  void appendSheetSource( ScDPObject* pObj, const ScSheetSourceDesc& rDesc );
70  void appendDBSource( ScDPObject* pObj, const ScImportSourceDesc& rDesc );
71  void appendServiceSource( ScDPObject* pObj, const ScDPServiceDesc& rDesc );
72 
73  void appendSelectedPages( ScDPObject* pObj, const SelectedPagesType& rSelected );
74 
75  void process();
76 };
77 
78 }
79 
80 #endif
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< DBSource > maDBSources
Definition: pivotsource.hxx:64
std::vector< ServiceSource > maServiceSources
Definition: pivotsource.hxx:65
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:26
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:63
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:62
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:28
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:39