tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / vba / vbaassistant.cxx
blob7cc49f5e3d54546edda00fcfc692449c5b4a8512
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 .
20 #include <ooo/vba/office/MsoAnimationType.hpp>
22 #include"vbaassistant.hxx"
24 using namespace com::sun::star;
25 using namespace ooo::vba;
27 using namespace ooo::vba::office::MsoAnimationType;
29 constexpr OUStringLiteral g_sName = u"Clippit";
31 ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext ): ScVbaAssistantImpl_BASE(rParent, rContext)
33 m_bIsVisible = false;
34 m_nPointsLeft = 795;
35 m_nPointsTop = 248;
36 m_nAnimation = msoAnimationIdle;
39 ScVbaAssistant::~ScVbaAssistant()
43 sal_Bool SAL_CALL ScVbaAssistant::getVisible()
45 return m_bIsVisible;
48 void SAL_CALL ScVbaAssistant::setVisible( sal_Bool bVisible )
50 m_bIsVisible = bVisible;
53 sal_Bool SAL_CALL ScVbaAssistant::getOn()
55 return false;
58 void SAL_CALL ScVbaAssistant::setOn( sal_Bool bOn )
60 setVisible( bOn );
63 ::sal_Int32 SAL_CALL
64 ScVbaAssistant::getTop()
66 return m_nPointsTop;
68 void SAL_CALL
69 ScVbaAssistant::setTop( ::sal_Int32 _top )
71 m_nPointsTop = _top;
73 ::sal_Int32 SAL_CALL
74 ScVbaAssistant::getLeft()
76 return m_nPointsLeft;
78 void SAL_CALL
79 ScVbaAssistant::setLeft( ::sal_Int32 _left )
81 m_nPointsLeft = _left;
83 ::sal_Int32 SAL_CALL
84 ScVbaAssistant::getAnimation()
86 return m_nAnimation;
88 void SAL_CALL
89 ScVbaAssistant::setAnimation( ::sal_Int32 _animation )
91 m_nAnimation = _animation;
94 OUString SAL_CALL
95 ScVbaAssistant::Name( )
97 return g_sName;
100 OUString
101 ScVbaAssistant::getServiceImplName()
103 return u"ScVbaAssistant"_ustr;
106 uno::Sequence< OUString >
107 ScVbaAssistant::getServiceNames()
109 static uno::Sequence< OUString > const aServiceNames
111 u"ooo.vba.Assistant"_ustr
113 return aServiceNames;
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */