Bump version to 4.3-4
[LibreOffice.git] / sc / inc / confuno.hxx
blob21e0d3b69ec223f927a1611200c55c2b9a59e416
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 .
20 #ifndef INCLUDED_SC_INC_CONFUNO_HXX
21 #define INCLUDED_SC_INC_CONFUNO_HXX
23 #include <svl/itemprop.hxx>
24 #include <svl/lstner.hxx>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 #include <cppuhelper/implbase2.hxx>
29 class ScDocShell;
31 class ScDocumentConfiguration : public cppu::WeakImplHelper2<
32 com::sun::star::beans::XPropertySet,
33 com::sun::star::lang::XServiceInfo>,
34 public SfxListener
36 private:
37 ScDocShell* pDocShell;
38 SfxItemPropertySet aPropSet;
40 public:
41 ScDocumentConfiguration(ScDocShell* pDocShell);
42 virtual ~ScDocumentConfiguration();
44 // SfxListener
45 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
47 // XPropertySet
48 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
49 SAL_CALL getPropertySetInfo()
50 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
52 const ::com::sun::star::uno::Any& aValue )
53 throw(::com::sun::star::beans::UnknownPropertyException,
54 ::com::sun::star::beans::PropertyVetoException,
55 ::com::sun::star::lang::IllegalArgumentException,
56 ::com::sun::star::lang::WrappedTargetException,
57 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
59 const OUString& PropertyName )
60 throw(::com::sun::star::beans::UnknownPropertyException,
61 ::com::sun::star::lang::WrappedTargetException,
62 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
64 const ::com::sun::star::uno::Reference<
65 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
66 throw(::com::sun::star::beans::UnknownPropertyException,
67 ::com::sun::star::lang::WrappedTargetException,
68 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
70 const ::com::sun::star::uno::Reference<
71 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
72 throw(::com::sun::star::beans::UnknownPropertyException,
73 ::com::sun::star::lang::WrappedTargetException,
74 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
75 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
76 const ::com::sun::star::uno::Reference<
77 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
78 throw(::com::sun::star::beans::UnknownPropertyException,
79 ::com::sun::star::lang::WrappedTargetException,
80 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
81 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
82 const ::com::sun::star::uno::Reference<
83 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
84 throw(::com::sun::star::beans::UnknownPropertyException,
85 ::com::sun::star::lang::WrappedTargetException,
86 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
88 // XServiceInfo
89 virtual OUString SAL_CALL getImplementationName()
90 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
91 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
92 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
93 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
94 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
98 #endif
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */