1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
29 //-----------------------------------------------------------------------------
30 class SIDEModel
: public SfxBaseModel
,
31 public com::sun::star::lang::XServiceInfo
33 void notImplemented() throw ( ::com::sun::star::io::IOException
);
35 SIDEModel( SfxObjectShell
*pObjSh
= 0 );
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();
44 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
);
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
);
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(); }
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
);
75 #endif // BASCTL_UNOMODEL_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */