LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/editeng - xmlcnitm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2013-07-09 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 _SVX_XMLCNITM_HXX
      21             : #define _SVX_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();
      38             : 
      39             :     SvXMLAttrContainerItem( sal_uInt16 nWhich = 0 );
      40             :     SvXMLAttrContainerItem( const SvXMLAttrContainerItem& );
      41             :     virtual ~SvXMLAttrContainerItem();
      42             : 
      43             :     virtual int operator==( const SfxPoolItem& ) const;
      44             :     using SfxPoolItem::Compare;
      45             :     virtual int Compare( const SfxPoolItem &rWith ) const;
      46             : 
      47             :     virtual SfxItemPresentation GetPresentation(
      48             :                                 SfxItemPresentation ePresentation,
      49             :                                 SfxMapUnit eCoreMetric,
      50             :                                 SfxMapUnit ePresentationMetric,
      51             :                                 OUString &rText,
      52             :                                 const IntlWrapper *pIntlWrapper = 0 ) const;
      53             : 
      54             :     virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
      55             : 
      56             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      57             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      58             : 
      59        2040 :     virtual SfxPoolItem *Clone( SfxItemPool * = 0) const
      60        2040 :     { return new SvXMLAttrContainerItem( *this ); }
      61             : 
      62             :     sal_Bool AddAttr( const OUString& rLName,
      63             :                           const OUString& rValue );
      64             :     sal_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 //  _SVX_XMLCNITM_HXX
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10