LCOV - code coverage report
Current view: top level - include/editeng - xmlcnitm.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 1 1 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             :  * 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             : #ifndef INCLUDED_EDITENG_XMLCNITM_HXX
      21             : #define INCLUDED_EDITENG_XMLCNITM_HXX
      22             : 
      23             : #include <svl/poolitem.hxx>
      24             : #include <editeng/editengdllapi.h>
      25             : 
      26             : class SvXMLNamespaceMap;
      27             : 
      28             : 
      29             : 
      30             : class SvXMLAttrContainerData;
      31             : 
      32             : class EDITENG_DLLPUBLIC SvXMLAttrContainerItem: public SfxPoolItem
      33             : {
      34             :     SvXMLAttrContainerData  *pImpl;
      35             : 
      36             : public:
      37             :     TYPEINFO_OVERRIDE();
      38             : 
      39             :     SvXMLAttrContainerItem( sal_uInt16 nWhich = 0 );
      40             :     SvXMLAttrContainerItem( const SvXMLAttrContainerItem& );
      41             :     virtual ~SvXMLAttrContainerItem();
      42             : 
      43             :     virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      44             :     using SfxPoolItem::Compare;
      45             :     virtual int Compare( const SfxPoolItem &rWith ) const SAL_OVERRIDE;
      46             : 
      47             :     virtual bool GetPresentation(
      48             :                                 SfxItemPresentation ePresentation,
      49             :                                 SfxMapUnit eCoreMetric,
      50             :                                 SfxMapUnit ePresentationMetric,
      51             :                                 OUString &rText,
      52             :                                 const IntlWrapper *pIntlWrapper = 0 ) const SAL_OVERRIDE;
      53             : 
      54             :     virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const SAL_OVERRIDE;
      55             : 
      56             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
      57             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
      58             : 
      59        5311 :     virtual SfxPoolItem *Clone( SfxItemPool * = 0) const SAL_OVERRIDE
      60        5311 :     { return new SvXMLAttrContainerItem( *this ); }
      61             : 
      62             :     bool AddAttr( const OUString& rLName,
      63             :                           const OUString& rValue );
      64             :     bool AddAttr( const OUString& rPrefix,
      65             :                           const OUString& rNamespace,
      66             :                           const OUString& rLName,
      67             :                           const OUString& rValue );
      68             : 
      69             :     sal_uInt16 GetAttrCount() const;
      70             :     OUString GetAttrNamespace( sal_uInt16 i ) const;
      71             :     OUString GetAttrPrefix( sal_uInt16 i ) const;
      72             :     const OUString& GetAttrLName( sal_uInt16 i ) const;
      73             :     const OUString& GetAttrValue( sal_uInt16 i ) const;
      74             : 
      75             :     sal_uInt16 GetFirstNamespaceIndex() const;
      76             :     sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
      77             :     const OUString& GetNamespace( sal_uInt16 i ) const;
      78             :     const OUString& GetPrefix( sal_uInt16 i ) const;
      79             : };
      80             : 
      81             : #endif // INCLUDED_EDITENG_XMLCNITM_HXX
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10