update credits
[LibreOffice.git] / sc / inc / defltuno.hxx
blob2f4bfd734c448ebde75cd50d172d7f769d11cfc0
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_DEFLTUNO_HXX
21 #define INCLUDED_SC_INC_DEFLTUNO_HXX
23 #include <svl/lstner.hxx>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <com/sun/star/beans/XPropertyState.hpp>
27 #include <cppuhelper/implbase3.hxx>
28 #include <svl/itemprop.hxx>
30 class ScDocShell;
32 class ScDocDefaultsObj : public ::cppu::WeakImplHelper3<
33 ::com::sun::star::beans::XPropertySet,
34 ::com::sun::star::beans::XPropertyState,
35 ::com::sun::star::lang::XServiceInfo >,
36 public SfxListener
38 private:
39 ScDocShell* pDocShell;
40 SfxItemPropertyMap aPropertyMap;
42 void ItemsChanged();
44 public:
45 ScDocDefaultsObj(ScDocShell* pDocSh);
46 virtual ~ScDocDefaultsObj();
48 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
50 // XPropertySet
51 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
52 SAL_CALL getPropertySetInfo()
53 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
55 const ::com::sun::star::uno::Any& aValue )
56 throw(::com::sun::star::beans::UnknownPropertyException,
57 ::com::sun::star::beans::PropertyVetoException,
58 ::com::sun::star::lang::IllegalArgumentException,
59 ::com::sun::star::lang::WrappedTargetException,
60 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
62 const OUString& PropertyName )
63 throw(::com::sun::star::beans::UnknownPropertyException,
64 ::com::sun::star::lang::WrappedTargetException,
65 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
67 const ::com::sun::star::uno::Reference<
68 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
69 throw(::com::sun::star::beans::UnknownPropertyException,
70 ::com::sun::star::lang::WrappedTargetException,
71 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
73 const ::com::sun::star::uno::Reference<
74 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
75 throw(::com::sun::star::beans::UnknownPropertyException,
76 ::com::sun::star::lang::WrappedTargetException,
77 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
79 const ::com::sun::star::uno::Reference<
80 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
81 throw(::com::sun::star::beans::UnknownPropertyException,
82 ::com::sun::star::lang::WrappedTargetException,
83 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
84 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
87 throw(::com::sun::star::beans::UnknownPropertyException,
88 ::com::sun::star::lang::WrappedTargetException,
89 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
91 // XPropertyState
92 virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(
93 const OUString& PropertyName )
94 throw(::com::sun::star::beans::UnknownPropertyException,
95 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
96 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL
97 getPropertyStates( const ::com::sun::star::uno::Sequence<
98 OUString >& aPropertyName )
99 throw(::com::sun::star::beans::UnknownPropertyException,
100 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
101 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName )
102 throw(::com::sun::star::beans::UnknownPropertyException,
103 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
104 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault(
105 const OUString& aPropertyName )
106 throw(::com::sun::star::beans::UnknownPropertyException,
107 ::com::sun::star::lang::WrappedTargetException,
108 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
110 // XServiceInfo
111 virtual OUString SAL_CALL getImplementationName()
112 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
113 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
114 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
115 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
116 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
119 #endif
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */