fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / filter / xml / pivotsource.hxx
blob83136164d120a4df67a565d74e4dd0aa4c156c1f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_PIVOTSOURCE_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_PIVOTSOURCE_HXX
13 #include <dpshttab.hxx>
14 #include <dpsdbtab.hxx>
15 #include <dpobject.hxx>
17 #include <unordered_map>
18 #include <vector>
20 namespace sc {
22 /**
23 * Store pivot table data that need to be post-processeed at the end of the
24 * import.
26 struct PivotTableSources
28 typedef std::unordered_map<OUString, OUString, OUStringHash> SelectedPagesType;
29 typedef std::unordered_map<ScDPObject*, SelectedPagesType> SelectedPagesMapType;
31 struct SelectedPages
33 ScDPObject* mpDP;
34 SelectedPagesType maSelectedPages;
36 SelectedPages( ScDPObject* pObj, const SelectedPagesType& rSelected );
39 struct SheetSource
41 ScDPObject* mpDP;
42 ScSheetSourceDesc maDesc;
44 SheetSource( ScDPObject* pObj, const ScSheetSourceDesc& rDesc );
47 struct DBSource
49 ScDPObject* mpDP;
50 ScImportSourceDesc maDesc;
52 DBSource( ScDPObject* pObj, const ScImportSourceDesc& rDesc );
55 struct ServiceSource
57 ScDPObject* mpDP;
58 ScDPServiceDesc maDesc;
60 ServiceSource( ScDPObject* pObj, const ScDPServiceDesc& rDesc );
63 typedef std::vector<SelectedPages> SelectedPagesListType;
65 typedef std::vector<SheetSource> SheetSourcesType;
66 typedef std::vector<DBSource> DBSourcesType;
67 typedef std::vector<ServiceSource> ServiceSourcesType;
69 SelectedPagesListType maSelectedPagesList;
71 SheetSourcesType maSheetSources;
72 DBSourcesType maDBSources;
73 ServiceSourcesType maServiceSources;
75 PivotTableSources();
77 void appendSheetSource( ScDPObject* pObj, const ScSheetSourceDesc& rDesc );
78 void appendDBSource( ScDPObject* pObj, const ScImportSourceDesc& rDesc );
79 void appendServiceSource( ScDPObject* pObj, const ScDPServiceDesc& rDesc );
81 void appendSelectedPages( ScDPObject* pObj, const SelectedPagesType& rSelected );
83 void process();
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */