LCOV - code coverage report
Current view: top level - reportdesign/source/filter/xml - xmlTable.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 8 0.0 %
Date: 2014-11-03 Functions: 0 8 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 INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLTABLE_HXX
      20             : #define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLTABLE_HXX
      21             : 
      22             : #include <xmloff/xmlictxt.hxx>
      23             : #include <com/sun/star/report/XSection.hpp>
      24             : #include <vector>
      25             : 
      26             : namespace rptxml
      27             : {
      28             :     class ORptFilter;
      29             :     class OXMLTable : public SvXMLImportContext
      30             :     {
      31             :     public:
      32           0 :         struct TCell
      33             :         {
      34             :             sal_Int32 nWidth;
      35             :             sal_Int32 nHeight;
      36             :             sal_Int32 nColSpan;
      37             :             sal_Int32 nRowSpan;
      38             :             ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent> > xElements;
      39           0 :             TCell() : nWidth(0),nHeight(0),nColSpan(1),nRowSpan(1){}
      40             :         };
      41             :     private:
      42             :         ::std::vector< ::std::vector<TCell> >                                               m_aGrid;
      43             :         ::std::vector<sal_Int32>                                                            m_aHeight;
      44             :         ::std::vector<sal_Int32>                                                            m_aWidth;
      45             :         ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >              m_xSection;
      46             :         OUString                                                                     m_sStyleName;
      47             :         sal_Int32                                                                           m_nColSpan;
      48             :         sal_Int32                                                                           m_nRowSpan;
      49             :         sal_Int32                                                                           m_nRowIndex;
      50             :         sal_Int32                                                                           m_nColumnIndex;
      51             :         ORptFilter& GetOwnImport();
      52             : 
      53             :         OXMLTable(const OXMLTable&);
      54             :         void operator =(const OXMLTable&);
      55             :     public:
      56             : 
      57             :         OXMLTable( ORptFilter& rImport
      58             :                     ,sal_uInt16 nPrfx
      59             :                     ,const OUString& rLName
      60             :                     ,const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList
      61             :                     ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection
      62             :                     );
      63             :         virtual ~OXMLTable();
      64             : 
      65             :         virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
      66             :                     const OUString& rLocalName,
      67             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
      68             : 
      69             :         virtual void EndElement() SAL_OVERRIDE;
      70             : 
      71           0 :         inline void addHeight(sal_Int32 _nHeight)   { m_aHeight.push_back( _nHeight ); }
      72           0 :         inline void addWidth(sal_Int32 _nWidth)     { m_aWidth.push_back( _nWidth ); }
      73             : 
      74           0 :         inline void setColumnSpanned(sal_Int32 _nColSpan)     { m_nColSpan = _nColSpan; }
      75           0 :         inline void setRowSpanned(   sal_Int32 _nRowSpan)     { m_nRowSpan = _nRowSpan; }
      76             : 
      77             :         void incrementRowIndex();
      78           0 :         inline void incrementColumnIndex()  { ++m_nColumnIndex; }
      79             : 
      80             :         inline sal_Int32 getRowIndex() const { return m_nRowIndex; }
      81             :         inline sal_Int32 getColumnIndex() const { return m_nColumnIndex; }
      82             : 
      83             :         void addCell(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xElement);
      84             : 
      85           0 :         inline ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > getSection() const { return m_xSection; }
      86             :     };
      87             : 
      88             : } // namespace rptxml
      89             : 
      90             : 
      91             : #endif // INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLTABLE_HXX
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10