2009-01-21 11:00:00 +0100 npower r266639 : replace ScAddress::CONV_XL_R1C1 with formula::FormulaGrammar::CONV_XL_R1C1 2009-01-21 10:58:33 +0100 npower r266638 : fixup access for changes to compiler.[ch]xx 2009-01-21 10:57:46 +0100 npower r266637 : replace the static with non-static member ( to align with the latest m39 ) changes 2009-01-20 11:53:52 +0100 npower r266562 : CWS-TOOLING: rebase CWS npower11 to trunk@266428 (milestone: DEV300:m39) 2009-01-09 23:31:00 +0100 cloph r266122 : fix typo (missing "="), initialize variables to avoid WaE breakage 2009-01-09 11:57:20 +0100 npower r266071 : wae Mac OSX gcc-4.0.1 (PPC) 2009-01-08 11:09:49 +0100 npower r265986 : wae - Mac OSX gcc-4.0.1 (PPC) 2009-01-07 10:33:20 +0100 npower r265952 : wae Mac OSX gcc-4.0.1 2008-12-18 19:14:10 +0100 npower r265712 : wae for wntmsci12 target 2008-12-17 16:14:54 +0100 npower r265640 : add Outline property for Font, also remove growing list of friend classes for ScCellRangeObj and replace by a single class. 2008-12-17 16:11:02 +0100 npower r265639 : fix path variable for 3.1, also tweak the unix logs 2008-12-11 02:39:58 +0100 hanbo r265233 : fix the vba/vba namespace of constants 2008-11-25 17:05:39 +0100 npower r264317 : namespace changes 2008-11-25 14:12:37 +0100 npower r264308 : revert changes made by mistake when migrating cws 2008-11-25 13:30:59 +0100 npower r264296 : i#93944# namespace changes 2008-11-25 13:29:25 +0100 npower r264293 : i#93944# namespace changes 2008-11-25 13:27:08 +0100 npower r264289 : i#93944# namespace changes 2008-11-24 18:24:17 +0100 npower r264263 : svn migration 2008-11-24 18:22:47 +0100 npower r264262 : not needed anymore 2008-11-24 18:21:23 +0100 npower r264261 : svn migration 2008-11-24 18:18:31 +0100 npower r264260 : svn migration
141 lines
3.9 KiB
C++
141 lines
3.9 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile$
|
|
*
|
|
* $Revision$
|
|
*
|
|
* last change: $Author$ $Date$
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
#include <sfx2/app.hxx>
|
|
#include <svtools/helpopt.hxx>
|
|
|
|
#include <ooo/vba/office/MsoAnimationType.hpp>
|
|
|
|
#include"vbaassistant.hxx"
|
|
|
|
|
|
using namespace com::sun::star;
|
|
using namespace ooo::vba;
|
|
|
|
using namespace ooo::vba::office::MsoAnimationType;
|
|
|
|
ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext ): ScVbaAssistantImpl_BASE( xParent, xContext )
|
|
{
|
|
m_bIsVisible = sal_False;
|
|
m_nPointsLeft = 795;
|
|
m_nPointsTop = 248;
|
|
m_sName = rtl::OUString::createFromAscii( "Clippit" );
|
|
m_nAnimation = msoAnimationIdle;
|
|
}
|
|
|
|
ScVbaAssistant::~ScVbaAssistant()
|
|
{
|
|
}
|
|
|
|
sal_Bool SAL_CALL ScVbaAssistant::getVisible() throw (uno::RuntimeException)
|
|
{
|
|
return m_bIsVisible;
|
|
}
|
|
|
|
void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException)
|
|
{
|
|
m_bIsVisible = bVisible;
|
|
}
|
|
|
|
sal_Bool SAL_CALL ScVbaAssistant::getOn() throw (uno::RuntimeException)
|
|
{
|
|
if( SvtHelpOptions().IsHelpAgentAutoStartMode() )
|
|
return sal_True;
|
|
else
|
|
return sal_False;
|
|
}
|
|
|
|
void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn ) throw (uno::RuntimeException)
|
|
{
|
|
SvtHelpOptions().SetHelpAgentAutoStartMode( bOn );
|
|
setVisible( bOn );
|
|
}
|
|
|
|
|
|
::sal_Int32 SAL_CALL
|
|
ScVbaAssistant::getTop() throw (css::uno::RuntimeException)
|
|
{
|
|
return m_nPointsTop;
|
|
}
|
|
void SAL_CALL
|
|
ScVbaAssistant::setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException)
|
|
{
|
|
m_nPointsTop = _top;
|
|
}
|
|
::sal_Int32 SAL_CALL
|
|
ScVbaAssistant::getLeft() throw (css::uno::RuntimeException)
|
|
{
|
|
return m_nPointsLeft;
|
|
}
|
|
void SAL_CALL
|
|
ScVbaAssistant::setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException)
|
|
{
|
|
m_nPointsLeft = _left;
|
|
}
|
|
::sal_Int32 SAL_CALL
|
|
ScVbaAssistant::getAnimation() throw (css::uno::RuntimeException)
|
|
{
|
|
return m_nAnimation;
|
|
}
|
|
void SAL_CALL
|
|
ScVbaAssistant::setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException)
|
|
{
|
|
m_nAnimation = _animation;
|
|
}
|
|
|
|
::rtl::OUString SAL_CALL
|
|
ScVbaAssistant::Name( ) throw (css::script::BasicErrorException, css::uno::RuntimeException)
|
|
{
|
|
return m_sName;
|
|
}
|
|
|
|
rtl::OUString&
|
|
ScVbaAssistant::getServiceImplName()
|
|
{
|
|
static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaAssistant") );
|
|
return sImplName;
|
|
}
|
|
|
|
uno::Sequence< rtl::OUString >
|
|
ScVbaAssistant::getServiceNames()
|
|
{
|
|
static uno::Sequence< rtl::OUString > aServiceNames;
|
|
if ( aServiceNames.getLength() == 0 )
|
|
{
|
|
aServiceNames.realloc( 1 );
|
|
aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.Assistant" ) );
|
|
}
|
|
return aServiceNames;
|
|
}
|