1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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>
23 * Store pivot table data that need to be post-processeed at the end of the
26 struct PivotTableSources
28 typedef std::unordered_map
<OUString
, OUString
, OUStringHash
> SelectedPagesType
;
29 typedef std::unordered_map
<ScDPObject
*, SelectedPagesType
> SelectedPagesMapType
;
34 SelectedPagesType maSelectedPages
;
36 SelectedPages( ScDPObject
* pObj
, const SelectedPagesType
& rSelected
);
42 ScSheetSourceDesc maDesc
;
44 SheetSource( ScDPObject
* pObj
, const ScSheetSourceDesc
& rDesc
);
50 ScImportSourceDesc maDesc
;
52 DBSource( ScDPObject
* pObj
, const ScImportSourceDesc
& rDesc
);
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
;
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
);
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */