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