LCOV - code coverage report
Current view: top level - libreoffice/extensions/source/dbpilots - unoautopilot.inl (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 34 0.0 %
Date: 2012-12-27 Functions: 0 36 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * This file is part of the LibreOffice project.
       3             :  *
       4             :  * This Source Code Form is subject to the terms of the Mozilla Public
       5             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       6             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       7             :  *
       8             :  * This file incorporates work covered by the following license notice:
       9             :  *
      10             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      11             :  *   contributor license agreements. See the NOTICE file distributed
      12             :  *   with this work for additional information regarding copyright
      13             :  *   ownership. The ASF licenses this file to you under the Apache
      14             :  *   License, Version 2.0 (the "License"); you may not use this file
      15             :  *   except in compliance with the License. You may obtain a copy of
      16             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      17             :  */
      18             : 
      19             : // no include protection
      20             : // this file is included from unoautopilot.hxx directly
      21             : 
      22             : //=====================================================================
      23             : //= OUnoAutoPilot
      24             : //=====================================================================
      25             : template <class TYPE, class SERVICEINFO>
      26           0 : OUnoAutoPilot<TYPE, SERVICEINFO>::OUnoAutoPilot(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB)
      27           0 :     :OUnoAutoPilot_Base(_rxORB)
      28             : {
      29           0 : }
      30             : 
      31             : //---------------------------------------------------------------------
      32             : template <class TYPE, class SERVICEINFO>
      33           0 : ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException)
      34             : {
      35           0 :     static ::cppu::OImplementationId aId;
      36           0 :     return aId.getImplementationId();
      37             : }
      38             : 
      39             : //---------------------------------------------------------------------
      40             : template <class TYPE, class SERVICEINFO>
      41           0 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory)
      42             : {
      43           0 :     return *(new OUnoAutoPilot<TYPE, SERVICEINFO>(_rxFactory));
      44             : }
      45             : 
      46             : //---------------------------------------------------------------------
      47             : template <class TYPE, class SERVICEINFO>
      48           0 : ::rtl::OUString SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName() throw(::com::sun::star::uno::RuntimeException)
      49             : {
      50           0 :     return getImplementationName_Static();
      51             : }
      52             : 
      53             : //---------------------------------------------------------------------
      54             : template <class TYPE, class SERVICEINFO>
      55           0 : ::rtl::OUString OUnoAutoPilot<TYPE, SERVICEINFO>::getImplementationName_Static() throw(::com::sun::star::uno::RuntimeException)
      56             : {
      57           0 :     return SERVICEINFO().getImplementationName();
      58             : }
      59             : 
      60             : //---------------------------------------------------------------------
      61             : template <class TYPE, class SERVICEINFO>
      62           0 : ::comphelper::StringSequence SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
      63             : {
      64           0 :     return getSupportedServiceNames_Static();
      65             : }
      66             : 
      67             : //---------------------------------------------------------------------
      68             : template <class TYPE, class SERVICEINFO>
      69           0 : ::comphelper::StringSequence OUnoAutoPilot<TYPE, SERVICEINFO>::getSupportedServiceNames_Static() throw(::com::sun::star::uno::RuntimeException)
      70             : {
      71           0 :     return SERVICEINFO().getServiceNames();
      72             : }
      73             : 
      74             : //---------------------------------------------------------------------
      75             : template <class TYPE, class SERVICEINFO>
      76           0 : ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >  SAL_CALL OUnoAutoPilot<TYPE, SERVICEINFO>::getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException)
      77             : {
      78           0 :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >  xInfo( createPropertySetInfo( getInfoHelper() ) );
      79           0 :     return xInfo;
      80             : }
      81             : 
      82             : //---------------------------------------------------------------------
      83             : template <class TYPE, class SERVICEINFO>
      84           0 : ::cppu::IPropertyArrayHelper& OUnoAutoPilot<TYPE, SERVICEINFO>::getInfoHelper()
      85             : {
      86           0 :     return *const_cast<OUnoAutoPilot*>(this)->getArrayHelper();
      87             : }
      88             : 
      89             : //--------------------------------------------------------------------------
      90             : template <class TYPE, class SERVICEINFO>
      91           0 : ::cppu::IPropertyArrayHelper* OUnoAutoPilot<TYPE, SERVICEINFO>::createArrayHelper( ) const
      92             : {
      93           0 :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > aProps;
      94           0 :     describeProperties(aProps);
      95           0 :     return new ::cppu::OPropertyArrayHelper(aProps);
      96             : }
      97             : 
      98             : //--------------------------------------------------------------------------
      99             : template <class TYPE, class SERVICEINFO>
     100           0 : Dialog* OUnoAutoPilot<TYPE, SERVICEINFO>::createDialog(Window* _pParent)
     101             : {
     102           0 :     return new TYPE(_pParent, m_xObjectModel, m_aContext.getUNOContext());
     103             : }
     104             : 
     105             : //--------------------------------------------------------------------------
     106             : template <class TYPE, class SERVICEINFO>
     107           0 : void OUnoAutoPilot<TYPE, SERVICEINFO>::implInitialize(const com::sun::star::uno::Any& _rValue)
     108             : {
     109           0 :     ::com::sun::star::beans::PropertyValue aArgument;
     110           0 :     if (_rValue >>= aArgument)
     111           0 :         if (0 == aArgument.Name.compareToAscii("ObjectModel"))
     112             :         {
     113           0 :             aArgument.Value >>= m_xObjectModel;
     114           0 :             return;
     115             :         }
     116             : 
     117           0 :     OUnoAutoPilot_Base::implInitialize(_rValue);
     118             : }
     119             : 
     120             : 

Generated by: LCOV version 1.10