Line data Source code
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 : #ifndef BASCTL_UNOMODEL_HXX
20 : #define BASCTL_UNOMODEL_HXX
21 :
22 : #include <com/sun/star/lang/XServiceInfo.hpp>
23 : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 : #include <sfx2/sfxbasemodel.hxx>
25 :
26 : namespace basctl
27 : {
28 :
29 : //-----------------------------------------------------------------------------
30 : class SIDEModel : public SfxBaseModel,
31 : public com::sun::star::lang::XServiceInfo
32 : {
33 : void notImplemented() throw ( ::com::sun::star::io::IOException );
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 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 0 : virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& )
55 0 : 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 ::rtl::OUString& sURL,
59 : const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqArguments )
60 : throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
61 : virtual void SAL_CALL storeToURL( const ::rtl::OUString& sURL,
62 : const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqArguments )
63 : throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
64 :
65 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
66 : static OUString getImplementationName_Static();
67 : };
68 :
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 );
72 :
73 : } // namespace basctl
74 :
75 : #endif // BASCTL_UNOMODEL_HXX
76 :
77 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|