LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/xmloff/source/core - xmlcnimp.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 26 42 61.9 %
Date: 2013-07-09 Functions: 12 20 60.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             : 
      20             : #include "SvXMLAttrCollection.hxx"
      21             : #include <xmloff/xmlcnimp.hxx>
      22             : #include <rtl/ustring.hxx>
      23             : 
      24        2242 : SvXMLAttrContainerData::SvXMLAttrContainerData() : pimpl( new SvXMLAttrCollection() )
      25             : {
      26        2242 : }
      27             : 
      28        2337 : SvXMLAttrContainerData::SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy) :
      29        2337 :         pimpl( new SvXMLAttrCollection( *(rCopy.pimpl) ) )
      30             : {
      31        2337 : }
      32             : 
      33             : // Need destructor defined (despite it being empty) to avoid "checked_delete"
      34             : // compiler errors.
      35        4381 : SvXMLAttrContainerData::~SvXMLAttrContainerData()
      36             : {
      37        4381 : }
      38             : 
      39        3603 : int SvXMLAttrContainerData::operator ==( const SvXMLAttrContainerData& rCmp ) const
      40             : {
      41        3603 :     return ( *(rCmp.pimpl) == *(pimpl) );
      42             : }
      43             : 
      44           5 : sal_Bool SvXMLAttrContainerData::AddAttr( const OUString& rLName,
      45             :                                           const OUString& rValue )
      46             : {
      47           5 :     return pimpl->AddAttr(rLName, rValue);
      48             : }
      49             : 
      50           8 : sal_Bool SvXMLAttrContainerData::AddAttr( const OUString& rPrefix,
      51             :                                           const OUString& rNamespace,
      52             :                                           const OUString& rLName,
      53             :                                           const OUString& rValue )
      54             : {
      55           8 :     return pimpl->AddAttr(rPrefix, rNamespace, rLName, rValue);
      56             : }
      57             : 
      58           0 : sal_Bool SvXMLAttrContainerData::AddAttr( const OUString& rPrefix,
      59             :                                           const OUString& rLName,
      60             :                                           const OUString& rValue )
      61             : {
      62           0 :     return pimpl->AddAttr(rPrefix, rLName, rValue);
      63             : }
      64             : 
      65           0 : sal_Bool SvXMLAttrContainerData::SetAt( size_t i,
      66             :                                         const OUString& rLName,
      67             :                                         const OUString& rValue )
      68             : {
      69           0 :     return pimpl->SetAt(i, rLName, rValue);
      70             : }
      71             : 
      72           0 : sal_Bool SvXMLAttrContainerData::SetAt( size_t i,
      73             :                                         const OUString& rPrefix,
      74             :                                         const OUString& rNamespace,
      75             :                                         const OUString& rLName,
      76             :                                         const OUString& rValue )
      77             : {
      78           0 :     return pimpl->SetAt(i, rPrefix, rNamespace, rLName, rValue);
      79             : }
      80             : 
      81           0 : sal_Bool SvXMLAttrContainerData::SetAt( size_t i,
      82             :                                         const OUString& rPrefix,
      83             :                                         const OUString& rLName,
      84             :                                         const OUString& rValue )
      85             : {
      86           0 :     return pimpl->SetAt(i, rPrefix, rLName, rValue);
      87             : }
      88             : 
      89           4 : void SvXMLAttrContainerData::Remove( size_t i )
      90             : {
      91           4 :     pimpl->Remove(i);
      92           4 : }
      93             : 
      94         126 : size_t SvXMLAttrContainerData::GetAttrCount() const
      95             : {
      96         126 :     return pimpl->GetAttrCount();
      97             : }
      98             : 
      99          68 : const OUString& SvXMLAttrContainerData::GetAttrLName(size_t i) const
     100             : {
     101          68 :     return pimpl->GetAttrLName(i);
     102             : }
     103             : 
     104          22 : const OUString& SvXMLAttrContainerData::GetAttrValue(size_t i) const
     105             : {
     106          22 :     return pimpl->GetAttrValue(i);
     107             : }
     108             : 
     109          22 : const OUString SvXMLAttrContainerData::GetAttrNamespace( size_t i ) const
     110             : {
     111          22 :     return pimpl->GetAttrNamespace(i);
     112             : }
     113             : 
     114          60 : const OUString SvXMLAttrContainerData::GetAttrPrefix( size_t i ) const
     115             : {
     116          60 :     return pimpl->GetAttrPrefix(i);
     117             : }
     118             : 
     119           0 : const OUString& SvXMLAttrContainerData::GetNamespace( sal_uInt16 i ) const
     120             : {
     121           0 :     return pimpl->GetNamespace(i);
     122             : }
     123             : 
     124           0 : const OUString& SvXMLAttrContainerData::GetPrefix( sal_uInt16 i ) const
     125             : {
     126           0 :     return pimpl->GetPrefix(i);
     127             : }
     128             : 
     129           0 : sal_uInt16 SvXMLAttrContainerData::GetFirstNamespaceIndex() const
     130             : {
     131           0 :     return pimpl->GetFirstNamespaceIndex();
     132             : }
     133             : 
     134           0 : sal_uInt16 SvXMLAttrContainerData::GetNextNamespaceIndex( sal_uInt16 nIdx ) const
     135             : {
     136           0 :     return pimpl->GetNextNamespaceIndex( nIdx );
     137             : }
     138             : 
     139             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10