LibreOffice Module sc (master)  1
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
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 .
18  */
23 #include <sal/config.h>
25 #include <optional>
27 #include <rtl/ustring.hxx>
28 #include <global.hxx>
29 #include <xmloff/xmltoken.hxx>
30 #include <unotools/textsearch.hxx>
32 class ScXMLExport;
33 class ScDocument;
34 class ScDPSaveDimension;
35 class ScDPSaveData;
39 struct ScDPNumGroupInfo;
40 struct ScQueryParam;
41 struct ScQueryEntry;
44 {
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);
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);
68  void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional<OUString> & pGrandTotal);
70 public:
71  explicit ScXMLExportDataPilot(ScXMLExport& rExport);
73  void WriteDataPilots();
74 };
76 #endif
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)
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)