xref: /aoo41x/main/basctl/source/inc/basidectrlr.hxx (revision 96821c26)
1*96821c26SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*96821c26SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*96821c26SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*96821c26SAndrew Rist  * distributed with this work for additional information
6*96821c26SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*96821c26SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*96821c26SAndrew Rist  * "License"); you may not use this file except in compliance
9*96821c26SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*96821c26SAndrew Rist  *
11*96821c26SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*96821c26SAndrew Rist  *
13*96821c26SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*96821c26SAndrew Rist  * software distributed under the License is distributed on an
15*96821c26SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*96821c26SAndrew Rist  * KIND, either express or implied.  See the License for the
17*96821c26SAndrew Rist  * specific language governing permissions and limitations
18*96821c26SAndrew Rist  * under the License.
19*96821c26SAndrew Rist  *
20*96821c26SAndrew Rist  *************************************************************/
21*96821c26SAndrew Rist 
22*96821c26SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _BASCTL_BASICIDECTRLR_HXX
25cdf0e10cSrcweir #define _BASCTL_BASICIDECTRLR_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <comphelper/broadcasthelper.hxx>
28cdf0e10cSrcweir #include <comphelper/propertycontainer.hxx>
29cdf0e10cSrcweir #include <comphelper/proparrhlp.hxx>
30cdf0e10cSrcweir #include <sfx2/sfxbasecontroller.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class BasicIDEShell;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class BasicIDEController    :public comphelper::OMutexAndBroadcastHelper
37cdf0e10cSrcweir 	                        ,public ::comphelper::OPropertyContainer
38cdf0e10cSrcweir 							,public ::comphelper::OPropertyArrayUsageHelper< BasicIDEController >
39cdf0e10cSrcweir 	                        ,public SfxBaseController
40cdf0e10cSrcweir {
41cdf0e10cSrcweir private:
42cdf0e10cSrcweir     // properties
43cdf0e10cSrcweir 	sal_Int32   m_nIconId;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir public:
46cdf0e10cSrcweir     BasicIDEController( BasicIDEShell* pViewShell );
47cdf0e10cSrcweir     virtual ~BasicIDEController();
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 	// XInterface
50cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
51cdf0e10cSrcweir     virtual void SAL_CALL acquire() throw();
52cdf0e10cSrcweir     virtual void SAL_CALL release() throw();
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 	// XTypeProvider ( ::SfxBaseController )
55cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw( ::com::sun::star::uno::RuntimeException );
56cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException );
57cdf0e10cSrcweir 
58cdf0e10cSrcweir     // XPropertySet
59cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
60cdf0e10cSrcweir 
61cdf0e10cSrcweir     // OPropertySetHelper
62cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
63cdf0e10cSrcweir 
64cdf0e10cSrcweir protected:
65cdf0e10cSrcweir     // OPropertyArrayUsageHelper
66cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
67cdf0e10cSrcweir };
68cdf0e10cSrcweir 
69cdf0e10cSrcweir #endif	// _BASCTL_BASICIDECTRLR_HXX
70cdf0e10cSrcweir 
71