Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / basctl / source / basicide / unomodel.hxx
blobb73fa5fa0814eb207f6501ddd6040445390ab916
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 INCLUDED_BASCTL_SOURCE_BASICIDE_UNOMODEL_HXX
20 #define INCLUDED_BASCTL_SOURCE_BASICIDE_UNOMODEL_HXX
22 #include <com/sun/star/lang/XServiceInfo.hpp>
23 #include <sfx2/sfxbasemodel.hxx>
25 namespace basctl
28 class SIDEModel : public SfxBaseModel,
29 public com::sun::star::lang::XServiceInfo
31 /// @throws css::io::IOException
32 static void notImplemented();
33 public:
34 explicit SIDEModel(SfxObjectShell *pObjSh);
35 virtual ~SIDEModel() override;
37 //XInterface
38 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
39 virtual void SAL_CALL acquire( ) throw() override;
40 virtual void SAL_CALL release( ) throw() override;
42 //XTypeProvider
43 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
45 //XServiceInfo
46 virtual OUString SAL_CALL getImplementationName() override;
47 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
48 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
49 // XStorable2
50 virtual void SAL_CALL storeSelf( const css::uno::Sequence< css::beans::PropertyValue >& ) override { notImplemented(); }
51 // XStorable
52 virtual void SAL_CALL store() override;
53 virtual void SAL_CALL storeAsURL( const OUString& sURL,
54 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
55 virtual void SAL_CALL storeToURL( const OUString& sURL,
56 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
58 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
59 static OUString getImplementationName_Static();
62 /// @throws com::sun::star::uno::Exception
63 css::uno::Reference< css::uno::XInterface > SIDEModel_createInstance(
64 const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr );
66 } // namespace basctl
68 #endif // INCLUDED_BASCTL_SOURCE_BASICIDE_UNOMODEL_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */