LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbaassistant.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 44 0.0 %
Date: 2014-04-14 Functions: 0 16 0.0 %
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 <sfx2/app.hxx>
      20             : #include <svtools/helpopt.hxx>
      21             : 
      22             : #include <ooo/vba/office/MsoAnimationType.hpp>
      23             : 
      24             : #include"vbaassistant.hxx"
      25             : 
      26             : 
      27             : using namespace com::sun::star;
      28             : using namespace ooo::vba;
      29             : 
      30             : using namespace ooo::vba::office::MsoAnimationType;
      31             : 
      32           0 : ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext ): ScVbaAssistantImpl_BASE( xParent, xContext ),
      33           0 : m_sName( "Clippit" )
      34             : {
      35           0 :     m_bIsVisible = false;
      36           0 :     m_nPointsLeft = 795;
      37           0 :     m_nPointsTop = 248;
      38           0 :     m_nAnimation = msoAnimationIdle;
      39           0 : }
      40             : 
      41           0 : ScVbaAssistant::~ScVbaAssistant()
      42             : {
      43           0 : }
      44             : 
      45           0 : sal_Bool SAL_CALL ScVbaAssistant::getVisible() throw (uno::RuntimeException, std::exception)
      46             : {
      47           0 :     return m_bIsVisible;
      48             : }
      49             : 
      50           0 : void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException, std::exception)
      51             : {
      52           0 :     m_bIsVisible = bVisible;
      53           0 : }
      54             : 
      55           0 : sal_Bool SAL_CALL ScVbaAssistant::getOn() throw (uno::RuntimeException, std::exception)
      56             : {
      57           0 :     return false;
      58             : }
      59             : 
      60           0 : void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn ) throw (uno::RuntimeException, std::exception)
      61             : {
      62           0 :     setVisible( bOn );
      63           0 : }
      64             : 
      65             : 
      66             : ::sal_Int32 SAL_CALL
      67           0 : ScVbaAssistant::getTop() throw (css::uno::RuntimeException, std::exception)
      68             : {
      69           0 :     return m_nPointsTop;
      70             : }
      71             : void SAL_CALL
      72           0 : ScVbaAssistant::setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException, std::exception)
      73             : {
      74           0 :     m_nPointsTop = _top;
      75           0 : }
      76             : ::sal_Int32 SAL_CALL
      77           0 : ScVbaAssistant::getLeft() throw (css::uno::RuntimeException, std::exception)
      78             : {
      79           0 :     return m_nPointsLeft;
      80             : }
      81             : void SAL_CALL
      82           0 : ScVbaAssistant::setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException, std::exception)
      83             : {
      84           0 :     m_nPointsLeft = _left;
      85           0 : }
      86             : ::sal_Int32 SAL_CALL
      87           0 : ScVbaAssistant::getAnimation() throw (css::uno::RuntimeException, std::exception)
      88             : {
      89           0 :     return m_nAnimation;
      90             : }
      91             : void SAL_CALL
      92           0 : ScVbaAssistant::setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException, std::exception)
      93             : {
      94           0 :     m_nAnimation = _animation;
      95           0 : }
      96             : 
      97             : OUString SAL_CALL
      98           0 : ScVbaAssistant::Name(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception)
      99             : {
     100           0 :     return m_sName;
     101             : }
     102             : 
     103             : OUString
     104           0 : ScVbaAssistant::getServiceImplName()
     105             : {
     106           0 :     return OUString("ScVbaAssistant");
     107             : }
     108             : 
     109             : uno::Sequence< OUString >
     110           0 : ScVbaAssistant::getServiceNames()
     111             : {
     112           0 :     static uno::Sequence< OUString > aServiceNames;
     113           0 :     if ( aServiceNames.getLength() == 0 )
     114             :     {
     115           0 :         aServiceNames.realloc( 1 );
     116           0 :         aServiceNames[ 0 ] = "ooo.vba.Assistant";
     117             :     }
     118           0 :     return aServiceNames;
     119             : }
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10