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 : class SIDEModel : public SfxBaseModel,
30 : public com::sun::star::lang::XServiceInfo
31 : {
32 : void notImplemented() throw ( ::com::sun::star::io::IOException );
33 : public:
34 : SIDEModel( SfxObjectShell *pObjSh = 0 );
35 : virtual ~SIDEModel();
36 :
37 : //XInterface
38 : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
39 : virtual void SAL_CALL acquire( ) throw() SAL_OVERRIDE;
40 : virtual void SAL_CALL release( ) throw() SAL_OVERRIDE;
41 :
42 : //XTypeProvider
43 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
44 :
45 : //XServiceInfo
46 : virtual OUString SAL_CALL getImplementationName(void)
47 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
48 : virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
49 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
50 : virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void)
51 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
52 : // XStorable2
53 0 : virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& )
54 0 : throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { notImplemented(); }
55 : // XStorable
56 : virtual void SAL_CALL store() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 : virtual void SAL_CALL storeAsURL( const OUString& sURL,
58 : const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments )
59 : throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
60 : virtual void SAL_CALL storeToURL( const OUString& sURL,
61 : const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& seqArguments )
62 : throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 :
64 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
65 : static OUString getImplementationName_Static();
66 : };
67 :
68 : com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL SIDEModel_createInstance(
69 : const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr )
70 : throw( com::sun::star::uno::Exception );
71 :
72 : } // namespace basctl
73 :
74 : #endif // BASCTL_UNOMODEL_HXX
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|