Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _SVT_UNOIFACE_HXX
30 : : #define _SVT_UNOIFACE_HXX
31 : :
32 : : #include <toolkit/awt/vclxwindow.hxx>
33 : : #include <toolkit/awt/vclxwindows.hxx>
34 : : #include <toolkit/helper/listenermultiplexer.hxx>
35 : :
36 : : #include <cppuhelper/typeprovider.hxx>
37 : :
38 : : #include <com/sun/star/awt/XTextArea.hpp>
39 : : #include <com/sun/star/awt/XTextComponent.hpp>
40 : : #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
41 : : #include <svtools/svmedit.hxx>
42 : : #include <svtools/fmtfield.hxx>
43 : :
44 : :
45 : : #include <comphelper/uno3.hxx>
46 : : #include <cppuhelper/implbase2.hxx>
47 : : #include <cppuhelper/implbase3.hxx>
48 : : #include <com/sun/star/awt/XItemEventBroadcaster.hpp>
49 : :
50 : :
51 : : namespace com { namespace sun { namespace star { namespace util {
52 : : class XNumberFormatsSupplier;
53 : : } } } }
54 : :
55 : : class SvNumberFormatsSupplierObj;
56 : :
57 : : // ----------------------------------------------------
58 : : // class VCLXMultiLineEdit
59 : : // ----------------------------------------------------
60 : : class VCLXMultiLineEdit : public ::com::sun::star::awt::XTextComponent,
61 : : public ::com::sun::star::awt::XTextArea,
62 : : public ::com::sun::star::awt::XTextLayoutConstrains,
63 : : public VCLXWindow
64 : : {
65 : : private:
66 : : TextListenerMultiplexer maTextListeners;
67 : : LineEnd meLineEndType;
68 : :
69 : : protected:
70 : : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
71 : :
72 : : public:
73 : : VCLXMultiLineEdit();
74 : : ~VCLXMultiLineEdit();
75 : :
76 : : // ::com::sun::star::uno::XInterface
77 : : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
78 : 4726 : void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
79 : 4726 : void SAL_CALL release() throw() { VCLXWindow::release(); }
80 : :
81 : : // ::com::sun::star::lang::XTypeProvider
82 : : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
83 : : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
84 : :
85 : : // ::com::sun::star::awt::XTextComponent
86 : : void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
87 : : void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
88 : : void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
89 : : void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
90 : : ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
91 : : ::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException);
92 : : void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
93 : : ::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException);
94 : : sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException);
95 : : void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
96 : : void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
97 : : sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException);
98 : :
99 : : //XTextArea
100 : : ::rtl::OUString SAL_CALL getTextLines( ) throw(::com::sun::star::uno::RuntimeException);
101 : :
102 : : // ::com::sun::star::awt::XLayoutConstrains
103 : : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
104 : : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
105 : : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
106 : :
107 : : // ::com::sun::star::awt::XTextLayoutConstrains
108 : : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
109 : : void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
110 : :
111 : : // ::com::sun::star::awt::XVclWindowPeer
112 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
113 : : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
114 : :
115 : : // ::com::sun::star::awt::XWindow
116 : : void SAL_CALL setFocus( ) throw(::com::sun::star::uno::RuntimeException);
117 : :
118 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
119 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
120 : : };
121 : :
122 : :
123 : : // ----------------------------------------------------
124 : : // class VCLXFileControl
125 : : // ----------------------------------------------------
126 : : class VCLXFileControl : ::com::sun::star::awt::XTextComponent, public ::com::sun::star::awt::XTextLayoutConstrains, public VCLXWindow
127 : : {
128 : : protected:
129 : : DECL_LINK(ModifyHdl, void *);
130 : : TextListenerMultiplexer maTextListeners;
131 : :
132 : : public:
133 : : VCLXFileControl();
134 : : ~VCLXFileControl();
135 : :
136 : : void SetWindow( Window* pWindow );
137 : :
138 : : // ::com::sun::star::uno::XInterface
139 : : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
140 : 0 : void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
141 : 0 : void SAL_CALL release() throw() { VCLXWindow::release(); }
142 : :
143 : : // ::com::sun::star::lang::XTypeProvider
144 : : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
145 : : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
146 : :
147 : : // ::com::sun::star::awt::XTextComponent
148 : : void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
149 : : void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
150 : : void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
151 : : void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
152 : : ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
153 : : ::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException);
154 : : void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
155 : : ::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException);
156 : : sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException);
157 : : void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
158 : : void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
159 : : sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException);
160 : :
161 : : // ::com::sun::star::awt::XLayoutConstrains
162 : : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
163 : : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
164 : : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
165 : :
166 : : // ::com::sun::star::awt::XTextLayoutConstrains
167 : : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
168 : : void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
169 : :
170 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException);
171 : :
172 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
173 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
174 : : };
175 : :
176 : : // ----------------------------------------------------
177 : : // class SVTXFormattedField
178 : : // ----------------------------------------------------
179 : :
180 : : class SVTXFormattedField : public VCLXSpinField
181 : : {
182 : : protected:
183 : : SvNumberFormatsSupplierObj* m_pCurrentSupplier;
184 : : sal_Bool bIsStandardSupplier;
185 : :
186 : : sal_Int32 nKeyToSetDelayed;
187 : :
188 : 9988 : FormattedField* GetFormattedField() const { return (FormattedField*)GetWindow(); }
189 : :
190 : : public:
191 : : SVTXFormattedField();
192 : : ~SVTXFormattedField();
193 : :
194 : : // ::com::sun::star::awt::XVclWindowPeer
195 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
196 : : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
197 : :
198 : : protected:
199 : : ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const;
200 : : void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier);
201 : : sal_Int32 getFormatKey(void) const;
202 : : void setFormatKey(sal_Int32 nKey);
203 : :
204 : : void SetValue(const ::com::sun::star::uno::Any& rValue);
205 : : ::com::sun::star::uno::Any GetValue();
206 : :
207 : : void SetTreatAsNumber(sal_Bool bSet);
208 : : sal_Bool GetTreatAsNumber();
209 : :
210 : : void SetDefaultValue(const ::com::sun::star::uno::Any& rValue);
211 : : ::com::sun::star::uno::Any GetDefaultValue();
212 : :
213 : : void SetMinValue(const ::com::sun::star::uno::Any& rValue);
214 : : ::com::sun::star::uno::Any GetMinValue();
215 : :
216 : : void SetMaxValue(const ::com::sun::star::uno::Any& rValue);
217 : : ::com::sun::star::uno::Any GetMaxValue();
218 : :
219 : : void NotifyTextListeners();
220 : : ::com::sun::star::uno::Any convertEffectiveValue(const ::com::sun::star::uno::Any& rValue);
221 : :
222 : : virtual void SetWindow(Window* _pWindow);
223 : :
224 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
225 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
226 : : };
227 : :
228 : :
229 : :
230 : : // ----------------------------------------------------
231 : : // class SVTXRoadmap
232 : : // ----------------------------------------------------
233 : :
234 : : namespace svt
235 : : {
236 : : class ORoadmap;
237 : : }
238 : :
239 : 0 : struct RMItemData
240 : : {
241 : : sal_Bool b_Enabled;
242 : : sal_Int32 n_ID;
243 : : ::rtl::OUString Label;
244 : : };
245 : :
246 : : typedef ::cppu::ImplInheritanceHelper3 < VCLXGraphicControl
247 : : , ::com::sun::star::container::XContainerListener
248 : : , ::com::sun::star::beans::XPropertyChangeListener
249 : : , ::com::sun::star::awt::XItemEventBroadcaster
250 : : > SVTXRoadmap_Base;
251 : : class SVTXRoadmap : public SVTXRoadmap_Base
252 : :
253 : :
254 : : {
255 : : private:
256 : : ItemListenerMultiplexer maItemListeners;
257 : :
258 : : RMItemData CurRMItemData;
259 : : RMItemData GetRMItemData( const ::com::sun::star::container::ContainerEvent& _rEvent );
260 : :
261 : : protected:
262 : 0 : ::svt::ORoadmap* GetRoadmap() const { return (::svt::ORoadmap*)GetWindow(); }
263 : : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
264 : :
265 : : ~SVTXRoadmap();
266 : :
267 : : public:
268 : : SVTXRoadmap();
269 : :
270 : 0 : void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { VCLXWindow::disposing( Source ); }
271 : :
272 : : // ::com::sun::star::awt::XVclWindowPeer
273 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
274 : :
275 : : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
276 : :
277 : : // XContainerListener
278 : : void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
279 : : void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
280 : : void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
281 : :
282 : : // XItemEventBroadcaster
283 : : virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
284 : : virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
285 : :
286 : : // XPropertyChangeListener
287 : : virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException);
288 : :
289 : : protected:
290 : :
291 : : // VCLXGraphicControl overridables
292 : : virtual void ImplSetNewImage();
293 : :
294 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
295 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
296 : : };
297 : :
298 : :
299 : :
300 : : // ----------------------------------------------------
301 : : // class SVTXNumericField
302 : : // ----------------------------------------------------
303 : : class SVTXNumericField : public ::com::sun::star::awt::XNumericField, public SVTXFormattedField
304 : : {
305 : : public:
306 : : SVTXNumericField();
307 : : ~SVTXNumericField();
308 : :
309 : : // ::com::sun::star::uno::XInterface
310 : : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
311 : 30853 : void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
312 : 30853 : void SAL_CALL release() throw() { SVTXFormattedField::release(); }
313 : :
314 : : // ::com::sun::star::lang::XTypeProvider
315 : : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
316 : : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
317 : :
318 : : // ::com::sun::star::awt::XNumericField
319 : : void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
320 : : double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
321 : : void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
322 : : double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
323 : : void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
324 : : double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
325 : : void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
326 : : double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
327 : : void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
328 : : double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
329 : : void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
330 : : double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
331 : : void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
332 : : sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
333 : : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
334 : : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
335 : :
336 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
337 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
338 : : };
339 : :
340 : : // ----------------------------------------------------
341 : : // class VCLXCurrencyField
342 : : // ----------------------------------------------------
343 : : class SVTXCurrencyField : public ::com::sun::star::awt::XCurrencyField, public SVTXFormattedField
344 : : {
345 : : public:
346 : : SVTXCurrencyField();
347 : : ~SVTXCurrencyField();
348 : :
349 : : // ::com::sun::star::uno::XInterface
350 : : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
351 : 28333 : void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
352 : 28333 : void SAL_CALL release() throw() { SVTXFormattedField::release(); }
353 : :
354 : : // ::com::sun::star::lang::XTypeProvider
355 : : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
356 : : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
357 : :
358 : : // ::com::sun::star::awt::XVclWindowPeer
359 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
360 : : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
361 : :
362 : : // ::com::sun::star::awt::XCurrencyField
363 : : void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
364 : : double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
365 : : void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
366 : : double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
367 : : void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
368 : : double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
369 : : void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
370 : : double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
371 : : void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
372 : : double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
373 : : void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
374 : : double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
375 : : void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
376 : : sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
377 : : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
378 : : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
379 : :
380 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
381 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
382 : : };
383 : :
384 : : // ----------------------------------------------------
385 : : // class VCLXProgressBar
386 : : // ----------------------------------------------------
387 : : class VCLXProgressBar : public ::com::sun::star::awt::XProgressBar,
388 : : public VCLXWindow
389 : : {
390 : : private:
391 : : sal_Int32 m_nValue;
392 : : sal_Int32 m_nValueMin;
393 : : sal_Int32 m_nValueMax;
394 : :
395 : : protected:
396 : : void ImplUpdateValue();
397 : :
398 : : public:
399 : : VCLXProgressBar();
400 : : ~VCLXProgressBar();
401 : :
402 : : // ::com::sun::star::uno::XInterface
403 : : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
404 : 0 : void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
405 : 0 : void SAL_CALL release() throw() { VCLXWindow::release(); }
406 : :
407 : : // ::com::sun::star::lang::XTypeProvider
408 : : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
409 : : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
410 : :
411 : : // ::com::sun::star::awt::XProgressBar
412 : : void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
413 : : void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
414 : : void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
415 : : void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
416 : : sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
417 : :
418 : : // ::com::sun::star::awt::VclWindowPeer
419 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
420 : : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
421 : :
422 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
423 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
424 : : };
425 : :
426 : : // ----------------------------------------------------
427 : : // class SVTXDateField
428 : : // ----------------------------------------------------
429 : : class SVTXDateField : public VCLXDateField
430 : : {
431 : : public:
432 : : SVTXDateField();
433 : : ~SVTXDateField();
434 : :
435 : : // ::com::sun::star::awt::VclWindowPeer
436 : : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
437 : :
438 : : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
439 : 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
440 : : };
441 : :
442 : : #endif // _SVT_UNOIFACE_HXX
443 : :
444 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|