LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/xmloff - unoatrcn.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-08-25 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 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                 :            : #include "sal/config.h"
      30                 :            : #include "xmloff/dllapi.h"
      31                 :            : #include "sal/types.h"
      32                 :            : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      33                 :            : #include <com/sun/star/container/XNameContainer.hpp>
      34                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      35                 :            : #include <com/sun/star/lang/XUnoTunnel.hpp>
      36                 :            : 
      37                 :            : #include <cppuhelper/implbase3.hxx>
      38                 :            : 
      39                 :            : extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >  SvUnoAttributeContainer_CreateInstance();
      40                 :            : 
      41                 :            : class SvXMLAttrContainerData;
      42                 :            : 
      43                 :            : class XMLOFF_DLLPUBLIC SvUnoAttributeContainer:
      44                 :            :     public ::cppu::WeakAggImplHelper3<
      45                 :            :         ::com::sun::star::lang::XServiceInfo,
      46                 :            :         ::com::sun::star::lang::XUnoTunnel,
      47                 :            :         ::com::sun::star::container::XNameContainer >
      48                 :            : {
      49                 :            : private:
      50                 :            :     SvXMLAttrContainerData* mpContainer;
      51                 :            : 
      52                 :            :     SAL_DLLPRIVATE sal_uInt16 getIndexByName(const ::rtl::OUString& aName )
      53                 :            :         const;
      54                 :            : 
      55                 :            : public:
      56                 :            :     SvUnoAttributeContainer( SvXMLAttrContainerData* pContainer = NULL );
      57                 :            :     virtual ~SvUnoAttributeContainer();
      58                 :            : 
      59                 :         20 :     SvXMLAttrContainerData* GetContainerImpl() const { return mpContainer; }
      60                 :            : 
      61                 :            :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
      62                 :            :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
      63                 :            : 
      64                 :            :     // ::com::sun::star::container::XElementAccess
      65                 :            :     virtual ::com::sun::star::uno::Type  SAL_CALL getElementType(void) throw( ::com::sun::star::uno::RuntimeException );
      66                 :            :     virtual sal_Bool SAL_CALL hasElements(void) throw( ::com::sun::star::uno::RuntimeException );
      67                 :            : 
      68                 :            :     // ::com::sun::star::container::XNameAccess
      69                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString& aName) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
      70                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
      71                 :            :     virtual sal_Bool SAL_CALL hasByName(const ::rtl::OUString& aName) throw( ::com::sun::star::uno::RuntimeException );
      72                 :            : 
      73                 :            :     // ::com::sun::star::container::XNameReplace
      74                 :            :     virtual void SAL_CALL replaceByName(const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
      75                 :            : 
      76                 :            :     // ::com::sun::star::container::XNameContainer
      77                 :            :     virtual void SAL_CALL insertByName(const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
      78                 :            :     virtual void SAL_CALL removeByName(const ::rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
      79                 :            : 
      80                 :            :     // ::com::sun::star::lang::XServiceInfo
      81                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
      82                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
      83                 :            :     virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
      84                 :            : 
      85                 :            :     friend  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvUnoAttributeContainer_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr ) throw( ::com::sun::star::uno::Exception );
      86                 :            : };
      87                 :            : 
      88                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10