merge the formfield patch from ooo-build
[ooovba.git] / sc / inc / confuno.hxx
blobbb6018fdfe850b1aafd719ad3f49411368150f30
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.4 $
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 #include <svtools/itemprop.hxx>
35 #include <svtools/lstner.hxx>
36 #include <com/sun/star/lang/XServiceInfo.hpp>
37 #include <com/sun/star/beans/XPropertySet.hpp>
38 #include <cppuhelper/implbase2.hxx>
40 class ScDocShell;
42 class ScDocumentConfiguration : public cppu::WeakImplHelper2<
43 com::sun::star::beans::XPropertySet,
44 com::sun::star::lang::XServiceInfo>,
45 public SfxListener
47 private:
48 ScDocShell* pDocShell;
49 SfxItemPropertySet aPropSet;
51 public:
52 ScDocumentConfiguration(ScDocShell* pDocShell);
53 virtual ~ScDocumentConfiguration();
55 // SfxListener
56 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
58 // XPropertySet
59 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
60 SAL_CALL getPropertySetInfo()
61 throw(::com::sun::star::uno::RuntimeException);
62 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
63 const ::com::sun::star::uno::Any& aValue )
64 throw(::com::sun::star::beans::UnknownPropertyException,
65 ::com::sun::star::beans::PropertyVetoException,
66 ::com::sun::star::lang::IllegalArgumentException,
67 ::com::sun::star::lang::WrappedTargetException,
68 ::com::sun::star::uno::RuntimeException);
69 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
70 const ::rtl::OUString& PropertyName )
71 throw(::com::sun::star::beans::UnknownPropertyException,
72 ::com::sun::star::lang::WrappedTargetException,
73 ::com::sun::star::uno::RuntimeException);
74 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
75 const ::com::sun::star::uno::Reference<
76 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
77 throw(::com::sun::star::beans::UnknownPropertyException,
78 ::com::sun::star::lang::WrappedTargetException,
79 ::com::sun::star::uno::RuntimeException);
80 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
81 const ::com::sun::star::uno::Reference<
82 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
83 throw(::com::sun::star::beans::UnknownPropertyException,
84 ::com::sun::star::lang::WrappedTargetException,
85 ::com::sun::star::uno::RuntimeException);
86 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
87 const ::com::sun::star::uno::Reference<
88 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
89 throw(::com::sun::star::beans::UnknownPropertyException,
90 ::com::sun::star::lang::WrappedTargetException,
91 ::com::sun::star::uno::RuntimeException);
92 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
93 const ::com::sun::star::uno::Reference<
94 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
95 throw(::com::sun::star::beans::UnknownPropertyException,
96 ::com::sun::star::lang::WrappedTargetException,
97 ::com::sun::star::uno::RuntimeException);
99 // XServiceInfo
100 virtual ::rtl::OUString SAL_CALL getImplementationName()
101 throw(::com::sun::star::uno::RuntimeException);
102 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
103 throw(::com::sun::star::uno::RuntimeException);
104 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
105 throw(::com::sun::star::uno::RuntimeException);
109 #endif