tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / vba / vbaassistant.hxx
blob674e644451ec04a00a2e8ca4ac4897a6dfdd7a38
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 #pragma once
21 #include <cppuhelper/implbase.hxx>
22 #include <ooo/vba/XAssistant.hpp>
24 #include <vbahelper/vbahelperinterface.hxx>
26 typedef ::cppu::WeakImplHelper< ov::XAssistant > Assistant;
27 typedef InheritedHelperInterfaceImpl< Assistant > ScVbaAssistantImpl_BASE;
29 class ScVbaAssistant : public ScVbaAssistantImpl_BASE
31 private:
32 bool m_bIsVisible;
33 sal_Int32 m_nPointsLeft;
34 sal_Int32 m_nPointsTop;
35 sal_Int32 m_nAnimation;
36 public:
37 ScVbaAssistant( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext );
38 virtual ~ScVbaAssistant() override;
39 // XAssistant
40 virtual sal_Bool SAL_CALL getOn() override;
41 virtual void SAL_CALL setOn( sal_Bool _on ) override;
42 virtual sal_Bool SAL_CALL getVisible() override;
43 virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
44 virtual ::sal_Int32 SAL_CALL getTop() override;
45 virtual void SAL_CALL setTop( ::sal_Int32 _top ) override;
46 virtual ::sal_Int32 SAL_CALL getLeft() override;
47 virtual void SAL_CALL setLeft( ::sal_Int32 _left ) override;
48 virtual ::sal_Int32 SAL_CALL getAnimation() override;
49 virtual void SAL_CALL setAnimation( ::sal_Int32 _animation ) override;
51 virtual OUString SAL_CALL Name( ) override;
52 // XHelperInterface
53 virtual OUString getServiceImplName() override;
54 virtual css::uno::Sequence<OUString> getServiceNames() override;
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */