xref: /trunk/main/basctl/source/basicide/unomodel.hxx (revision 96821c26)
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 UNOMODEL_HXX
24 #define UNOMODEL_HXX
25 
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <sfx2/sfxbasemodel.hxx>
29 
30 //-----------------------------------------------------------------------------
31 class SIDEModel : public SfxBaseModel,
32 				public com::sun::star::lang::XServiceInfo
33 {
34 public:
35 	SIDEModel( SfxObjectShell *pObjSh = 0 );
36 	virtual	~SIDEModel();
37 
38 	//XInterface
39 	virtual 	::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
40     virtual void SAL_CALL acquire(  ) throw();
41     virtual void SAL_CALL release(  ) throw();
42 
43 	//XTypeProvider
44 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
45 
46     //XServiceInfo
47 	virtual rtl::OUString SAL_CALL getImplementationName(void)
48 		throw( ::com::sun::star::uno::RuntimeException );
49 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
50 			throw( ::com::sun::star::uno::RuntimeException );
51 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
52 			throw( ::com::sun::star::uno::RuntimeException );
53 
54 	static ::com::sun::star::uno::Sequence< rtl::OUString > getSupportedServiceNames_Static();
55 	static ::rtl::OUString getImplementationName_Static();
56 };
57 
58 com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SIDEModel_createInstance(
59 				const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr )
60 					throw( com::sun::star::uno::Exception );
61 
62 #endif
63