LibreOffice Module sc (master) 1
xmlsorti.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#pragma once
20
22#include <com/sun/star/table/CellAddress.hpp>
23
24#include "importcontext.hxx"
25
26namespace com::sun::star::util { struct SortField; }
27namespace sax_fastparser { class FastAttributeList; }
28
29class ScXMLImport;
31
33{
35
36 css::uno::Sequence <css::util::SortField> aSortFields;
37 css::table::CellAddress aOutputPosition;
39 OUString sAlgorithm;
40 sal_Int16 nUserListIndex;
45
46public:
47
50 ScXMLDatabaseRangeContext* pTempDatabaseRangeContext);
51
52 virtual ~ScXMLSortContext() override;
53
54 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
55 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
56
57 virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
58
59 void AddSortField(std::u16string_view sFieldNumber, std::u16string_view sDataType, std::u16string_view sOrder);
60};
61
63{
65
66 OUString sFieldNumber;
67 OUString sDataType;
68 OUString sOrder;
69
70public:
71
72 ScXMLSortByContext( ScXMLImport& rImport, sal_Int32 nElement,
74 ScXMLSortContext* pTempSortContext);
75
76 virtual ~ScXMLSortByContext() override;
77
78 virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class exists only to provide GetScImport() to its derived classes.
ScXMLSortByContext(ScXMLImport &rImport, sal_Int32 nElement, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLSortContext *pTempSortContext)
Definition: xmlsorti.cxx:200
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
Definition: xmlsorti.cxx:239
ScXMLSortContext * pSortContext
Definition: xmlsorti.hxx:64
OUString sDataType
Definition: xmlsorti.hxx:67
OUString sFieldNumber
Definition: xmlsorti.hxx:66
virtual ~ScXMLSortByContext() override
Definition: xmlsorti.cxx:235
bool bEnabledUserList
Definition: xmlsorti.hxx:44
bool bCopyOutputData
Definition: xmlsorti.hxx:41
virtual ~ScXMLSortContext() override
Definition: xmlsorti.cxx:106
bool bIsCaseSensitive
Definition: xmlsorti.hxx:43
LanguageTagODF maLanguageTagODF
Definition: xmlsorti.hxx:38
bool bBindFormatsToContent
Definition: xmlsorti.hxx:42
ScXMLDatabaseRangeContext * pDatabaseRangeContext
Definition: xmlsorti.hxx:34
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
Definition: xmlsorti.cxx:129
css::table::CellAddress aOutputPosition
Definition: xmlsorti.hxx:37
sal_Int16 nUserListIndex
Definition: xmlsorti.hxx:40
css::uno::Sequence< css::util::SortField > aSortFields
Definition: xmlsorti.hxx:36
void AddSortField(std::u16string_view sFieldNumber, std::u16string_view sDataType, std::u16string_view sOrder)
Definition: xmlsorti.cxx:166
OUString sAlgorithm
Definition: xmlsorti.hxx:39
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: xmlsorti.cxx:110
ScXMLSortContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLDatabaseRangeContext *pTempDatabaseRangeContext)
Definition: xmlsorti.cxx:36