LCOV - code coverage report
Current view: top level - scripting/source/dlgprov - DialogModelProvider.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.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                 :            :  * 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                 :            : #include "sal/config.h"
      20                 :            : #include "cppuhelper/factory.hxx"
      21                 :            : #include "cppuhelper/implbase4.hxx"
      22                 :            : #include "com/sun/star/lang/XInitialization.hpp"
      23                 :            : #include "com/sun/star/container/XNameContainer.hpp"
      24                 :            : #include "com/sun/star/lang/XServiceInfo.hpp"
      25                 :            : #include "com/sun/star/beans/XPropertySet.hpp"
      26                 :            : 
      27                 :            : /// anonymous implementation namespace
      28                 :            : namespace dlgprov{
      29                 :            : 
      30                 :            : namespace css = ::com::sun::star;
      31                 :            : 
      32                 :          0 : class DialogModelProvider:
      33                 :            :     public ::cppu::WeakImplHelper4<
      34                 :            :         css::lang::XInitialization,
      35                 :            :         css::container::XNameContainer,
      36                 :            :         css::beans::XPropertySet,
      37                 :            :         css::lang::XServiceInfo>
      38                 :            : {
      39                 :            : public:
      40                 :            :     explicit DialogModelProvider(css::uno::Reference< css::uno::XComponentContext > const & context);
      41                 :            : private:
      42                 :            :     // ::com::sun::star::lang::XInitialization:
      43                 :            :     virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception);
      44                 :            : 
      45                 :            :     // ::com::sun::star::container::XElementAccess:
      46                 :            :     virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
      47                 :            :     virtual ::sal_Bool SAL_CALL hasElements() throw (css::uno::RuntimeException);
      48                 :            : 
      49                 :            :     // ::com::sun::star::container::XNameAccess:
      50                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL getByName(const ::rtl::OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException);
      51                 :            :     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw (css::uno::RuntimeException);
      52                 :            :     virtual ::sal_Bool SAL_CALL hasByName(const ::rtl::OUString & aName) throw (css::uno::RuntimeException);
      53                 :            : 
      54                 :            :     // ::com::sun::star::container::XNameReplace:
      55                 :            :     virtual void SAL_CALL replaceByName(const ::rtl::OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException);
      56                 :            : 
      57                 :            :     // ::com::sun::star::container::XNameContainer:
      58                 :            :     virtual void SAL_CALL insertByName(const ::rtl::OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException);
      59                 :            :     virtual void SAL_CALL removeByName(const ::rtl::OUString & Name) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException);
      60                 :            : 
      61                 :            :     // ::com::sun::star::lang::XServiceInfo:
      62                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
      63                 :            :     virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString & ServiceName) throw (css::uno::RuntimeException);
      64                 :            :     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
      65                 :            : 
      66                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
      67                 :            :     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      68                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      69                 :            :     virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      70                 :            :     virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      71                 :            :     virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      72                 :            :     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      73                 :            : 
      74                 :            : private:
      75                 :            :     DialogModelProvider(const DialogModelProvider &); // not defined
      76                 :            :     DialogModelProvider& operator=(const DialogModelProvider &); // not defined
      77                 :            : 
      78                 :            :     // destructor is private and will be called indirectly by the release call    virtual ~DialogModelProvider() {}
      79                 :            : 
      80                 :            :     css::uno::Reference< css::uno::XComponentContext >      m_xContext;
      81                 :            :     css::uno::Reference< css::container::XNameContainer>    m_xDialogModel;
      82                 :            :     css::uno::Reference< css::beans::XPropertySet>          m_xDialogModelProp;
      83                 :            : };
      84                 :            : } // closing anonymous implementation namespace
      85                 :            : 
      86                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10