LibreOffice Module sc (master)  1
XMLExportDataPilot.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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_XMLEXPORTDATAPILOT_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_XML_XMLEXPORTDATAPILOT_HXX
22 
23 #include <sal/config.h>
24 
25 #include <optional>
26 
27 #include <rtl/ustring.hxx>
28 #include <global.hxx>
29 #include <xmloff/xmltoken.hxx>
30 #include <unotools/textsearch.hxx>
31 
32 class ScXMLExport;
33 class ScDocument;
34 class ScDPSaveDimension;
35 class ScDPSaveData;
39 struct ScDPNumGroupInfo;
40 struct ScQueryParam;
41 struct ScQueryEntry;
42 
44 {
47 
48  static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType);
49  void WriteDPCondition(const ScQueryEntry& aQueryEntry, bool bIsCaseSensitive,
50  utl::SearchParam::SearchType eSearchType);
51  void WriteDPFilter(const ScQueryParam& aQueryParam);
52 
53  void WriteFieldReference(const ScDPSaveDimension* pDim);
54  void WriteSortInfo(const ScDPSaveDimension* pDim);
55  void WriteAutoShowInfo(const ScDPSaveDimension* pDim);
56  void WriteLayoutInfo(const ScDPSaveDimension* pDim);
57  void WriteSubTotals(const ScDPSaveDimension* pDim);
58  void WriteMembers(const ScDPSaveDimension* pDim);
59  void WriteLevels(const ScDPSaveDimension* pDim);
60  void WriteDatePart(sal_Int32 nPart);
61  void WriteNumGroupInfo(const ScDPNumGroupInfo& pGroupInfo);
62  void WriteGroupDimAttributes(const ScDPSaveGroupDimension* pGroupDim);
63  void WriteGroupDimElements(const ScDPSaveDimension* pDim, const ScDPDimensionSaveData* pDimData);
64  void WriteNumGroupDim(const ScDPSaveNumGroupDimension* pNumGroupDim);
65  void WriteDimension(const ScDPSaveDimension* pDim, const ScDPDimensionSaveData* pDimData);
66  void WriteDimensions(const ScDPSaveData* pDPSave);
67 
68  void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional<OUString> & pGrandTotal);
69 
70 public:
71  explicit ScXMLExportDataPilot(ScXMLExport& rExport);
73  void WriteDataPilots();
74 };
75 
76 #endif
77 
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class has to do with handling exclusively grouped dimensions? TODO: Find out what this class doe...
Definition: dpdimsave.hxx:164
void WriteGroupDimAttributes(const ScDPSaveGroupDimension *pGroupDim)
void WriteLevels(const ScDPSaveDimension *pDim)
void WriteDatePart(sal_Int32 nPart)
void WriteSortInfo(const ScDPSaveDimension *pDim)
void WriteDimensions(const ScDPSaveData *pDPSave)
void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional< OUString > &pGrandTotal)
void WriteMembers(const ScDPSaveDimension *pDim)
void WriteDPFilter(const ScQueryParam &aQueryParam)
void WriteFieldReference(const ScDPSaveDimension *pDim)
void WriteAutoShowInfo(const ScDPSaveDimension *pDim)
Represents a group dimension that introduces a new hierarchy for an existing dimension.
Definition: dpdimsave.hxx:136
void WriteNumGroupInfo(const ScDPNumGroupInfo &pGroupInfo)
void WriteSubTotals(const ScDPSaveDimension *pDim)
void WriteGroupDimElements(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
void WriteDimension(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
Represents a new group dimension whose dimension ID is higher than the highest source dimension ID...
Definition: dpdimsave.hxx:91
ScXMLExportDataPilot(ScXMLExport &rExport)
ScQueryOp
Definition: global.hxx:820
void WriteNumGroupDim(const ScDPSaveNumGroupDimension *pNumGroupDim)
void WriteLayoutInfo(const ScDPSaveDimension *pDim)
static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType)
Each instance of this struct represents a single filtering criteria.
Definition: queryentry.hxx:33
void WriteDPCondition(const ScQueryEntry &aQueryEntry, bool bIsCaseSensitive, utl::SearchParam::SearchType eSearchType)