bump product version to 4.1.6.2
[LibreOffice.git] / basctl / source / basicide / unomodel.hxx
blobba1d2193c95d6e4e6640af123b2b9744ba7869a2
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 #ifndef BASCTL_UNOMODEL_HXX
20 #define BASCTL_UNOMODEL_HXX
22 #include <com/sun/star/lang/XServiceInfo.hpp>
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <sfx2/sfxbasemodel.hxx>
26 namespace basctl
29 //-----------------------------------------------------------------------------
30 class SIDEModel : public SfxBaseModel,
31 public com::sun::star::lang::XServiceInfo
33 void notImplemented() throw ( ::com::sun::star::io::IOException );
34 public:
35 SIDEModel( SfxObjectShell *pObjSh = 0 );
36 virtual ~SIDEModel();
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();
43 //XTypeProvider
44 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
46 //XServiceInfo
47 virtual OUString SAL_CALL getImplementationName(void)
48 throw( ::com::sun::star::uno::RuntimeException );
49 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
50 throw( ::com::sun::star::uno::RuntimeException );
51 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void)
52 throw( ::com::sun::star::uno::RuntimeException );
53 // XStorable2
54 virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& )
55 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { notImplemented(); }
56 // XStorable
57 virtual void SAL_CALL store() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
58 virtual void SAL_CALL storeAsURL( const OUString& sURL,
59 const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments )
60 throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL storeToURL( const OUString& sURL,
62 const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments )
63 throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
65 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
66 static OUString getImplementationName_Static();
69 com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SIDEModel_createInstance(
70 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr )
71 throw( com::sun::star::uno::Exception );
73 } // namespace basctl
75 #endif // BASCTL_UNOMODEL_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */