1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoiface.hxx,v $
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 _SVT_UNOIFACE_HXX
32 #define _SVT_UNOIFACE_HXX
34 #include <toolkit/awt/vclxwindow.hxx>
35 #include <toolkit/awt/vclxwindows.hxx>
36 #include <toolkit/helper/listenermultiplexer.hxx>
38 #include <cppuhelper/typeprovider.hxx>
40 #include <com/sun/star/awt/XTextArea.hpp>
41 #include <com/sun/star/awt/XTextComponent.hpp>
42 #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
43 #include <svtools/svmedit.hxx>
44 #include <svtools/fmtfield.hxx>
45 #include <com/sun/star/awt/XImageConsumer.hpp>
48 #include <comphelper/uno3.hxx>
49 #include <cppuhelper/implbase2.hxx>
50 #include <cppuhelper/implbase3.hxx>
51 #include <com/sun/star/awt/XItemEventBroadcaster.hpp>
54 namespace com
{ namespace sun
{ namespace star
{ namespace util
{
55 class XNumberFormatsSupplier
;
58 class SvNumberFormatsSupplierObj
;
60 // ----------------------------------------------------
61 // class VCLXMultiLineEdit
62 // ----------------------------------------------------
63 class VCLXMultiLineEdit
: public ::com::sun::star::awt::XTextComponent
,
64 public ::com::sun::star::awt::XTextArea
,
65 public ::com::sun::star::awt::XTextLayoutConstrains
,
69 TextListenerMultiplexer maTextListeners
;
70 LineEnd meLineEndType
;
73 void ProcessWindowEvent( const VclWindowEvent
& rVclWindowEvent
);
79 // ::com::sun::star::uno::XInterface
80 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
81 void SAL_CALL
acquire() throw() { VCLXWindow::acquire(); }
82 void SAL_CALL
release() throw() { VCLXWindow::release(); }
84 // ::com::sun::star::lang::XTypeProvider
85 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
);
86 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
);
88 // ::com::sun::star::awt::XTextComponent
89 void SAL_CALL
addTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
);
90 void SAL_CALL
removeTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
);
91 void SAL_CALL
setText( const ::rtl::OUString
& aText
) throw(::com::sun::star::uno::RuntimeException
);
92 void SAL_CALL
insertText( const ::com::sun::star::awt::Selection
& Sel
, const ::rtl::OUString
& Text
) throw(::com::sun::star::uno::RuntimeException
);
93 ::rtl::OUString SAL_CALL
getText( ) throw(::com::sun::star::uno::RuntimeException
);
94 ::rtl::OUString SAL_CALL
getSelectedText( ) throw(::com::sun::star::uno::RuntimeException
);
95 void SAL_CALL
setSelection( const ::com::sun::star::awt::Selection
& aSelection
) throw(::com::sun::star::uno::RuntimeException
);
96 ::com::sun::star::awt::Selection SAL_CALL
getSelection( ) throw(::com::sun::star::uno::RuntimeException
);
97 sal_Bool SAL_CALL
isEditable( ) throw(::com::sun::star::uno::RuntimeException
);
98 void SAL_CALL
setEditable( sal_Bool bEditable
) throw(::com::sun::star::uno::RuntimeException
);
99 void SAL_CALL
setMaxTextLen( sal_Int16 nLen
) throw(::com::sun::star::uno::RuntimeException
);
100 sal_Int16 SAL_CALL
getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException
);
103 ::rtl::OUString SAL_CALL
getTextLines( ) throw(::com::sun::star::uno::RuntimeException
);
105 // ::com::sun::star::awt::XLayoutConstrains
106 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException
);
107 ::com::sun::star::awt::Size SAL_CALL
getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException
);
108 ::com::sun::star::awt::Size SAL_CALL
calcAdjustedSize( const ::com::sun::star::awt::Size
& aNewSize
) throw(::com::sun::star::uno::RuntimeException
);
110 // ::com::sun::star::awt::XTextLayoutConstrains
111 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( sal_Int16 nCols
, sal_Int16 nLines
) throw(::com::sun::star::uno::RuntimeException
);
112 void SAL_CALL
getColumnsAndLines( sal_Int16
& nCols
, sal_Int16
& nLines
) throw(::com::sun::star::uno::RuntimeException
);
114 // ::com::sun::star::awt::XVclWindowPeer
115 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
116 ::com::sun::star::uno::Any SAL_CALL
getProperty( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
118 // ::com::sun::star::awt::XWindow
119 void SAL_CALL
setFocus( ) throw(::com::sun::star::uno::RuntimeException
);
121 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
122 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
126 // ----------------------------------------------------
127 // class VCLXFileControl
128 // ----------------------------------------------------
129 class VCLXFileControl
: ::com::sun::star::awt::XTextComponent
, public ::com::sun::star::awt::XTextLayoutConstrains
, public VCLXWindow
132 DECL_LINK( ModifyHdl
, Edit
* );
133 TextListenerMultiplexer maTextListeners
;
139 void SetWindow( Window
* pWindow
);
141 // ::com::sun::star::uno::XInterface
142 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
143 void SAL_CALL
acquire() throw() { VCLXWindow::acquire(); }
144 void SAL_CALL
release() throw() { VCLXWindow::release(); }
146 // ::com::sun::star::lang::XTypeProvider
147 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
);
148 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
);
150 // ::com::sun::star::awt::XTextComponent
151 void SAL_CALL
addTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
);
152 void SAL_CALL
removeTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
);
153 void SAL_CALL
setText( const ::rtl::OUString
& aText
) throw(::com::sun::star::uno::RuntimeException
);
154 void SAL_CALL
insertText( const ::com::sun::star::awt::Selection
& Sel
, const ::rtl::OUString
& Text
) throw(::com::sun::star::uno::RuntimeException
);
155 ::rtl::OUString SAL_CALL
getText( ) throw(::com::sun::star::uno::RuntimeException
);
156 ::rtl::OUString SAL_CALL
getSelectedText( ) throw(::com::sun::star::uno::RuntimeException
);
157 void SAL_CALL
setSelection( const ::com::sun::star::awt::Selection
& aSelection
) throw(::com::sun::star::uno::RuntimeException
);
158 ::com::sun::star::awt::Selection SAL_CALL
getSelection( ) throw(::com::sun::star::uno::RuntimeException
);
159 sal_Bool SAL_CALL
isEditable( ) throw(::com::sun::star::uno::RuntimeException
);
160 void SAL_CALL
setEditable( sal_Bool bEditable
) throw(::com::sun::star::uno::RuntimeException
);
161 void SAL_CALL
setMaxTextLen( sal_Int16 nLen
) throw(::com::sun::star::uno::RuntimeException
);
162 sal_Int16 SAL_CALL
getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException
);
164 // ::com::sun::star::awt::XLayoutConstrains
165 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException
);
166 ::com::sun::star::awt::Size SAL_CALL
getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException
);
167 ::com::sun::star::awt::Size SAL_CALL
calcAdjustedSize( const ::com::sun::star::awt::Size
& aNewSize
) throw(::com::sun::star::uno::RuntimeException
);
169 // ::com::sun::star::awt::XTextLayoutConstrains
170 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( sal_Int16 nCols
, sal_Int16 nLines
) throw(::com::sun::star::uno::RuntimeException
);
171 void SAL_CALL
getColumnsAndLines( sal_Int16
& nCols
, sal_Int16
& nLines
) throw(::com::sun::star::uno::RuntimeException
);
173 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
175 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
176 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
179 // ----------------------------------------------------
180 // class SVTXFormattedField
181 // ----------------------------------------------------
183 class SVTXFormattedField
: public VCLXSpinField
186 SvNumberFormatsSupplierObj
* m_pCurrentSupplier
;
187 sal_Bool bIsStandardSupplier
;
189 sal_Int32 nKeyToSetDelayed
;
191 FormattedField
* GetFormattedField() const { return (FormattedField
*)GetWindow(); }
194 SVTXFormattedField();
195 ~SVTXFormattedField();
197 // ::com::sun::star::awt::XVclWindowPeer
198 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
199 ::com::sun::star::uno::Any SAL_CALL
getProperty( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
202 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatsSupplier
> getFormatsSupplier(void) const;
203 void setFormatsSupplier(const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatsSupplier
> & xSupplier
);
204 sal_Int32
getFormatKey(void) const;
205 void setFormatKey(sal_Int32 nKey
);
207 void SetValue(const ::com::sun::star::uno::Any
& rValue
);
208 ::com::sun::star::uno::Any
GetValue();
210 void SetTreatAsNumber(sal_Bool bSet
);
211 sal_Bool
GetTreatAsNumber();
213 void SetDefaultValue(const ::com::sun::star::uno::Any
& rValue
);
214 ::com::sun::star::uno::Any
GetDefaultValue();
216 void SetMinValue(const ::com::sun::star::uno::Any
& rValue
);
217 ::com::sun::star::uno::Any
GetMinValue();
219 void SetMaxValue(const ::com::sun::star::uno::Any
& rValue
);
220 ::com::sun::star::uno::Any
GetMaxValue();
222 void NotifyTextListeners();
223 ::com::sun::star::uno::Any
convertEffectiveValue(const ::com::sun::star::uno::Any
& rValue
);
225 virtual void SetWindow(Window
* _pWindow
);
227 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
228 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
233 // ----------------------------------------------------
235 // ----------------------------------------------------
246 ::rtl::OUString Label
;
249 typedef ::cppu::ImplInheritanceHelper3
< VCLXImageConsumer
250 , ::com::sun::star::container::XContainerListener
251 , ::com::sun::star::beans::XPropertyChangeListener
252 , ::com::sun::star::awt::XItemEventBroadcaster
254 class SVTXRoadmap
: public SVTXRoadmap_Base
259 ItemListenerMultiplexer maItemListeners
;
261 RMItemData CurRMItemData
;
262 RMItemData
GetRMItemData( const ::com::sun::star::container::ContainerEvent
& _rEvent
);
265 ::svt::ORoadmap
* GetRoadmap() const { return (::svt::ORoadmap
*)GetWindow(); }
266 void ProcessWindowEvent( const VclWindowEvent
& rVclWindowEvent
);
273 void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw(::com::sun::star::uno::RuntimeException
) { VCLXWindow::disposing( Source
); }
275 // ::com::sun::star::awt::XVclWindowPeer
276 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
278 ::com::sun::star::uno::Any SAL_CALL
getProperty( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
280 // XContainerListener
281 void SAL_CALL
elementInserted( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
);
282 void SAL_CALL
elementRemoved( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
);
283 void SAL_CALL
elementReplaced( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
);
285 // XItemEventBroadcaster
286 virtual void SAL_CALL
addItemListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XItemListener
>& l
) throw (::com::sun::star::uno::RuntimeException
);
287 virtual void SAL_CALL
removeItemListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XItemListener
>& l
) throw (::com::sun::star::uno::RuntimeException
);
289 // XPropertyChangeListener
290 virtual void SAL_CALL
propertyChange( const ::com::sun::star::beans::PropertyChangeEvent
& evt
) throw (::com::sun::star::uno::RuntimeException
);
294 // VCLXImageConsumer overridables
295 virtual void ImplSetNewImage();
297 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
298 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
303 // ----------------------------------------------------
304 // class SVTXNumericField
305 // ----------------------------------------------------
306 class SVTXNumericField
: public ::com::sun::star::awt::XNumericField
, public SVTXFormattedField
312 // ::com::sun::star::uno::XInterface
313 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
314 void SAL_CALL
acquire() throw() { SVTXFormattedField::acquire(); }
315 void SAL_CALL
release() throw() { SVTXFormattedField::release(); }
317 // ::com::sun::star::lang::XTypeProvider
318 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
);
319 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
);
321 // ::com::sun::star::awt::XNumericField
322 void SAL_CALL
setValue( double Value
) throw(::com::sun::star::uno::RuntimeException
);
323 double SAL_CALL
getValue( ) throw(::com::sun::star::uno::RuntimeException
);
324 void SAL_CALL
setMin( double Value
) throw(::com::sun::star::uno::RuntimeException
);
325 double SAL_CALL
getMin( ) throw(::com::sun::star::uno::RuntimeException
);
326 void SAL_CALL
setMax( double Value
) throw(::com::sun::star::uno::RuntimeException
);
327 double SAL_CALL
getMax( ) throw(::com::sun::star::uno::RuntimeException
);
328 void SAL_CALL
setFirst( double Value
) throw(::com::sun::star::uno::RuntimeException
);
329 double SAL_CALL
getFirst( ) throw(::com::sun::star::uno::RuntimeException
);
330 void SAL_CALL
setLast( double Value
) throw(::com::sun::star::uno::RuntimeException
);
331 double SAL_CALL
getLast( ) throw(::com::sun::star::uno::RuntimeException
);
332 void SAL_CALL
setSpinSize( double Value
) throw(::com::sun::star::uno::RuntimeException
);
333 double SAL_CALL
getSpinSize( ) throw(::com::sun::star::uno::RuntimeException
);
334 void SAL_CALL
setDecimalDigits( sal_Int16 nDigits
) throw(::com::sun::star::uno::RuntimeException
);
335 sal_Int16 SAL_CALL
getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException
);
336 void SAL_CALL
setStrictFormat( sal_Bool bStrict
) throw(::com::sun::star::uno::RuntimeException
);
337 sal_Bool SAL_CALL
isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException
);
339 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
340 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
343 \f// ----------------------------------------------------
344 // class VCLXCurrencyField
345 // ----------------------------------------------------
346 class SVTXCurrencyField
: public ::com::sun::star::awt::XCurrencyField
, public SVTXFormattedField
350 ~SVTXCurrencyField();
352 // ::com::sun::star::uno::XInterface
353 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
354 void SAL_CALL
acquire() throw() { SVTXFormattedField::acquire(); }
355 void SAL_CALL
release() throw() { SVTXFormattedField::release(); }
357 // ::com::sun::star::lang::XTypeProvider
358 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
);
359 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
);
361 // ::com::sun::star::awt::XVclWindowPeer
362 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
363 ::com::sun::star::uno::Any SAL_CALL
getProperty( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
365 // ::com::sun::star::awt::XCurrencyField
366 void SAL_CALL
setValue( double Value
) throw(::com::sun::star::uno::RuntimeException
);
367 double SAL_CALL
getValue( ) throw(::com::sun::star::uno::RuntimeException
);
368 void SAL_CALL
setMin( double Value
) throw(::com::sun::star::uno::RuntimeException
);
369 double SAL_CALL
getMin( ) throw(::com::sun::star::uno::RuntimeException
);
370 void SAL_CALL
setMax( double Value
) throw(::com::sun::star::uno::RuntimeException
);
371 double SAL_CALL
getMax( ) throw(::com::sun::star::uno::RuntimeException
);
372 void SAL_CALL
setFirst( double Value
) throw(::com::sun::star::uno::RuntimeException
);
373 double SAL_CALL
getFirst( ) throw(::com::sun::star::uno::RuntimeException
);
374 void SAL_CALL
setLast( double Value
) throw(::com::sun::star::uno::RuntimeException
);
375 double SAL_CALL
getLast( ) throw(::com::sun::star::uno::RuntimeException
);
376 void SAL_CALL
setSpinSize( double Value
) throw(::com::sun::star::uno::RuntimeException
);
377 double SAL_CALL
getSpinSize( ) throw(::com::sun::star::uno::RuntimeException
);
378 void SAL_CALL
setDecimalDigits( sal_Int16 nDigits
) throw(::com::sun::star::uno::RuntimeException
);
379 sal_Int16 SAL_CALL
getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException
);
380 void SAL_CALL
setStrictFormat( sal_Bool bStrict
) throw(::com::sun::star::uno::RuntimeException
);
381 sal_Bool SAL_CALL
isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException
);
383 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
384 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
387 // ----------------------------------------------------
388 // class VCLXProgressBar
389 // ----------------------------------------------------
390 class VCLXProgressBar
: public ::com::sun::star::awt::XProgressBar
,
395 sal_Int32 m_nValueMin
;
396 sal_Int32 m_nValueMax
;
399 void ImplUpdateValue();
405 // ::com::sun::star::uno::XInterface
406 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
);
407 void SAL_CALL
acquire() throw() { VCLXWindow::acquire(); }
408 void SAL_CALL
release() throw() { VCLXWindow::release(); }
410 // ::com::sun::star::lang::XTypeProvider
411 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
);
412 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
);
414 // ::com::sun::star::awt::XProgressBar
415 void SAL_CALL
setForegroundColor( sal_Int32 nColor
) throw(::com::sun::star::uno::RuntimeException
);
416 void SAL_CALL
setBackgroundColor( sal_Int32 nColor
) throw(::com::sun::star::uno::RuntimeException
);
417 void SAL_CALL
setValue( sal_Int32 nValue
) throw(::com::sun::star::uno::RuntimeException
);
418 void SAL_CALL
setRange( sal_Int32 nMin
, sal_Int32 nMax
) throw(::com::sun::star::uno::RuntimeException
);
419 sal_Int32 SAL_CALL
getValue() throw(::com::sun::star::uno::RuntimeException
);
421 // ::com::sun::star::awt::VclWindowPeer
422 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
423 ::com::sun::star::uno::Any SAL_CALL
getProperty( const ::rtl::OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
);
425 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
426 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
429 // ----------------------------------------------------
430 // class SVTXDateField
431 // ----------------------------------------------------
432 class SVTXDateField
: public VCLXDateField
438 // ::com::sun::star::awt::VclWindowPeer
439 void SAL_CALL
setProperty( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
441 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
442 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) { return ImplGetPropertyIds( aIds
); }
445 #endif // _SVT_UNOIFACE_HXX