LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/editeng - xmlcnitm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-08-25 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.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                 :            : 
      29                 :            : #ifndef _SVX_XMLCNITM_HXX
      30                 :            : #define _SVX_XMLCNITM_HXX
      31                 :            : 
      32                 :            : #include <svl/poolitem.hxx>
      33                 :            : #include "editeng/editengdllapi.h"
      34                 :            : 
      35                 :            : class SvXMLNamespaceMap;
      36                 :            : namespace rtl { class OUString; }
      37                 :            : 
      38                 :            : //============================================================================
      39                 :            : 
      40                 :            : class SvXMLAttrContainerData;
      41                 :            : 
      42                 :            : class EDITENG_DLLPUBLIC SvXMLAttrContainerItem: public SfxPoolItem
      43                 :            : {
      44                 :            :     SvXMLAttrContainerData  *pImpl;
      45                 :            : 
      46                 :            : public:
      47                 :            :     TYPEINFO();
      48                 :            : 
      49                 :            :     SvXMLAttrContainerItem( sal_uInt16 nWhich = 0 );
      50                 :            :     SvXMLAttrContainerItem( const SvXMLAttrContainerItem& );
      51                 :            :     virtual ~SvXMLAttrContainerItem();
      52                 :            : 
      53                 :            :     virtual int operator==( const SfxPoolItem& ) const;
      54                 :            :     using SfxPoolItem::Compare;
      55                 :            :     virtual int Compare( const SfxPoolItem &rWith ) const;
      56                 :            : 
      57                 :            :     virtual SfxItemPresentation GetPresentation(
      58                 :            :                                 SfxItemPresentation ePresentation,
      59                 :            :                                 SfxMapUnit eCoreMetric,
      60                 :            :                                 SfxMapUnit ePresentationMetric,
      61                 :            :                                 XubString &rText,
      62                 :            :                                 const IntlWrapper *pIntlWrapper = 0 ) const;
      63                 :            : 
      64                 :            :     virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
      65                 :            : 
      66                 :            :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      67                 :            :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      68                 :            : 
      69                 :       3613 :     virtual SfxPoolItem *Clone( SfxItemPool * = 0) const
      70         [ +  - ]:       3613 :     { return new SvXMLAttrContainerItem( *this ); }
      71                 :            : 
      72                 :            :     sal_Bool AddAttr( const ::rtl::OUString& rLName,
      73                 :            :                           const ::rtl::OUString& rValue );
      74                 :            :     sal_Bool AddAttr( const ::rtl::OUString& rPrefix,
      75                 :            :                           const ::rtl::OUString& rNamespace,
      76                 :            :                           const ::rtl::OUString& rLName,
      77                 :            :                           const ::rtl::OUString& rValue );
      78                 :            : 
      79                 :            :     sal_uInt16 GetAttrCount() const;
      80                 :            :     ::rtl::OUString GetAttrNamespace( sal_uInt16 i ) const;
      81                 :            :     ::rtl::OUString GetAttrPrefix( sal_uInt16 i ) const;
      82                 :            :     const ::rtl::OUString& GetAttrLName( sal_uInt16 i ) const;
      83                 :            :     const ::rtl::OUString& GetAttrValue( sal_uInt16 i ) const;
      84                 :            : 
      85                 :            :     sal_uInt16 GetFirstNamespaceIndex() const;
      86                 :            :     sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
      87                 :            :     const ::rtl::OUString& GetNamespace( sal_uInt16 i ) const;
      88                 :            :     const ::rtl::OUString& GetPrefix( sal_uInt16 i ) const;
      89                 :            : };
      90                 :            : 
      91                 :            : #endif //  _SVX_XMLCNITM_HXX
      92                 :            : 
      93                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10