xref: /aoo42x/main/sc/source/ui/vba/vbaassistant.hxx (revision 38d50f7b)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SC_VBA_ASSISTANT_HXX
24 #define SC_VBA_ASSISTANT_HXX
25 
26 #include <cppuhelper/implbase1.hxx>
27 #include <ooo/vba/XAssistant.hpp>
28 
29 #include <sfx2/sfxhelp.hxx>
30 
31 #include "excelvbahelper.hxx"
32 #include <vbahelper/vbahelperinterface.hxx>
33 
34 typedef ::cppu::WeakImplHelper1< ov::XAssistant > Assistant;
35 typedef InheritedHelperInterfaceImpl< Assistant > ScVbaAssistantImpl_BASE;
36 
37 class ScVbaAssistant : public ScVbaAssistantImpl_BASE
38 {
39 private:
40     sal_Bool        m_bIsVisible;
41     sal_Int32       m_nPointsLeft;
42     sal_Int32       m_nPointsTop;
43     rtl::OUString   m_sName;
44     sal_Int32       m_nAnimation;
45 public:
46     ScVbaAssistant( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext );
47     virtual ~ScVbaAssistant();
48     // XAssistant
49     virtual sal_Bool SAL_CALL getOn() throw (css::uno::RuntimeException);
50     virtual void SAL_CALL setOn( sal_Bool _on ) throw (css::uno::RuntimeException);
51     virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
52     virtual void SAL_CALL setVisible( sal_Bool _visible ) throw (css::uno::RuntimeException);
53     virtual ::sal_Int32 SAL_CALL getTop() throw (css::uno::RuntimeException);
54     virtual void SAL_CALL setTop( ::sal_Int32 _top ) throw (css::uno::RuntimeException);
55     virtual ::sal_Int32 SAL_CALL getLeft() throw (css::uno::RuntimeException);
56     virtual void SAL_CALL setLeft( ::sal_Int32 _left ) throw (css::uno::RuntimeException);
57     virtual ::sal_Int32 SAL_CALL getAnimation() throw (css::uno::RuntimeException);
58     virtual void SAL_CALL setAnimation( ::sal_Int32 _animation ) throw (css::uno::RuntimeException);
59 
60     virtual ::rtl::OUString SAL_CALL Name(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
61 	// XHelperInterface
62 	virtual rtl::OUString& getServiceImplName();
63 	virtual css::uno::Sequence<rtl::OUString> getServiceNames();
64 };
65 
66 #endif//SC_VBA_ASSISTANT_HXX
67