LCOV - code coverage report
Current view: top level - libreoffice/sc/source/filter/xml - xmlsorti.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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 SC_XMLSORTI_HXX
      20             : #define SC_XMLSORTI_HXX
      21             : 
      22             : #include <xmloff/xmlictxt.hxx>
      23             : #include <xmloff/xmlimp.hxx>
      24             : #include <com/sun/star/util/SortField.hpp>
      25             : #include <com/sun/star/table/CellAddress.hpp>
      26             : 
      27             : #include "xmldrani.hxx"
      28             : 
      29             : class ScXMLImport;
      30             : 
      31             : class ScXMLSortContext : public SvXMLImportContext
      32             : {
      33             :     ScXMLDatabaseRangeContext* pDatabaseRangeContext;
      34             : 
      35             :     com::sun::star::uno::Sequence <com::sun::star::util::SortField> aSortFields;
      36             :     com::sun::star::table::CellAddress aOutputPosition;
      37             :     rtl::OUString   sCountry;
      38             :     rtl::OUString   sLanguage;
      39             :     rtl::OUString   sAlgorithm;
      40             :     sal_Int16   nUserListIndex;
      41             :     bool        bCopyOutputData;
      42             :     bool        bBindFormatsToContent;
      43             :     bool        bIsCaseSensitive;
      44             :     bool        bEnabledUserList;
      45             : 
      46             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      47           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      48             : 
      49             : public:
      50             : 
      51             :     ScXMLSortContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      52             :                         const ::rtl::OUString& rLName,
      53             :                         const ::com::sun::star::uno::Reference<
      54             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
      55             :                                         ScXMLDatabaseRangeContext* pTempDatabaseRangeContext);
      56             : 
      57             :     virtual ~ScXMLSortContext();
      58             : 
      59             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      60             :                                      const ::rtl::OUString& rLocalName,
      61             :                                      const ::com::sun::star::uno::Reference<
      62             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      63             : 
      64             :     virtual void EndElement();
      65             : 
      66             :     void AddSortField(const rtl::OUString& sFieldNumber, const rtl::OUString& sDataType, const rtl::OUString& sOrder);
      67             : };
      68             : 
      69             : class ScXMLSortByContext : public SvXMLImportContext
      70             : {
      71             :     ScXMLSortContext* pSortContext;
      72             : 
      73             :     rtl::OUString   sFieldNumber;
      74             :     rtl::OUString   sDataType;
      75             :     rtl::OUString   sOrder;
      76             : 
      77             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      78           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      79             : 
      80             : public:
      81             : 
      82             :     ScXMLSortByContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      83             :                         const ::rtl::OUString& rLName,
      84             :                         const ::com::sun::star::uno::Reference<
      85             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
      86             :                                         ScXMLSortContext* pTempSortContext);
      87             : 
      88             :     virtual ~ScXMLSortByContext();
      89             : 
      90             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      91             :                                      const ::rtl::OUString& rLocalName,
      92             :                                      const ::com::sun::star::uno::Reference<
      93             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      94             : 
      95             :     virtual void EndElement();
      96             : };
      97             : 
      98             : #endif
      99             : 
     100             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10