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>
30
31class ScXMLExport;
32class ScDocument;
34class ScDPSaveData;
38struct ScDPNumGroupInfo;
39struct ScQueryParam;
40struct ScQueryEntry;
41
43{
46
47 static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType);
48 void WriteDPCondition(const ScQueryEntry& aQueryEntry, bool bIsCaseSensitive,
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);
62 void WriteGroupDimElements(const ScDPSaveDimension* pDim, const ScDPDimensionSaveData* pDimData);
63 void WriteNumGroupDim(const ScDPSaveNumGroupDimension& rNumGroupDim);
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
69public:
71 void WriteDataPilots();
72};
73
74/* 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
Represents a new group dimension whose dimension ID is higher than the highest source dimension ID.
Definition: dpdimsave.hxx:91
Represents a group dimension that introduces a new hierarchy for an existing dimension.
Definition: dpdimsave.hxx:136
void WriteDatePart(sal_Int32 nPart)
ScXMLExportDataPilot(ScXMLExport &rExport)
static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType)
void WriteDPCondition(const ScQueryEntry &aQueryEntry, bool bIsCaseSensitive, utl::SearchParam::SearchType eSearchType)
void WriteFieldReference(const ScDPSaveDimension *pDim)
void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional< OUString > &pGrandTotal)
void WriteNumGroupInfo(const ScDPNumGroupInfo &pGroupInfo)
void WriteLayoutInfo(const ScDPSaveDimension *pDim)
void WriteSortInfo(const ScDPSaveDimension *pDim)
void WriteMembers(const ScDPSaveDimension *pDim)
void WriteLevels(const ScDPSaveDimension *pDim)
void WriteAutoShowInfo(const ScDPSaveDimension *pDim)
void WriteNumGroupDim(const ScDPSaveNumGroupDimension &rNumGroupDim)
void WriteDPFilter(const ScQueryParam &aQueryParam)
void WriteDimension(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
void WriteSubTotals(const ScDPSaveDimension *pDim)
void WriteGroupDimAttributes(const ScDPSaveGroupDimension &rGroupDim)
void WriteGroupDimElements(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
void WriteDimensions(const ScDPSaveData *pDPSave)
ScQueryOp
Definition: global.hxx:834
Each instance of this struct represents a single filtering criteria.
Definition: queryentry.hxx:34