LCOV - code coverage report
Current view: top level - libreoffice/sc/source/ui/vba - vbaassistant.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 47 0.0 %
Date: 2012-12-27 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( RTL_CONSTASCII_USTRINGPARAM( "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)
      46             : {
      47           0 :     return m_bIsVisible;
      48             : }
      49             : 
      50           0 : void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException)
      51             : {
      52           0 :     m_bIsVisible = bVisible;
      53           0 : }
      54             : 
      55           0 : sal_Bool SAL_CALL ScVbaAssistant::getOn() throw (uno::RuntimeException)
      56             : {
      57           0 :     if( SvtHelpOptions().IsHelpAgentAutoStartMode() )
      58           0 :         return sal_True;
      59             :     else
      60           0 :         return false;
      61             : }
      62             : 
      63           0 : void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn ) throw (uno::RuntimeException)
      64             : {
      65           0 :     SvtHelpOptions().SetHelpAgentAutoStartMode( bOn );
      66           0 :     setVisible( bOn );
      67           0 : }
      68             : 
      69             : 
      70             : ::sal_Int32 SAL_CALL
      71           0 : ScVbaAssistant::getTop() throw (css::uno::RuntimeException)
      72             : {
      73           0 :     return m_nPointsTop;
      74             : }
      75             : void SAL_CALL
      76           0 : ScVbaAssistant::setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException)
      77             : {
      78           0 :     m_nPointsTop = _top;
      79           0 : }
      80             : ::sal_Int32 SAL_CALL
      81           0 : ScVbaAssistant::getLeft() throw (css::uno::RuntimeException)
      82             : {
      83           0 :     return m_nPointsLeft;
      84             : }
      85             : void SAL_CALL
      86           0 : ScVbaAssistant::setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException)
      87             : {
      88           0 :     m_nPointsLeft = _left;
      89           0 : }
      90             : ::sal_Int32 SAL_CALL
      91           0 : ScVbaAssistant::getAnimation() throw (css::uno::RuntimeException)
      92             : {
      93           0 :     return m_nAnimation;
      94             : }
      95             : void SAL_CALL
      96           0 : ScVbaAssistant::setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException)
      97             : {
      98           0 :     m_nAnimation = _animation;
      99           0 : }
     100             : 
     101             : ::rtl::OUString SAL_CALL
     102           0 : ScVbaAssistant::Name(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException)
     103             : {
     104           0 :     return m_sName;
     105             : }
     106             : 
     107             : rtl::OUString
     108           0 : ScVbaAssistant::getServiceImplName()
     109             : {
     110           0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaAssistant"));
     111             : }
     112             : 
     113             : uno::Sequence< rtl::OUString >
     114           0 : ScVbaAssistant::getServiceNames()
     115             : {
     116           0 :     static uno::Sequence< rtl::OUString > aServiceNames;
     117           0 :     if ( aServiceNames.getLength() == 0 )
     118             :     {
     119           0 :         aServiceNames.realloc( 1 );
     120           0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.Assistant" ) );
     121             :     }
     122           0 :     return aServiceNames;
     123             : }
     124             : 
     125             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10