GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / sc / source / ui / vba / vbaassistant.cxx
blobd3cd1e399ab2b50436d2da1f3c5fd5096ebe4180
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #include <sfx2/app.hxx>
20 #include <svtools/helpopt.hxx>
22 #include <ooo/vba/office/MsoAnimationType.hpp>
24 #include"vbaassistant.hxx"
27 using namespace com::sun::star;
28 using namespace ooo::vba;
30 using namespace ooo::vba::office::MsoAnimationType;
32 ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext ): ScVbaAssistantImpl_BASE( xParent, xContext ),
33 m_sName( "Clippit" )
35 m_bIsVisible = false;
36 m_nPointsLeft = 795;
37 m_nPointsTop = 248;
38 m_nAnimation = msoAnimationIdle;
41 ScVbaAssistant::~ScVbaAssistant()
45 sal_Bool SAL_CALL ScVbaAssistant::getVisible() throw (uno::RuntimeException)
47 return m_bIsVisible;
50 void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible ) throw (uno::RuntimeException)
52 m_bIsVisible = bVisible;
55 sal_Bool SAL_CALL ScVbaAssistant::getOn() throw (uno::RuntimeException)
57 return false;
60 void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn ) throw (uno::RuntimeException)
62 setVisible( bOn );
66 ::sal_Int32 SAL_CALL
67 ScVbaAssistant::getTop() throw (css::uno::RuntimeException)
69 return m_nPointsTop;
71 void SAL_CALL
72 ScVbaAssistant::setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException)
74 m_nPointsTop = _top;
76 ::sal_Int32 SAL_CALL
77 ScVbaAssistant::getLeft() throw (css::uno::RuntimeException)
79 return m_nPointsLeft;
81 void SAL_CALL
82 ScVbaAssistant::setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException)
84 m_nPointsLeft = _left;
86 ::sal_Int32 SAL_CALL
87 ScVbaAssistant::getAnimation() throw (css::uno::RuntimeException)
89 return m_nAnimation;
91 void SAL_CALL
92 ScVbaAssistant::setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException)
94 m_nAnimation = _animation;
97 OUString SAL_CALL
98 ScVbaAssistant::Name( ) throw (css::script::BasicErrorException, css::uno::RuntimeException)
100 return m_sName;
103 OUString
104 ScVbaAssistant::getServiceImplName()
106 return OUString("ScVbaAssistant");
109 uno::Sequence< OUString >
110 ScVbaAssistant::getServiceNames()
112 static uno::Sequence< OUString > aServiceNames;
113 if ( aServiceNames.getLength() == 0 )
115 aServiceNames.realloc( 1 );
116 aServiceNames[ 0 ] = "ooo.vba.Assistant";
118 return aServiceNames;
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */