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 
26 namespace com::sun::star::util { struct SortField; }
27 namespace sax_fastparser { class FastAttributeList; }
28 
29 class 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 
46 public:
47 
48  ScXMLSortContext( ScXMLImport& rImport,
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(const OUString& sFieldNumber, const OUString& sDataType, std::u16string_view sOrder);
60 };
61 
63 {
65 
66  OUString sFieldNumber;
67  OUString sDataType;
68  OUString sOrder;
69 
70 public:
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: */
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
Definition: xmlsorti.cxx:128
sal_Int16 nUserListIndex
Definition: xmlsorti.hxx:40
css::uno::Sequence< css::util::SortField > aSortFields
Definition: xmlsorti.hxx:36
bool bBindFormatsToContent
Definition: xmlsorti.hxx:42
bool bCopyOutputData
Definition: xmlsorti.hxx:41
css::table::CellAddress aOutputPosition
Definition: xmlsorti.hxx:37
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:109
ScXMLSortContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLDatabaseRangeContext *pTempDatabaseRangeContext)
Definition: xmlsorti.cxx:35
OUString sAlgorithm
Definition: xmlsorti.hxx:39
bool bEnabledUserList
Definition: xmlsorti.hxx:44
ScXMLDatabaseRangeContext * pDatabaseRangeContext
Definition: xmlsorti.hxx:34
ScXMLSortByContext(ScXMLImport &rImport, sal_Int32 nElement, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, ScXMLSortContext *pTempSortContext)
Definition: xmlsorti.cxx:198
OUString sDataType
Definition: xmlsorti.hxx:67
This class exists only to provide GetScImport() to its derived classes.
LanguageTagODF maLanguageTagODF
Definition: xmlsorti.hxx:38
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
Definition: xmlsorti.cxx:237
virtual ~ScXMLSortByContext() override
Definition: xmlsorti.cxx:233
ScXMLSortContext * pSortContext
Definition: xmlsorti.hxx:64
OUString sFieldNumber
Definition: xmlsorti.hxx:66
bool bIsCaseSensitive
Definition: xmlsorti.hxx:43
virtual ~ScXMLSortContext() override
Definition: xmlsorti.cxx:105
void AddSortField(const OUString &sFieldNumber, const OUString &sDataType, std::u16string_view sOrder)
Definition: xmlsorti.cxx:164