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 .
20 #ifndef SC_CONFUNO_HXX
21 #define SC_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>
31 class ScDocumentConfiguration
: public cppu::WeakImplHelper2
<
32 com::sun::star::beans::XPropertySet
,
33 com::sun::star::lang::XServiceInfo
>,
37 ScDocShell
* pDocShell
;
38 SfxItemPropertySet aPropSet
;
41 ScDocumentConfiguration(ScDocShell
* pDocShell
);
42 virtual ~ScDocumentConfiguration();
45 virtual void Notify( SfxBroadcaster
& rBC
, const SfxHint
& rHint
);
48 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
>
49 SAL_CALL
getPropertySetInfo()
50 throw(::com::sun::star::uno::RuntimeException
);
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
);
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
);
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
);
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
);
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
);
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
);
89 virtual OUString SAL_CALL
getImplementationName()
90 throw(::com::sun::star::uno::RuntimeException
);
91 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
)
92 throw(::com::sun::star::uno::RuntimeException
);
93 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames()
94 throw(::com::sun::star::uno::RuntimeException
);
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */