LCOV - code coverage report
Current view: top level - libreoffice/sc/source/filter/xml - xmlrowi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2012-12-27 Functions: 1 2 50.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_XMLROWI_HXX
      20             : #define SC_XMLROWI_HXX
      21             : 
      22             : #include <xmloff/xmlictxt.hxx>
      23             : #include <xmloff/xmlimp.hxx>
      24             : 
      25             : class ScXMLImport;
      26             : 
      27             : class ScXMLTableRowContext : public SvXMLImportContext
      28             : {
      29             :     rtl::OUString sStyleName;
      30             :     rtl::OUString sVisibility;
      31             :     sal_Int32 nRepeatedRows;
      32             :     bool bHasCell;
      33             : 
      34             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      35       13224 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      36             : 
      37             : public:
      38             : 
      39             :     ScXMLTableRowContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      40             :                        const ::rtl::OUString& rLName,
      41             :                        const ::com::sun::star::uno::Reference<
      42             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      43             : 
      44             :     virtual ~ScXMLTableRowContext();
      45             : 
      46             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      47             :                                      const ::rtl::OUString& rLocalName,
      48             :                                      const ::com::sun::star::uno::Reference<
      49             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      50             : 
      51             :     virtual void EndElement();
      52             : };
      53             : 
      54             : class ScXMLTableRowsContext : public SvXMLImportContext
      55             : {
      56             :     sal_Int32 nHeaderStartRow;
      57             :     sal_Int32 nHeaderEndRow;
      58             :     sal_Int32 nGroupStartRow;
      59             :     sal_Int32 nGroupEndRow;
      60             :     bool bHeader;
      61             :     bool bGroup;
      62             :     bool bGroupDisplay;
      63             : 
      64             :     const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
      65           0 :     ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
      66             : 
      67             : public:
      68             : 
      69             :     ScXMLTableRowsContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
      70             :                        const ::rtl::OUString& rLName,
      71             :                        const ::com::sun::star::uno::Reference<
      72             :                                         ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
      73             :                        const bool bHeader, const bool bGroup);
      74             : 
      75             :     virtual ~ScXMLTableRowsContext();
      76             : 
      77             :     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      78             :                                      const ::rtl::OUString& rLocalName,
      79             :                                      const ::com::sun::star::uno::Reference<
      80             :                                           ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
      81             : 
      82             :     virtual void EndElement();
      83             : };
      84             : 
      85             : #endif
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10