LCOV - code coverage report
Current view: top level - reportdesign/source/filter/xml - xmlAutoStyle.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 24 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 32 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #include "xmlAutoStyle.hxx"
      29                 :            : #include "xmlHelper.hxx"
      30                 :            : #include "xmlExport.hxx"
      31                 :            : #include <xmloff/families.hxx>
      32                 :            : #include <tools/debug.hxx>
      33                 :            : 
      34                 :            : namespace rptxml
      35                 :            : {
      36                 :            :     using namespace ::com::sun::star::uno;
      37                 :            :     using namespace ::com::sun::star::xml::sax;
      38                 :            : 
      39                 :          0 : void OXMLAutoStylePoolP::exportStyleAttributes(
      40                 :            :             SvXMLAttributeList& rAttrList,
      41                 :            :             sal_Int32 nFamily,
      42                 :            :             const ::std::vector< XMLPropertyState >& rProperties,
      43                 :            :             const SvXMLExportPropertyMapper& rPropExp
      44                 :            :             , const SvXMLUnitConverter& rUnitConverter,
      45                 :            :             const SvXMLNamespaceMap& rNamespaceMap
      46                 :            :             ) const
      47                 :            : {
      48                 :          0 :     SvXMLAutoStylePoolP::exportStyleAttributes( rAttrList, nFamily, rProperties, rPropExp, rUnitConverter, rNamespaceMap );
      49         [ #  # ]:          0 :     if ( nFamily == XML_STYLE_FAMILY_TABLE_CELL )
      50                 :            :     {
      51         [ #  # ]:          0 :         UniReference< XMLPropertySetMapper > aPropMapper = rORptExport.GetCellStylePropertyMapper();
      52                 :          0 :         ::std::vector< XMLPropertyState >::const_iterator i = rProperties.begin();
      53                 :          0 :         ::std::vector< XMLPropertyState >::const_iterator aEnd = rProperties.end();
      54 [ #  # ][ #  # ]:          0 :         for (; i != aEnd ; ++i)
      55                 :            :         {
      56 [ #  # ][ #  # ]:          0 :             sal_Int16 nContextID = aPropMapper->GetEntryContextId(i->mnIndex);
      57         [ #  # ]:          0 :             switch (nContextID)
      58                 :            :             {
      59                 :            :                 case CTF_RPT_NUMBERFORMAT :
      60                 :            :                 {
      61                 :          0 :                     rtl::OUString sAttrValue;
      62         [ #  # ]:          0 :                     if ( i->maValue >>= sAttrValue )
      63                 :            :                     {
      64         [ #  # ]:          0 :                         if ( !sAttrValue.isEmpty() )
      65                 :            :                         {
      66                 :            :                             rORptExport.AddAttribute(
      67 [ #  # ][ #  # ]:          0 :                                 aPropMapper->GetEntryNameSpace(i->mnIndex),
      68 [ #  # ][ #  # ]:          0 :                                 aPropMapper->GetEntryXMLName(i->mnIndex),
      69         [ #  # ]:          0 :                                 sAttrValue );
      70                 :            :                         }
      71                 :            :                     }
      72                 :          0 :                     break;
      73                 :            :                 }
      74                 :            :                 default:
      75                 :          0 :                     break;
      76                 :            :             }
      77         [ #  # ]:          0 :         }
      78                 :            :     }
      79                 :          0 : }
      80                 :            : DBG_NAME( rpt_OXMLAutoStylePoolP )
      81                 :            : // -----------------------------------------------------------------------------
      82                 :          0 : OXMLAutoStylePoolP::OXMLAutoStylePoolP(ORptExport& rTempORptExport):
      83                 :            :     SvXMLAutoStylePoolP(rTempORptExport),
      84                 :          0 :     rORptExport(rTempORptExport)
      85                 :            : {
      86                 :            :     DBG_CTOR( rpt_OXMLAutoStylePoolP,NULL);
      87                 :            : 
      88                 :          0 : }
      89                 :            : // -----------------------------------------------------------------------------
      90                 :          0 : OXMLAutoStylePoolP::~OXMLAutoStylePoolP()
      91                 :            : {
      92                 :            : 
      93                 :            :     DBG_DTOR( rpt_OXMLAutoStylePoolP,NULL);
      94         [ #  # ]:          0 : }
      95                 :            : // -----------------------------------------------------------------------------
      96                 :            : 
      97                 :            : //----------------------------------------------------------------------------
      98                 :            : } // namespace rptxml
      99                 :            : // -----------------------------------------------------------------------------
     100                 :            : 
     101                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10