Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sc / confuno.hxx
blob323ab94ee9621cbbaef74efb2d277dd126c8ed05
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: confuno.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_CONFUNO_HXX
32 #define SC_CONFUNO_HXX
34 #ifndef _SFX_ITEMPROP_HXX
35 #include <bf_svtools/itemprop.hxx>
36 #endif
37 #ifndef _SFXLSTNER_HXX
38 #include <bf_svtools/lstner.hxx>
39 #endif
41 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
42 #include <com/sun/star/lang/XServiceInfo.hpp>
43 #endif
44 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
45 #include <com/sun/star/beans/XPropertySet.hpp>
46 #endif
48 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
49 #include <cppuhelper/implbase2.hxx>
50 #endif
51 namespace binfilter {
53 class ScDocShell;
55 class ScDocumentConfiguration : public cppu::WeakImplHelper2<
56 ::com::sun::star::beans::XPropertySet,
57 ::com::sun::star::lang::XServiceInfo>,
58 public SfxListener
60 private:
61 ScDocShell* pDocShell;
62 SfxItemPropertySet aPropSet;
64 public:
65 ScDocumentConfiguration(ScDocShell* pDocShell);
66 virtual ~ScDocumentConfiguration();
68 // SfxListener
69 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
71 // XPropertySet
72 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
73 SAL_CALL getPropertySetInfo()
74 throw(::com::sun::star::uno::RuntimeException);
75 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
76 const ::com::sun::star::uno::Any& aValue )
77 throw(::com::sun::star::beans::UnknownPropertyException,
78 ::com::sun::star::beans::PropertyVetoException,
79 ::com::sun::star::lang::IllegalArgumentException,
80 ::com::sun::star::lang::WrappedTargetException,
81 ::com::sun::star::uno::RuntimeException);
82 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
83 const ::rtl::OUString& PropertyName )
84 throw(::com::sun::star::beans::UnknownPropertyException,
85 ::com::sun::star::lang::WrappedTargetException,
86 ::com::sun::star::uno::RuntimeException);
87 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
88 const ::com::sun::star::uno::Reference<
89 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
90 throw(::com::sun::star::beans::UnknownPropertyException,
91 ::com::sun::star::lang::WrappedTargetException,
92 ::com::sun::star::uno::RuntimeException);
93 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
94 const ::com::sun::star::uno::Reference<
95 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
96 throw(::com::sun::star::beans::UnknownPropertyException,
97 ::com::sun::star::lang::WrappedTargetException,
98 ::com::sun::star::uno::RuntimeException);
99 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
100 const ::com::sun::star::uno::Reference<
101 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
102 throw(::com::sun::star::beans::UnknownPropertyException,
103 ::com::sun::star::lang::WrappedTargetException,
104 ::com::sun::star::uno::RuntimeException);
105 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
106 const ::com::sun::star::uno::Reference<
107 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
108 throw(::com::sun::star::beans::UnknownPropertyException,
109 ::com::sun::star::lang::WrappedTargetException,
110 ::com::sun::star::uno::RuntimeException);
112 // XServiceInfo
113 virtual ::rtl::OUString SAL_CALL getImplementationName()
114 throw(::com::sun::star::uno::RuntimeException);
115 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
116 throw(::com::sun::star::uno::RuntimeException);
117 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
118 throw(::com::sun::star::uno::RuntimeException);
122 } //namespace binfilter
123 #endif