LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbaassistant.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 47 0.0 %
Date: 2012-08-25 Functions: 0 16 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 22 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #include <sfx2/app.hxx>
      29                 :            : #include <svtools/helpopt.hxx>
      30                 :            : 
      31                 :            : #include <ooo/vba/office/MsoAnimationType.hpp>
      32                 :            : 
      33                 :            : #include"vbaassistant.hxx"
      34                 :            : 
      35                 :            : 
      36                 :            : using namespace com::sun::star;
      37                 :            : using namespace ooo::vba;
      38                 :            : 
      39                 :            : using namespace ooo::vba::office::MsoAnimationType;
      40                 :            : 
      41                 :          0 : ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext ): ScVbaAssistantImpl_BASE( xParent, xContext ),
      42         [ #  # ]:          0 : m_sName( RTL_CONSTASCII_USTRINGPARAM( "Clippit" ) )
      43                 :            : {
      44                 :          0 :     m_bIsVisible = false;
      45                 :          0 :     m_nPointsLeft = 795;
      46                 :          0 :     m_nPointsTop = 248;
      47                 :          0 :     m_nAnimation = msoAnimationIdle;
      48                 :          0 : }
      49                 :            : 
      50                 :          0 : ScVbaAssistant::~ScVbaAssistant()
      51                 :            : {
      52         [ #  # ]:          0 : }
      53                 :            : 
      54                 :          0 : sal_Bool SAL_CALL ScVbaAssistant::getVisible() throw (uno::RuntimeException)
      55                 :            : {
      56                 :          0 :     return m_bIsVisible;
      57                 :            : }
      58                 :            : 
      59                 :          0 : void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException)
      60                 :            : {
      61                 :          0 :     m_bIsVisible = bVisible;
      62                 :          0 : }
      63                 :            : 
      64                 :          0 : sal_Bool SAL_CALL ScVbaAssistant::getOn() throw (uno::RuntimeException)
      65                 :            : {
      66 [ #  # ][ #  # ]:          0 :     if( SvtHelpOptions().IsHelpAgentAutoStartMode() )
      67                 :          0 :         return sal_True;
      68                 :            :     else
      69                 :          0 :         return false;
      70                 :            : }
      71                 :            : 
      72                 :          0 : void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn ) throw (uno::RuntimeException)
      73                 :            : {
      74         [ #  # ]:          0 :     SvtHelpOptions().SetHelpAgentAutoStartMode( bOn );
      75                 :          0 :     setVisible( bOn );
      76                 :          0 : }
      77                 :            : 
      78                 :            : 
      79                 :            : ::sal_Int32 SAL_CALL
      80                 :          0 : ScVbaAssistant::getTop() throw (css::uno::RuntimeException)
      81                 :            : {
      82                 :          0 :     return m_nPointsTop;
      83                 :            : }
      84                 :            : void SAL_CALL
      85                 :          0 : ScVbaAssistant::setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException)
      86                 :            : {
      87                 :          0 :     m_nPointsTop = _top;
      88                 :          0 : }
      89                 :            : ::sal_Int32 SAL_CALL
      90                 :          0 : ScVbaAssistant::getLeft() throw (css::uno::RuntimeException)
      91                 :            : {
      92                 :          0 :     return m_nPointsLeft;
      93                 :            : }
      94                 :            : void SAL_CALL
      95                 :          0 : ScVbaAssistant::setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException)
      96                 :            : {
      97                 :          0 :     m_nPointsLeft = _left;
      98                 :          0 : }
      99                 :            : ::sal_Int32 SAL_CALL
     100                 :          0 : ScVbaAssistant::getAnimation() throw (css::uno::RuntimeException)
     101                 :            : {
     102                 :          0 :     return m_nAnimation;
     103                 :            : }
     104                 :            : void SAL_CALL
     105                 :          0 : ScVbaAssistant::setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException)
     106                 :            : {
     107                 :          0 :     m_nAnimation = _animation;
     108                 :          0 : }
     109                 :            : 
     110                 :            : ::rtl::OUString SAL_CALL
     111                 :          0 : ScVbaAssistant::Name(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException)
     112                 :            : {
     113                 :          0 :     return m_sName;
     114                 :            : }
     115                 :            : 
     116                 :            : rtl::OUString
     117                 :          0 : ScVbaAssistant::getServiceImplName()
     118                 :            : {
     119                 :          0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaAssistant"));
     120                 :            : }
     121                 :            : 
     122                 :            : uno::Sequence< rtl::OUString >
     123                 :          0 : ScVbaAssistant::getServiceNames()
     124                 :            : {
     125 [ #  # ][ #  # ]:          0 :     static uno::Sequence< rtl::OUString > aServiceNames;
         [ #  # ][ #  # ]
     126         [ #  # ]:          0 :     if ( aServiceNames.getLength() == 0 )
     127                 :            :     {
     128                 :          0 :         aServiceNames.realloc( 1 );
     129         [ #  # ]:          0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.Assistant" ) );
     130                 :            :     }
     131                 :          0 :     return aServiceNames;
     132                 :            : }
     133                 :            : 
     134                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10