LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/xmloff/source/core - SvXMLAttrCollection.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 Functions: 3 3 100.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             : 
      10             : #ifndef SVXMLATTRCOLLECTION_HXX_
      11             : #define SVXMLATTRCOLLECTION_HXX_
      12             : 
      13             : #include "SvXMLAttr.hxx"
      14             : 
      15             : #include <xmloff/nmspmap.hxx>  //SvXMLNamespaceMap
      16             : #include <rtl/ustring.hxx>     //OUString
      17             : #include <sal/types.h>         //sal_uInt16 and sal_Bool
      18             : #include <vector>
      19             : 
      20        8960 : class SvXMLAttrCollection
      21             : {
      22             : public:
      23             :     SvXMLNamespaceMap      aNamespaceMap;
      24             :     std::vector<SvXMLAttr> aAttrs;
      25             : 
      26             :     bool operator==(const SvXMLAttrCollection &rCmp) const;
      27             :     sal_Bool AddAttr( const OUString& rLName,
      28             :                       const OUString& rValue );
      29             :     sal_Bool AddAttr( const OUString& rPrefix,
      30             :                       const OUString& rNamespace,
      31             :                       const OUString& rLName,
      32             :                       const OUString& rValue );
      33             :     sal_Bool AddAttr( const OUString& rPrefix,
      34             :                       const OUString& rLName,
      35             :                       const OUString& rValue );
      36             : 
      37             :     sal_Bool SetAt( size_t i,
      38             :                     const OUString& rLName,
      39             :                     const OUString& rValue );
      40             :     sal_Bool SetAt( size_t i,
      41             :                     const OUString& rPrefix,
      42             :                     const OUString& rNamespace,
      43             :                     const OUString& rLName,
      44             :                     const OUString& rValue );
      45             :     sal_Bool SetAt( size_t i,
      46             :                     const OUString& rPrefix,
      47             :                     const OUString& rLName,
      48             :                     const OUString& rValue );
      49             : 
      50             :     void Remove( size_t i );
      51             : 
      52             :     size_t GetAttrCount() const;
      53             :     const OUString& GetAttrLName(size_t i) const;
      54             :     const OUString& GetAttrValue(size_t i) const;
      55             :     const OUString GetAttrNamespace( size_t i ) const;
      56             :     const OUString GetAttrPrefix( size_t i ) const;
      57             :     const OUString& GetNamespace( sal_uInt16 i ) const;
      58             :     const OUString& GetPrefix( sal_uInt16 i ) const;
      59             :     sal_uInt16 GetFirstNamespaceIndex() const;
      60             :     sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
      61             : 
      62             : private:
      63             :     sal_uInt16 GetPrefixPos( size_t i ) const;
      64             : };
      65             : 
      66             : #endif /* SVXMLATTRCOLLECTION_HXX_ */
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
      69             : 

Generated by: LCOV version 1.10