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 #pragma once
21 
22 #include <sal/config.h>
23 
24 #include <optional>
25 
26 #include <rtl/ustring.hxx>
27 #include <global.hxx>
28 #include <xmloff/xmltoken.hxx>
29 #include <unotools/textsearch.hxx>
30 
31 class ScXMLExport;
32 class ScDocument;
33 class ScDPSaveDimension;
34 class ScDPSaveData;
38 struct ScDPNumGroupInfo;
39 struct ScQueryParam;
40 struct ScQueryEntry;
41 
43 {
46 
47  static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType);
48  void WriteDPCondition(const ScQueryEntry& aQueryEntry, bool bIsCaseSensitive,
49  utl::SearchParam::SearchType eSearchType);
50  void WriteDPFilter(const ScQueryParam& aQueryParam);
51 
52  void WriteFieldReference(const ScDPSaveDimension* pDim);
53  void WriteSortInfo(const ScDPSaveDimension* pDim);
54  void WriteAutoShowInfo(const ScDPSaveDimension* pDim);
55  void WriteLayoutInfo(const ScDPSaveDimension* pDim);
56  void WriteSubTotals(const ScDPSaveDimension* pDim);
57  void WriteMembers(const ScDPSaveDimension* pDim);
58  void WriteLevels(const ScDPSaveDimension* pDim);
59  void WriteDatePart(sal_Int32 nPart);
60  void WriteNumGroupInfo(const ScDPNumGroupInfo& pGroupInfo);
61  void WriteGroupDimAttributes(const ScDPSaveGroupDimension* pGroupDim);
62  void WriteGroupDimElements(const ScDPSaveDimension* pDim, const ScDPDimensionSaveData* pDimData);
63  void WriteNumGroupDim(const ScDPSaveNumGroupDimension* pNumGroupDim);
64  void WriteDimension(const ScDPSaveDimension* pDim, const ScDPDimensionSaveData* pDimData);
65  void WriteDimensions(const ScDPSaveData* pDPSave);
66 
67  void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional<OUString> & pGrandTotal);
68 
69 public:
70  explicit ScXMLExportDataPilot(ScXMLExport& rExport);
72  void WriteDataPilots();
73 };
74 
75 /* 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:163
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:135
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:90
ScXMLExportDataPilot(ScXMLExport &rExport)
ScQueryOp
Definition: global.hxx:818
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)