LibreOffice Module sc (master)  1
vbaassistant.hxx
Go to the documentation of this file.
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 #pragma once
20 
21 #include <cppuhelper/implbase.hxx>
22 #include <ooo/vba/XAssistant.hpp>
23 
25 
26 typedef ::cppu::WeakImplHelper< ov::XAssistant > Assistant;
28 
30 {
31 private:
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;
50 
51  virtual OUString SAL_CALL Name( ) override;
52  // XHelperInterface
53  virtual OUString getServiceImplName() override;
54  virtual css::uno::Sequence<OUString> getServiceNames() override;
55 };
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL getOn() override
virtual css::uno::Sequence< OUString > getServiceNames() override
sal_Int32 m_nPointsLeft
ScVbaAssistant(const css::uno::Reference< ov::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext)
sal_Int32 m_nPointsTop
virtual ::sal_Int32 SAL_CALL getLeft() override
virtual void SAL_CALL setTop(::sal_Int32 _top) override
virtual ::sal_Int32 SAL_CALL getTop() override
virtual ::sal_Int32 SAL_CALL getAnimation() override
::cppu::WeakImplHelper< ov::XAssistant > Assistant
virtual OUString SAL_CALL Name() override
unsigned char sal_Bool
InheritedHelperInterfaceImpl< Assistant > ScVbaAssistantImpl_BASE
virtual void SAL_CALL setOn(sal_Bool _on) override
virtual OUString getServiceImplName() override
virtual sal_Bool SAL_CALL getVisible() override
sal_Int32 m_nAnimation
virtual void SAL_CALL setLeft(::sal_Int32 _left) override
virtual ~ScVbaAssistant() override
virtual void SAL_CALL setAnimation(::sal_Int32 _animation) override
virtual void SAL_CALL setVisible(sal_Bool _visible) override