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 #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBAASSISTANT_HXX 20 #define INCLUDED_SC_SOURCE_UI_VBA_VBAASSISTANT_HXX 21 22 #include <cppuhelper/implbase.hxx> 23 #include <ooo/vba/XAssistant.hpp> 24 25 #include <vbahelper/vbahelperinterface.hxx> 26 27 typedef ::cppu::WeakImplHelper< ov::XAssistant > Assistant; 28 typedef InheritedHelperInterfaceImpl< Assistant > ScVbaAssistantImpl_BASE; 29 30 class ScVbaAssistant : public ScVbaAssistantImpl_BASE 31 { 32 private: 33 bool m_bIsVisible; 34 sal_Int32 m_nPointsLeft; 35 sal_Int32 m_nPointsTop; 36 sal_Int32 m_nAnimation; 37 public: 38 ScVbaAssistant( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext ); 39 virtual ~ScVbaAssistant() override; 40 // XAssistant 41 virtual sal_Bool SAL_CALL getOn() override; 42 virtual void SAL_CALL setOn( sal_Bool _on ) override; 43 virtual sal_Bool SAL_CALL getVisible() override; 44 virtual void SAL_CALL setVisible( sal_Bool _visible ) override; 45 virtual ::sal_Int32 SAL_CALL getTop() override; 46 virtual void SAL_CALL setTop( ::sal_Int32 _top ) override; 47 virtual ::sal_Int32 SAL_CALL getLeft() override; 48 virtual void SAL_CALL setLeft( ::sal_Int32 _left ) override; 49 virtual ::sal_Int32 SAL_CALL getAnimation() override; 50 virtual void SAL_CALL setAnimation( ::sal_Int32 _animation ) override; 51 52 virtual OUString SAL_CALL Name( ) override; 53 // XHelperInterface 54 virtual OUString getServiceImplName() override; 55 virtual css::uno::Sequence<OUString> getServiceNames() override; 56 }; 57 58 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBAASSISTANT_HXX 59 60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 61