LibreOffice Module basctl (master) 1
unomodel.hxx
Go to the documentation of this file.
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#pragma once
20
21#include <com/sun/star/lang/XServiceInfo.hpp>
22#include <sfx2/sfxbasemodel.hxx>
23
24namespace basctl
25{
26
27class SIDEModel : public SfxBaseModel,
28 public com::sun::star::lang::XServiceInfo
29{
31 static void notImplemented();
32public:
33 explicit SIDEModel(SfxObjectShell *pObjSh);
34 virtual ~SIDEModel() override;
35
36 //XInterface
37 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
38 virtual void SAL_CALL acquire( ) noexcept override;
39 virtual void SAL_CALL release( ) noexcept override;
40
41 //XTypeProvider
42 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
43
44 //XServiceInfo
45 virtual OUString SAL_CALL getImplementationName() override;
46 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
47 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
48 // XStorable2
49 virtual void SAL_CALL storeSelf( const css::uno::Sequence< css::beans::PropertyValue >& ) override { notImplemented(); }
50 // XStorable
51 virtual void SAL_CALL store() override;
52 virtual void SAL_CALL storeAsURL( const OUString& sURL,
53 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
54 virtual void SAL_CALL storeToURL( const OUString& sURL,
55 const css::uno::Sequence< css::beans::PropertyValue >& seqArguments ) override;
56};
57
58} // namespace basctl
59
60/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SIDEModel(SfxObjectShell *pObjSh)
Definition: unomodel.cxx:40
virtual ~SIDEModel() override
Definition: unomodel.cxx:45
virtual void SAL_CALL release() noexcept override
Definition: unomodel.cxx:67
static void notImplemented()
Definition: unomodel.cxx:112
virtual void SAL_CALL storeToURL(const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &seqArguments) override
Definition: unomodel.cxx:106
virtual void SAL_CALL storeAsURL(const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &seqArguments) override
Definition: unomodel.cxx:101
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: unomodel.cxx:49
virtual void SAL_CALL storeSelf(const css::uno::Sequence< css::beans::PropertyValue > &) override
Definition: unomodel.hxx:49
virtual OUString SAL_CALL getImplementationName() override
Definition: unomodel.cxx:80
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: unomodel.cxx:73
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unomodel.cxx:90
virtual void SAL_CALL store() override
Definition: unomodel.cxx:96
virtual void SAL_CALL acquire() noexcept override
Definition: unomodel.cxx:61
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unomodel.cxx:85
unsigned char sal_Bool