LibreOffice Module sc (master)
1
sc
source
filter
xml
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
;
35
class
ScDPDimensionSaveData
;
36
class
ScDPSaveGroupDimension
;
37
class
ScDPSaveNumGroupDimension
;
38
struct
ScDPNumGroupInfo
;
39
struct
ScQueryParam
;
40
struct
ScQueryEntry
;
41
42
class
ScXMLExportDataPilot
43
{
44
ScXMLExport
&
rExport
;
45
ScDocument
*
pDoc
;
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
& rGroupDim);
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
69
public
:
70
explicit
ScXMLExportDataPilot
(
ScXMLExport
&
rExport
);
71
void
WriteDataPilots
();
72
};
73
74
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDPDimensionSaveData
This class has to do with handling exclusively grouped dimensions? TODO: Find out what this class doe...
Definition:
dpdimsave.hxx:164
ScDPSaveData
Definition:
dpsave.hxx:234
ScDPSaveDimension
Definition:
dpsave.hxx:94
ScDPSaveGroupDimension
Represents a new group dimension whose dimension ID is higher than the highest source dimension ID.
Definition:
dpdimsave.hxx:91
ScDPSaveNumGroupDimension
Represents a group dimension that introduces a new hierarchy for an existing dimension.
Definition:
dpdimsave.hxx:136
ScDocument
Definition:
document.hxx:323
ScXMLExportDataPilot
Definition:
XMLExportDataPilot.hxx:43
ScXMLExportDataPilot::WriteDatePart
void WriteDatePart(sal_Int32 nPart)
Definition:
XMLExportDataPilot.cxx:514
ScXMLExportDataPilot::ScXMLExportDataPilot
ScXMLExportDataPilot(ScXMLExport &rExport)
Definition:
XMLExportDataPilot.cxx:59
ScXMLExportDataPilot::getDPOperatorXML
static OUString getDPOperatorXML(const ScQueryOp aFilterOperator, const utl::SearchParam::SearchType eSearchType)
Definition:
XMLExportDataPilot.cxx:65
ScXMLExportDataPilot::pDoc
ScDocument * pDoc
Definition:
XMLExportDataPilot.hxx:45
ScXMLExportDataPilot::WriteDPCondition
void WriteDPCondition(const ScQueryEntry &aQueryEntry, bool bIsCaseSensitive, utl::SearchParam::SearchType eSearchType)
Definition:
XMLExportDataPilot.cxx:106
ScXMLExportDataPilot::WriteFieldReference
void WriteFieldReference(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:266
ScXMLExportDataPilot::WriteGrandTotal
void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const std::optional< OUString > &pGrandTotal)
Definition:
XMLExportDataPilot.cxx:723
ScXMLExportDataPilot::WriteNumGroupInfo
void WriteNumGroupInfo(const ScDPNumGroupInfo &pGroupInfo)
Definition:
XMLExportDataPilot.cxx:556
ScXMLExportDataPilot::WriteLayoutInfo
void WriteLayoutInfo(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:398
ScXMLExportDataPilot::WriteSortInfo
void WriteSortInfo(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:333
ScXMLExportDataPilot::WriteMembers
void WriteMembers(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:459
ScXMLExportDataPilot::WriteLevels
void WriteLevels(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:489
ScXMLExportDataPilot::WriteAutoShowInfo
void WriteAutoShowInfo(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:367
ScXMLExportDataPilot::WriteNumGroupDim
void WriteNumGroupDim(const ScDPSaveNumGroupDimension &rNumGroupDim)
Definition:
XMLExportDataPilot.cxx:616
ScXMLExportDataPilot::WriteDPFilter
void WriteDPFilter(const ScQueryParam &aQueryParam)
Definition:
XMLExportDataPilot.cxx:140
ScXMLExportDataPilot::WriteDimension
void WriteDimension(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
Definition:
XMLExportDataPilot.cxx:672
ScXMLExportDataPilot::WriteSubTotals
void WriteSubTotals(const ScDPSaveDimension *pDim)
Definition:
XMLExportDataPilot.cxx:435
ScXMLExportDataPilot::WriteGroupDimAttributes
void WriteGroupDimAttributes(const ScDPSaveGroupDimension &rGroupDim)
Definition:
XMLExportDataPilot.cxx:605
ScXMLExportDataPilot::WriteGroupDimElements
void WriteGroupDimElements(const ScDPSaveDimension *pDim, const ScDPDimensionSaveData *pDimData)
Definition:
XMLExportDataPilot.cxx:629
ScXMLExportDataPilot::rExport
ScXMLExport & rExport
Definition:
XMLExportDataPilot.hxx:44
ScXMLExportDataPilot::WriteDimensions
void WriteDimensions(const ScDPSaveData *pDPSave)
Definition:
XMLExportDataPilot.cxx:713
ScXMLExportDataPilot::WriteDataPilots
void WriteDataPilots()
Definition:
XMLExportDataPilot.cxx:733
ScXMLExport
Definition:
xmlexprt.hxx:74
utl::SearchParam::SearchType
SearchType
config.h
ScQueryOp
ScQueryOp
Definition:
global.hxx:834
xmloff::token::XMLTokenEnum
XMLTokenEnum
ScDPNumGroupInfo
Definition:
dpnumgroupinfo.hxx:16
ScQueryEntry
Each instance of this struct represents a single filtering criteria.
Definition:
queryentry.hxx:34
ScQueryParam
Definition:
queryparam.hxx:134
textsearch.hxx
xmltoken.hxx
Generated on Sun Jul 30 2023 04:29:01 for LibreOffice Module sc (master) by
1.9.3