xref: /AOO41X/main/sc/inc/fmtuno.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef SC_FMTUNO_HXX
29*cdf0e10cSrcweir #define SC_FMTUNO_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include "address.hxx"
32*cdf0e10cSrcweir #include "conditio.hxx"
33*cdf0e10cSrcweir #include <formula/grammar.hxx>
34*cdf0e10cSrcweir #include <tools/list.hxx>
35*cdf0e10cSrcweir #include <svl/itemprop.hxx>
36*cdf0e10cSrcweir #include <com/sun/star/sheet/XSheetConditionalEntries.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/sheet/XSheetCondition.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/container/XEnumerationAccess.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
44*cdf0e10cSrcweir 
45*cdf0e10cSrcweir #include <com/sun/star/sheet/XMultiFormulaTokens.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/sheet/FormulaToken.hpp>
47*cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx>
48*cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>
49*cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx>
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir class ScDocument;
53*cdf0e10cSrcweir class ScTableConditionalEntry;
54*cdf0e10cSrcweir class ScConditionalFormat;
55*cdf0e10cSrcweir class ScValidationData;
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir struct ScCondFormatEntryItem
59*cdf0e10cSrcweir {
60*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > maTokens1;
61*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > maTokens2;
62*cdf0e10cSrcweir     String              maExpr1;
63*cdf0e10cSrcweir     String              maExpr2;
64*cdf0e10cSrcweir     String              maExprNmsp1;
65*cdf0e10cSrcweir     String              maExprNmsp2;
66*cdf0e10cSrcweir     String              maPosStr;  // formula position as text
67*cdf0e10cSrcweir     String              maStyle;   // display name as stored in ScStyleSheet
68*cdf0e10cSrcweir     ScAddress           maPos;
69*cdf0e10cSrcweir     formula::FormulaGrammar::Grammar meGrammar1; // grammar used with maExpr1
70*cdf0e10cSrcweir     formula::FormulaGrammar::Grammar meGrammar2; // grammar used with maExpr2
71*cdf0e10cSrcweir     ScConditionMode     meMode;
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir     // Make sure the grammar is initialized for API calls.
74*cdf0e10cSrcweir     ScCondFormatEntryItem();
75*cdf0e10cSrcweir };
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir class ScTableConditionalFormat : public cppu::WeakImplHelper5<
78*cdf0e10cSrcweir 							com::sun::star::sheet::XSheetConditionalEntries,
79*cdf0e10cSrcweir 							com::sun::star::container::XNameAccess,
80*cdf0e10cSrcweir 							com::sun::star::container::XEnumerationAccess,
81*cdf0e10cSrcweir 							com::sun::star::lang::XUnoTunnel,
82*cdf0e10cSrcweir 							com::sun::star::lang::XServiceInfo >
83*cdf0e10cSrcweir {
84*cdf0e10cSrcweir private:
85*cdf0e10cSrcweir 	List	aEntries;
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir 	ScTableConditionalEntry*	GetObjectByIndex_Impl(sal_uInt16 nIndex) const;
88*cdf0e10cSrcweir     void                        AddEntry_Impl(const ScCondFormatEntryItem& aEntry);
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	ScTableConditionalFormat(); // disable
91*cdf0e10cSrcweir public:
92*cdf0e10cSrcweir 							ScTableConditionalFormat(ScDocument* pDoc, sal_uLong nKey,
93*cdf0e10cSrcweir                                 formula::FormulaGrammar::Grammar eGrammar);
94*cdf0e10cSrcweir 	virtual					~ScTableConditionalFormat();
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir     void                    FillFormat( ScConditionalFormat& rFormat, ScDocument* pDoc,
97*cdf0e10cSrcweir                                 formula::FormulaGrammar::Grammar eGrammar) const;
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir 							// XSheetConditionalEntries
100*cdf0e10cSrcweir 	virtual void SAL_CALL	addNew( const ::com::sun::star::uno::Sequence<
101*cdf0e10cSrcweir 									::com::sun::star::beans::PropertyValue >& aConditionalEntry )
102*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
103*cdf0e10cSrcweir 	virtual void SAL_CALL	removeByIndex( sal_Int32 nIndex )
104*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
105*cdf0e10cSrcweir 	virtual void SAL_CALL	clear() throw(::com::sun::star::uno::RuntimeException);
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir 							// XIndexAccess
108*cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
109*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
110*cdf0e10cSrcweir 								throw(::com::sun::star::lang::IndexOutOfBoundsException,
111*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
112*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 							// XNameAccess
115*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
116*cdf0e10cSrcweir 								throw(::com::sun::star::container::NoSuchElementException,
117*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
118*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
119*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
120*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
121*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
122*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir 							// XEnumerationAccess
125*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
126*cdf0e10cSrcweir 							createEnumeration() throw(::com::sun::star::uno::RuntimeException);
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir 							// XElementAccess
129*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
130*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
131*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir 							// XUnoTunnel
134*cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
135*cdf0e10cSrcweir 									sal_Int8 >& aIdentifier )
136*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir 	static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
139*cdf0e10cSrcweir 	static ScTableConditionalFormat* getImplementation( const com::sun::star::uno::Reference<
140*cdf0e10cSrcweir 									com::sun::star::sheet::XSheetConditionalEntries> xObj );
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir 							// XServiceInfo
143*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
144*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
145*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
146*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
147*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
148*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
149*cdf0e10cSrcweir };
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir 
153*cdf0e10cSrcweir class ScTableConditionalEntry : public cppu::WeakImplHelper3<
154*cdf0e10cSrcweir 							com::sun::star::sheet::XSheetCondition,
155*cdf0e10cSrcweir 							com::sun::star::sheet::XSheetConditionalEntry,
156*cdf0e10cSrcweir 							com::sun::star::lang::XServiceInfo >
157*cdf0e10cSrcweir {
158*cdf0e10cSrcweir private:
159*cdf0e10cSrcweir     ScCondFormatEntryItem       aData;
160*cdf0e10cSrcweir 
161*cdf0e10cSrcweir 	ScTableConditionalEntry(); // disabled
162*cdf0e10cSrcweir public:
163*cdf0e10cSrcweir                             ScTableConditionalEntry(const ScCondFormatEntryItem& aItem);
164*cdf0e10cSrcweir 	virtual					~ScTableConditionalEntry();
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir     void                    GetData(ScCondFormatEntryItem& rData) const;
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir 							// XSheetCondition
169*cdf0e10cSrcweir 	virtual ::com::sun::star::sheet::ConditionOperator SAL_CALL getOperator()
170*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
171*cdf0e10cSrcweir 	virtual void SAL_CALL	setOperator( ::com::sun::star::sheet::ConditionOperator nOperator )
172*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
173*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getFormula1() throw(::com::sun::star::uno::RuntimeException);
174*cdf0e10cSrcweir 	virtual void SAL_CALL	setFormula1( const ::rtl::OUString& aFormula1 )
175*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
176*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getFormula2() throw(::com::sun::star::uno::RuntimeException);
177*cdf0e10cSrcweir 	virtual void SAL_CALL	setFormula2( const ::rtl::OUString& aFormula2 )
178*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
179*cdf0e10cSrcweir 	virtual ::com::sun::star::table::CellAddress SAL_CALL getSourcePosition()
180*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
181*cdf0e10cSrcweir 	virtual void SAL_CALL setSourcePosition( const ::com::sun::star::table::CellAddress& aSourcePosition )
182*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir 							// XSheetConditionalEntry
185*cdf0e10cSrcweir 	virtual ::rtl::OUString	SAL_CALL getStyleName() throw(::com::sun::star::uno::RuntimeException);
186*cdf0e10cSrcweir 	virtual void SAL_CALL	setStyleName( const ::rtl::OUString& aStyleName )
187*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 							// XServiceInfo
190*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
191*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
192*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
193*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
194*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
195*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
196*cdf0e10cSrcweir };
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir class ScTableValidationObj : public cppu::WeakImplHelper5<
201*cdf0e10cSrcweir 							com::sun::star::sheet::XSheetCondition,
202*cdf0e10cSrcweir                             com::sun::star::sheet::XMultiFormulaTokens,
203*cdf0e10cSrcweir 							com::sun::star::beans::XPropertySet,
204*cdf0e10cSrcweir 							com::sun::star::lang::XUnoTunnel,
205*cdf0e10cSrcweir 							com::sun::star::lang::XServiceInfo >
206*cdf0e10cSrcweir {
207*cdf0e10cSrcweir private:
208*cdf0e10cSrcweir 	SfxItemPropertySet	aPropSet;
209*cdf0e10cSrcweir 	sal_uInt16				nMode;			// enum ScConditionMode
210*cdf0e10cSrcweir 	String				aExpr1;
211*cdf0e10cSrcweir 	String				aExpr2;
212*cdf0e10cSrcweir     String              maExprNmsp1;
213*cdf0e10cSrcweir     String              maExprNmsp2;
214*cdf0e10cSrcweir     formula::FormulaGrammar::Grammar  meGrammar1;      // grammar used with aExpr1 and aExpr2
215*cdf0e10cSrcweir     formula::FormulaGrammar::Grammar  meGrammar2;      // grammar used with aExpr1 and aExpr2
216*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > aTokens1;
217*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > aTokens2;
218*cdf0e10cSrcweir 	ScAddress			aSrcPos;
219*cdf0e10cSrcweir     String              aPosString;     // formula position as text
220*cdf0e10cSrcweir 	sal_uInt16				nValMode;		// enum ScValidationMode
221*cdf0e10cSrcweir 	sal_Bool				bIgnoreBlank;
222*cdf0e10cSrcweir     sal_Int16           nShowList;
223*cdf0e10cSrcweir 	sal_Bool				bShowInput;
224*cdf0e10cSrcweir 	String				aInputTitle;
225*cdf0e10cSrcweir 	String				aInputMessage;
226*cdf0e10cSrcweir 	sal_Bool				bShowError;
227*cdf0e10cSrcweir 	sal_uInt16				nErrorStyle;	// enum ScValidErrorStyle
228*cdf0e10cSrcweir 	String				aErrorTitle;
229*cdf0e10cSrcweir 	String				aErrorMessage;
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir 	void					ClearData_Impl();
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir 	ScTableValidationObj(); // disabled
234*cdf0e10cSrcweir public:
235*cdf0e10cSrcweir 							ScTableValidationObj(ScDocument* pDoc, sal_uLong nKey,
236*cdf0e10cSrcweir 												const formula::FormulaGrammar::Grammar eGrammar);
237*cdf0e10cSrcweir 	virtual					~ScTableValidationObj();
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir 	ScValidationData*		CreateValidationData( ScDocument* pDoc,
240*cdf0e10cSrcweir 												formula::FormulaGrammar::Grammar eGrammar ) const;
241*cdf0e10cSrcweir 
242*cdf0e10cSrcweir 							// XSheetCondition
243*cdf0e10cSrcweir 	virtual ::com::sun::star::sheet::ConditionOperator SAL_CALL getOperator()
244*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
245*cdf0e10cSrcweir 	virtual void SAL_CALL	setOperator( ::com::sun::star::sheet::ConditionOperator nOperator )
246*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
247*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getFormula1() throw(::com::sun::star::uno::RuntimeException);
248*cdf0e10cSrcweir 	virtual void SAL_CALL	setFormula1( const ::rtl::OUString& aFormula1 )
249*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
250*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getFormula2() throw(::com::sun::star::uno::RuntimeException);
251*cdf0e10cSrcweir 	virtual void SAL_CALL	setFormula2( const ::rtl::OUString& aFormula2 )
252*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
253*cdf0e10cSrcweir 	virtual ::com::sun::star::table::CellAddress SAL_CALL getSourcePosition()
254*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
255*cdf0e10cSrcweir 	virtual void SAL_CALL setSourcePosition( const ::com::sun::star::table::CellAddress& aSourcePosition )
256*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
257*cdf0e10cSrcweir 
258*cdf0e10cSrcweir                             // XMultiFormulaTokens
259*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken >
260*cdf0e10cSrcweir                             SAL_CALL getTokens( sal_Int32 nIndex )
261*cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException,::com::sun::star::lang::IndexOutOfBoundsException);
262*cdf0e10cSrcweir     virtual void SAL_CALL setTokens( sal_Int32 nIndex,
263*cdf0e10cSrcweir                                      const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken >& aTokens )
264*cdf0e10cSrcweir                                 throw(::com::sun::star::uno::RuntimeException,::com::sun::star::lang::IndexOutOfBoundsException);
265*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
266*cdf0e10cSrcweir 
267*cdf0e10cSrcweir 							// XPropertySet
268*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
269*cdf0e10cSrcweir 							SAL_CALL getPropertySetInfo()
270*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
271*cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertyValue( const ::rtl::OUString& aPropertyName,
272*cdf0e10cSrcweir 									const ::com::sun::star::uno::Any& aValue )
273*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
274*cdf0e10cSrcweir 									::com::sun::star::beans::PropertyVetoException,
275*cdf0e10cSrcweir 									::com::sun::star::lang::IllegalArgumentException,
276*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
277*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
278*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
279*cdf0e10cSrcweir 									const ::rtl::OUString& PropertyName )
280*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
281*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
282*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
283*cdf0e10cSrcweir 	virtual void SAL_CALL	addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
284*cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
285*cdf0e10cSrcweir 										::com::sun::star::beans::XPropertyChangeListener >& xListener )
286*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
287*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
288*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
289*cdf0e10cSrcweir 	virtual void SAL_CALL	removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
290*cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
291*cdf0e10cSrcweir 										::com::sun::star::beans::XPropertyChangeListener >& aListener )
292*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
293*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
294*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
295*cdf0e10cSrcweir 	virtual void SAL_CALL	addVetoableChangeListener( const ::rtl::OUString& PropertyName,
296*cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
297*cdf0e10cSrcweir 										::com::sun::star::beans::XVetoableChangeListener >& aListener )
298*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
299*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
300*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
301*cdf0e10cSrcweir 	virtual void SAL_CALL	removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
302*cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
303*cdf0e10cSrcweir 										::com::sun::star::beans::XVetoableChangeListener >& aListener )
304*cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
305*cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
306*cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir 							// XUnoTunnel
309*cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
310*cdf0e10cSrcweir 									sal_Int8 >& aIdentifier )
311*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
312*cdf0e10cSrcweir 
313*cdf0e10cSrcweir 	static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
314*cdf0e10cSrcweir 	static ScTableValidationObj* getImplementation( const com::sun::star::uno::Reference<
315*cdf0e10cSrcweir 									com::sun::star::beans::XPropertySet> xObj );
316*cdf0e10cSrcweir 
317*cdf0e10cSrcweir 							// XServiceInfo
318*cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
319*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
320*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
321*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
322*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
323*cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
324*cdf0e10cSrcweir };
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir 
327*cdf0e10cSrcweir #endif
328*cdf0e10cSrcweir 
329