LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/vbahelper/source/msforms - vbasystemaxcontrol.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 25 4.0 %
Date: 2013-07-09 Functions: 2 11 18.2 %
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             : #include "vbasystemaxcontrol.hxx"
      20             : 
      21             : using namespace com::sun::star;
      22             : using namespace ooo::vba;
      23             : 
      24             : //----------------------------------------------------------
      25           0 : VbaSystemAXControl::VbaSystemAXControl(  const uno::Reference< ov::XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, AbstractGeometryAttributes* pGeomHelper )
      26             : : SystemAXControlImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper )
      27           0 : , m_xControlInvocation( xControl, uno::UNO_QUERY_THROW )
      28             : {
      29           0 : }
      30             : 
      31             : //----------------------------------------------------------
      32           0 : uno::Reference< beans::XIntrospectionAccess > SAL_CALL VbaSystemAXControl::getIntrospection()
      33             :     throw ( uno::RuntimeException )
      34             : {
      35           0 :     return m_xControlInvocation->getIntrospection();
      36             : }
      37             : 
      38             : //----------------------------------------------------------
      39           0 : uno::Any SAL_CALL VbaSystemAXControl::invoke( const OUString& aFunctionName, const uno::Sequence< uno::Any >& aParams, uno::Sequence< ::sal_Int16 >& aOutParamIndex, uno::Sequence< uno::Any >& aOutParam )
      40             :     throw ( lang::IllegalArgumentException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException )
      41             : {
      42           0 :     return m_xControlInvocation->invoke( aFunctionName, aParams, aOutParamIndex, aOutParam );
      43             : }
      44             : 
      45             : //----------------------------------------------------------
      46           0 : void SAL_CALL VbaSystemAXControl::setValue( const OUString& aPropertyName, const uno::Any& aValue )
      47             :     throw ( beans::UnknownPropertyException, script::CannotConvertException, reflection::InvocationTargetException, uno::RuntimeException )
      48             : {
      49           0 :     m_xControlInvocation->setValue( aPropertyName, aValue );
      50           0 : }
      51             : 
      52             : //----------------------------------------------------------
      53           0 : uno::Any SAL_CALL VbaSystemAXControl::getValue( const OUString& aPropertyName )
      54             :     throw ( beans::UnknownPropertyException, uno::RuntimeException )
      55             : {
      56           0 :     return m_xControlInvocation->getValue( aPropertyName );
      57             : }
      58             : 
      59             : //----------------------------------------------------------
      60           0 : ::sal_Bool SAL_CALL VbaSystemAXControl::hasMethod( const OUString& aName )
      61             :     throw ( uno::RuntimeException )
      62             : {
      63           0 :     return m_xControlInvocation->hasMethod( aName );
      64             : }
      65             : 
      66             : //----------------------------------------------------------
      67           0 : ::sal_Bool SAL_CALL VbaSystemAXControl::hasProperty( const OUString& aName )
      68             :     throw ( uno::RuntimeException )
      69             : {
      70           0 :     return m_xControlInvocation->hasProperty( aName );
      71             : }
      72             : 
      73             : //----------------------------------------------------------
      74             : OUString
      75           0 : VbaSystemAXControl::getServiceImplName()
      76             : {
      77           0 :     return OUString( "VbaSystemAXControl" );
      78             : }
      79             : 
      80             : //----------------------------------------------------------
      81             : uno::Sequence< OUString >
      82           0 : VbaSystemAXControl::getServiceNames()
      83             : {
      84           0 :     static uno::Sequence< OUString > aServiceNames;
      85           0 :     if ( aServiceNames.getLength() == 0 )
      86             :     {
      87           0 :         aServiceNames.realloc( 1 );
      88           0 :         aServiceNames[ 0 ] = "ooo.vba.msforms.Frame";
      89             :     }
      90           0 :     return aServiceNames;
      91           3 : }
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10