1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
21 #define INCLUDED_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
23 #include <toolkit/awt/vclxwindow.hxx>
24 #include <toolkit/awt/vclxwindows.hxx>
25 #include <toolkit/helper/listenermultiplexer.hxx>
27 #include <cppuhelper/typeprovider.hxx>
29 #include <com/sun/star/awt/XTextArea.hpp>
30 #include <com/sun/star/awt/XTextComponent.hpp>
31 #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
32 #include <svtools/svmedit.hxx>
33 #include <svtools/fmtfield.hxx>
36 #include <comphelper/uno3.hxx>
37 #include <cppuhelper/implbase2.hxx>
38 #include <cppuhelper/implbase3.hxx>
39 #include <com/sun/star/awt/XItemEventBroadcaster.hpp>
42 namespace com
{ namespace sun
{ namespace star
{ namespace util
{
43 class XNumberFormatsSupplier
;
46 class SvNumberFormatsSupplierObj
;
49 // class VCLXMultiLineEdit
51 class VCLXMultiLineEdit
: public ::com::sun::star::awt::XTextComponent
,
52 public ::com::sun::star::awt::XTextArea
,
53 public ::com::sun::star::awt::XTextLayoutConstrains
,
57 TextListenerMultiplexer maTextListeners
;
58 LineEnd meLineEndType
;
61 void ProcessWindowEvent( const VclWindowEvent
& rVclWindowEvent
) SAL_OVERRIDE
;
65 virtual ~VCLXMultiLineEdit();
67 // ::com::sun::star::uno::XInterface
68 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
69 void SAL_CALL
acquire() throw() SAL_OVERRIDE
{ VCLXWindow::acquire(); }
70 void SAL_CALL
release() throw() SAL_OVERRIDE
{ VCLXWindow::release(); }
72 // ::com::sun::star::lang::XTypeProvider
73 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
74 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
76 // ::com::sun::star::awt::XTextComponent
77 void SAL_CALL
addTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
78 void SAL_CALL
removeTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
79 void SAL_CALL
setText( const OUString
& aText
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
80 void SAL_CALL
insertText( const ::com::sun::star::awt::Selection
& Sel
, const OUString
& Text
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
81 OUString SAL_CALL
getText( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
82 OUString SAL_CALL
getSelectedText( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
83 void SAL_CALL
setSelection( const ::com::sun::star::awt::Selection
& aSelection
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
84 ::com::sun::star::awt::Selection SAL_CALL
getSelection( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
85 sal_Bool SAL_CALL
isEditable( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
86 void SAL_CALL
setEditable( sal_Bool bEditable
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
87 void SAL_CALL
setMaxTextLen( sal_Int16 nLen
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
88 sal_Int16 SAL_CALL
getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
91 OUString SAL_CALL
getTextLines( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
93 // ::com::sun::star::awt::XLayoutConstrains
94 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
95 ::com::sun::star::awt::Size SAL_CALL
getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
96 ::com::sun::star::awt::Size SAL_CALL
calcAdjustedSize( const ::com::sun::star::awt::Size
& aNewSize
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
98 // ::com::sun::star::awt::XTextLayoutConstrains
99 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( sal_Int16 nCols
, sal_Int16 nLines
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
100 void SAL_CALL
getColumnsAndLines( sal_Int16
& nCols
, sal_Int16
& nLines
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
102 // ::com::sun::star::awt::XVclWindowPeer
103 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
104 ::com::sun::star::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
106 // ::com::sun::star::awt::XWindow
107 void SAL_CALL
setFocus( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
109 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
110 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
115 // class VCLXFileControl
117 class VCLXFileControl
: ::com::sun::star::awt::XTextComponent
, public ::com::sun::star::awt::XTextLayoutConstrains
, public VCLXWindow
120 DECL_LINK(ModifyHdl
, void *);
121 TextListenerMultiplexer maTextListeners
;
125 virtual ~VCLXFileControl();
127 virtual void SetWindow( const VclPtr
< vcl::Window
> &pWindow
) SAL_OVERRIDE
;
129 // ::com::sun::star::uno::XInterface
130 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
131 void SAL_CALL
acquire() throw() SAL_OVERRIDE
{ VCLXWindow::acquire(); }
132 void SAL_CALL
release() throw() SAL_OVERRIDE
{ VCLXWindow::release(); }
134 // ::com::sun::star::lang::XTypeProvider
135 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
136 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
138 // ::com::sun::star::awt::XTextComponent
139 void SAL_CALL
addTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
140 void SAL_CALL
removeTextListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XTextListener
>& l
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
141 void SAL_CALL
setText( const OUString
& aText
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
142 void SAL_CALL
insertText( const ::com::sun::star::awt::Selection
& Sel
, const OUString
& Text
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
143 OUString SAL_CALL
getText( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
144 OUString SAL_CALL
getSelectedText( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
145 void SAL_CALL
setSelection( const ::com::sun::star::awt::Selection
& aSelection
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
146 ::com::sun::star::awt::Selection SAL_CALL
getSelection( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
147 sal_Bool SAL_CALL
isEditable( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
148 void SAL_CALL
setEditable( sal_Bool bEditable
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
149 void SAL_CALL
setMaxTextLen( sal_Int16 nLen
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
150 sal_Int16 SAL_CALL
getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
152 // ::com::sun::star::awt::XLayoutConstrains
153 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
154 ::com::sun::star::awt::Size SAL_CALL
getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
155 ::com::sun::star::awt::Size SAL_CALL
calcAdjustedSize( const ::com::sun::star::awt::Size
& aNewSize
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
157 // ::com::sun::star::awt::XTextLayoutConstrains
158 ::com::sun::star::awt::Size SAL_CALL
getMinimumSize( sal_Int16 nCols
, sal_Int16 nLines
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
159 void SAL_CALL
getColumnsAndLines( sal_Int16
& nCols
, sal_Int16
& nLines
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
161 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
163 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
164 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
168 // class SVTXFormattedField
171 class SVTXFormattedField
: public VCLXSpinField
174 SvNumberFormatsSupplierObj
* m_pCurrentSupplier
;
175 bool bIsStandardSupplier
;
177 sal_Int32 nKeyToSetDelayed
;
180 SVTXFormattedField();
181 virtual ~SVTXFormattedField();
183 // ::com::sun::star::awt::XVclWindowPeer
184 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
185 ::com::sun::star::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
188 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatsSupplier
> getFormatsSupplier() const;
189 void setFormatsSupplier(const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatsSupplier
> & xSupplier
);
190 sal_Int32
getFormatKey() const;
191 void setFormatKey(sal_Int32 nKey
);
193 void SetValue(const ::com::sun::star::uno::Any
& rValue
);
194 ::com::sun::star::uno::Any
GetValue();
196 void SetTreatAsNumber(bool bSet
);
197 bool GetTreatAsNumber();
199 void SetDefaultValue(const ::com::sun::star::uno::Any
& rValue
);
200 ::com::sun::star::uno::Any
GetDefaultValue();
202 void SetMinValue(const ::com::sun::star::uno::Any
& rValue
);
203 ::com::sun::star::uno::Any
GetMinValue();
205 void SetMaxValue(const ::com::sun::star::uno::Any
& rValue
);
206 ::com::sun::star::uno::Any
GetMaxValue();
208 void NotifyTextListeners();
209 ::com::sun::star::uno::Any
convertEffectiveValue(const ::com::sun::star::uno::Any
& rValue
);
211 virtual void SetWindow( const VclPtr
< vcl::Window
> &_pWindow
) SAL_OVERRIDE
;
213 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
214 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
235 typedef ::cppu::ImplInheritanceHelper3
< VCLXGraphicControl
236 , ::com::sun::star::container::XContainerListener
237 , ::com::sun::star::beans::XPropertyChangeListener
238 , ::com::sun::star::awt::XItemEventBroadcaster
240 class SVTXRoadmap
: public SVTXRoadmap_Base
245 ItemListenerMultiplexer maItemListeners
;
247 RMItemData CurRMItemData
;
248 static RMItemData
GetRMItemData( const ::com::sun::star::container::ContainerEvent
& _rEvent
);
251 virtual void ProcessWindowEvent( const VclWindowEvent
& rVclWindowEvent
) SAL_OVERRIDE
;
253 virtual ~SVTXRoadmap();
258 void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
{ VCLXWindow::disposing( Source
); }
260 // ::com::sun::star::awt::XVclWindowPeer
261 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
263 ::com::sun::star::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
265 // XContainerListener
266 void SAL_CALL
elementInserted( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
267 void SAL_CALL
elementRemoved( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
268 void SAL_CALL
elementReplaced( const ::com::sun::star::container::ContainerEvent
& rEvent
)throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
270 // XItemEventBroadcaster
271 virtual void SAL_CALL
addItemListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XItemListener
>& l
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
272 virtual void SAL_CALL
removeItemListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XItemListener
>& l
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
274 // XPropertyChangeListener
275 virtual void SAL_CALL
propertyChange( const ::com::sun::star::beans::PropertyChangeEvent
& evt
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
279 // VCLXGraphicControl overridables
280 virtual void ImplSetNewImage() SAL_OVERRIDE
;
282 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
283 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
289 // class SVTXNumericField
291 class SVTXNumericField
: public ::com::sun::star::awt::XNumericField
, public SVTXFormattedField
295 virtual ~SVTXNumericField();
297 // ::com::sun::star::uno::XInterface
298 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
299 void SAL_CALL
acquire() throw() SAL_OVERRIDE
{ SVTXFormattedField::acquire(); }
300 void SAL_CALL
release() throw() SAL_OVERRIDE
{ SVTXFormattedField::release(); }
302 // ::com::sun::star::lang::XTypeProvider
303 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
304 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
306 // ::com::sun::star::awt::XNumericField
307 void SAL_CALL
setValue( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
308 double SAL_CALL
getValue( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
309 void SAL_CALL
setMin( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
310 double SAL_CALL
getMin( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
311 void SAL_CALL
setMax( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
312 double SAL_CALL
getMax( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
313 void SAL_CALL
setFirst( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
314 double SAL_CALL
getFirst( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
315 void SAL_CALL
setLast( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
316 double SAL_CALL
getLast( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
317 void SAL_CALL
setSpinSize( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
318 double SAL_CALL
getSpinSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
319 void SAL_CALL
setDecimalDigits( sal_Int16 nDigits
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
320 sal_Int16 SAL_CALL
getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
321 void SAL_CALL
setStrictFormat( sal_Bool bStrict
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
322 sal_Bool SAL_CALL
isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
324 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
325 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
329 // class VCLXCurrencyField
331 class SVTXCurrencyField
: public ::com::sun::star::awt::XCurrencyField
, public SVTXFormattedField
335 virtual ~SVTXCurrencyField();
337 // ::com::sun::star::uno::XInterface
338 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
339 void SAL_CALL
acquire() throw() SAL_OVERRIDE
{ SVTXFormattedField::acquire(); }
340 void SAL_CALL
release() throw() SAL_OVERRIDE
{ SVTXFormattedField::release(); }
342 // ::com::sun::star::lang::XTypeProvider
343 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
344 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
346 // ::com::sun::star::awt::XVclWindowPeer
347 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
348 ::com::sun::star::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
350 // ::com::sun::star::awt::XCurrencyField
351 void SAL_CALL
setValue( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
352 double SAL_CALL
getValue( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
353 void SAL_CALL
setMin( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
354 double SAL_CALL
getMin( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
355 void SAL_CALL
setMax( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
356 double SAL_CALL
getMax( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
357 void SAL_CALL
setFirst( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
358 double SAL_CALL
getFirst( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
359 void SAL_CALL
setLast( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
360 double SAL_CALL
getLast( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
361 void SAL_CALL
setSpinSize( double Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
362 double SAL_CALL
getSpinSize( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
363 void SAL_CALL
setDecimalDigits( sal_Int16 nDigits
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
364 sal_Int16 SAL_CALL
getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
365 void SAL_CALL
setStrictFormat( sal_Bool bStrict
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
366 sal_Bool SAL_CALL
isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
368 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
369 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
373 // class VCLXProgressBar
375 class VCLXProgressBar
: public ::com::sun::star::awt::XProgressBar
,
380 sal_Int32 m_nValueMin
;
381 sal_Int32 m_nValueMax
;
384 void ImplUpdateValue();
388 virtual ~VCLXProgressBar();
390 // ::com::sun::star::uno::XInterface
391 ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
392 void SAL_CALL
acquire() throw() SAL_OVERRIDE
{ VCLXWindow::acquire(); }
393 void SAL_CALL
release() throw() SAL_OVERRIDE
{ VCLXWindow::release(); }
395 // ::com::sun::star::lang::XTypeProvider
396 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
397 ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
399 // ::com::sun::star::awt::XProgressBar
400 void SAL_CALL
setForegroundColor( sal_Int32 nColor
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
401 void SAL_CALL
setBackgroundColor( sal_Int32 nColor
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
402 void SAL_CALL
setValue( sal_Int32 nValue
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
403 void SAL_CALL
setRange( sal_Int32 nMin
, sal_Int32 nMax
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
404 sal_Int32 SAL_CALL
getValue() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
406 // ::com::sun::star::awt::VclWindowPeer
407 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
408 ::com::sun::star::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
410 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
411 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
415 // class SVTXDateField
417 class SVTXDateField
: public VCLXDateField
421 virtual ~SVTXDateField();
423 // ::com::sun::star::awt::VclWindowPeer
424 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
426 static void ImplGetPropertyIds( std::list
< sal_uInt16
> &aIds
);
427 virtual void GetPropertyIds( std::list
< sal_uInt16
> &aIds
) SAL_OVERRIDE
{ return ImplGetPropertyIds( aIds
); }
430 #endif // INCLUDED_SVTOOLS_SOURCE_INC_UNOIFACE_HXX
432 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */