Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef _TOOLKIT_AWT_VCLXWINDOWS_HXX_
21 : #define _TOOLKIT_AWT_VCLXWINDOWS_HXX_
22 :
23 : #include <toolkit/dllapi.h>
24 :
25 : #include <com/sun/star/beans/PropertyValues.hpp>
26 : #include <com/sun/star/beans/XPropertySet.hpp>
27 : #include <com/sun/star/beans/PropertyValue.hpp>
28 : #include <com/sun/star/beans/PropertyState.hpp>
29 : #include <com/sun/star/beans/XPropertySetInfo.hpp>
30 : #include <com/sun/star/beans/XMultiPropertySet.hpp>
31 : #include <com/sun/star/beans/XFastPropertySet.hpp>
32 : #include <com/sun/star/beans/XVetoableChangeListener.hpp>
33 : #include <com/sun/star/beans/XPropertyState.hpp>
34 : #include <com/sun/star/beans/PropertyAttribute.hpp>
35 : #include <com/sun/star/beans/XPropertiesChangeListener.hpp>
36 : #include <com/sun/star/beans/XPropertyChangeListener.hpp>
37 : #include <com/sun/star/beans/XPropertyAccess.hpp>
38 : #include <com/sun/star/beans/XPropertyContainer.hpp>
39 : #include <com/sun/star/beans/PropertyStateChangeEvent.hpp>
40 : #include <com/sun/star/beans/PropertyChangeEvent.hpp>
41 : #include <com/sun/star/awt/XFileDialog.hpp>
42 : #include <com/sun/star/awt/XTextComponent.hpp>
43 : #include <com/sun/star/awt/XListBox.hpp>
44 : #include <com/sun/star/awt/XProgressMonitor.hpp>
45 : #include <com/sun/star/awt/TextAlign.hpp>
46 : #include <com/sun/star/awt/XScrollBar.hpp>
47 : #include <com/sun/star/awt/XVclContainerPeer.hpp>
48 : #include <com/sun/star/awt/XTabControllerModel.hpp>
49 : #include <com/sun/star/awt/XMessageBox.hpp>
50 : #include <com/sun/star/awt/XTextEditField.hpp>
51 : #include <com/sun/star/awt/Style.hpp>
52 : #include <com/sun/star/awt/XTimeField.hpp>
53 : #include <com/sun/star/awt/XVclWindowPeer.hpp>
54 : #include <com/sun/star/awt/XControlModel.hpp>
55 : #include <com/sun/star/awt/XSpinField.hpp>
56 : #include <com/sun/star/awt/XUnoControlContainer.hpp>
57 : #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
58 : #include <com/sun/star/awt/XNumericField.hpp>
59 : #include <com/sun/star/awt/XMetricField.hpp>
60 : #include <com/sun/star/awt/XButton.hpp>
61 : #include <com/sun/star/awt/XToggleButton.hpp>
62 : #include <com/sun/star/awt/XPointer.hpp>
63 : #include <com/sun/star/awt/XTextArea.hpp>
64 : #include <com/sun/star/awt/XImageButton.hpp>
65 : #include <com/sun/star/awt/XFixedHyperlink.hpp>
66 : #include <com/sun/star/awt/XFixedText.hpp>
67 : #include <com/sun/star/awt/XControlContainer.hpp>
68 : #include <com/sun/star/awt/XDialog2.hpp>
69 : #include <com/sun/star/awt/XRadioButton.hpp>
70 : #include <com/sun/star/awt/XCurrencyField.hpp>
71 : #include <com/sun/star/awt/XPatternField.hpp>
72 : #include <com/sun/star/awt/XDateField.hpp>
73 : #include <com/sun/star/awt/XComboBox.hpp>
74 : #include <com/sun/star/awt/XCheckBox.hpp>
75 : #include <com/sun/star/awt/XItemListListener.hpp>
76 : #include <com/sun/star/awt/XImageConsumer.hpp>
77 : #include <com/sun/star/awt/XSimpleTabController.hpp>
78 : #include <cppuhelper/weak.hxx>
79 : #include <cppuhelper/implbase3.hxx>
80 : #include <cppuhelper/implbase2.hxx>
81 :
82 : #include "toolkit/awt/vclxwindow.hxx"
83 : #include "toolkit/awt/vclxtopwindow.hxx"
84 : #include <cppuhelper/implbase1.hxx>
85 :
86 : #include <vcl/pointr.hxx>
87 : #include <vcl/image.hxx>
88 : #include <vcl/tabctrl.hxx>
89 :
90 : class Button;
91 : class CheckBox;
92 : class RadioButton;
93 : class ListBox;
94 : class ScrollBar;
95 : class Edit;
96 : class Menu;
97 : class ComboBox;
98 : class FormatterBase;
99 : class SpinField;
100 : class ToolBox;
101 : class VclSimpleEvent;
102 : class VclMenuEvent;
103 :
104 : // ----------------------------------------------------
105 : // class VCLXGraphicControl
106 : // deriving from VCLXWindow, drawing the graphic which exists as "Graphic" at the model
107 : // ----------------------------------------------------
108 :
109 :
110 0 : class TOOLKIT_DLLPUBLIC VCLXGraphicControl : public VCLXWindow
111 : {
112 : private:
113 : /// the image we currently display
114 : Image maImage;
115 :
116 : protected:
117 0 : const Image& GetImage() const { return maImage; }
118 :
119 : protected:
120 : // ::com::sun::star::awt::XWindow
121 : void SAL_CALL setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags ) throw(::com::sun::star::uno::RuntimeException);
122 :
123 : // ::com::sun::star::awt::VclWindowPeer
124 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
125 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
126 :
127 : protected:
128 : /** forward our bitmap to our window
129 : @precond
130 : our mutex is locked
131 : @precond
132 : GetWindow is not <NULL/>
133 : @see GetBitmap
134 : */
135 : virtual void ImplSetNewImage();
136 :
137 : public:
138 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
139 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
140 :
141 : };
142 :
143 : // ----------------------------------------------------
144 : // class VCLXButton
145 : // ----------------------------------------------------
146 : typedef ::cppu::ImplInheritanceHelper2 < VCLXGraphicControl
147 : , ::com::sun::star::awt::XButton
148 : , ::com::sun::star::awt::XToggleButton
149 : > VCLXButton_Base;
150 : class VCLXButton :public VCLXButton_Base
151 : {
152 : private:
153 : ::rtl::OUString maActionCommand;
154 : ActionListenerMultiplexer maActionListeners;
155 : ItemListenerMultiplexer maItemListeners;
156 :
157 : protected:
158 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
159 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
160 :
161 : public:
162 : VCLXButton();
163 : ~VCLXButton();
164 :
165 : // ::com::sun::star::lang::XComponent
166 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
167 :
168 : // ::com::sun::star::awt::XButton
169 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
170 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
171 : void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
172 : void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
173 :
174 : // ::com::sun::star::awt::XToggleButton
175 : // ::com::sun::star::awt::XItemEventBroadcaster
176 : void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
177 : void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
178 :
179 : // ::com::sun::star::awt::XLayoutConstrains
180 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
181 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
182 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
183 :
184 : // ::com::sun::star::awt::VclWindowPeer
185 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
186 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
187 :
188 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
189 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
190 : };
191 :
192 : // ----------------------------------------------------
193 : // class VCLXImageControl
194 : // ----------------------------------------------------
195 : class VCLXImageControl : public VCLXGraphicControl
196 : {
197 : public:
198 : VCLXImageControl();
199 : ~VCLXImageControl();
200 :
201 : // ::com::sun::star::awt::XLayoutConstrains
202 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
203 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
204 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
205 :
206 : // ::com::sun::star::awt::VclWindowPeer
207 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
208 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
209 :
210 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
211 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
212 :
213 : protected:
214 : virtual void ImplSetNewImage();
215 : };
216 :
217 : // ----------------------------------------------------
218 : // class VCLXCheckBox
219 : // ----------------------------------------------------
220 0 : class VCLXCheckBox : public ::com::sun::star::awt::XCheckBox,
221 : public ::com::sun::star::awt::XButton,
222 : public VCLXGraphicControl
223 : {
224 : private:
225 : ActionListenerMultiplexer maActionListeners;
226 : ::rtl::OUString maActionCommand;
227 : ItemListenerMultiplexer maItemListeners;
228 :
229 : protected:
230 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
231 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
232 :
233 : public:
234 : VCLXCheckBox();
235 :
236 : // ::com::sun::star::uno::XInterface
237 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
238 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
239 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
240 :
241 : // ::com::sun::star::lang::XTypeProvider
242 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
243 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
244 :
245 :
246 : // ::com::sun::star::lang::XComponent
247 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
248 :
249 : // ::com::sun::star::awt::XCheckBox
250 : void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
251 : void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
252 : sal_Int16 SAL_CALL getState( ) throw(::com::sun::star::uno::RuntimeException);
253 : void SAL_CALL setState( sal_Int16 n ) throw(::com::sun::star::uno::RuntimeException);
254 : void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
255 : void SAL_CALL enableTriState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
256 :
257 : // ::com::sun::star::awt::XButton:
258 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
259 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
260 : void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
261 :
262 : // ::com::sun::star::awt::XLayoutConstrains
263 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
264 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
265 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
266 :
267 : // ::com::sun::star::awt::VclWindowPeer
268 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
269 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
270 :
271 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
272 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
273 : };
274 :
275 : // ----------------------------------------------------
276 : // class VCLXRadioButton
277 : // ----------------------------------------------------
278 0 : class VCLXRadioButton : public ::com::sun::star::awt::XRadioButton,
279 : public ::com::sun::star::awt::XButton,
280 : public VCLXGraphicControl
281 : {
282 : private:
283 : ItemListenerMultiplexer maItemListeners;
284 : ActionListenerMultiplexer maActionListeners;
285 : ::rtl::OUString maActionCommand;
286 :
287 : protected:
288 : void ImplClickedOrToggled( sal_Bool bToggled );
289 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
290 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
291 :
292 : public:
293 : VCLXRadioButton();
294 :
295 : // ::com::sun::star::uno::XInterface
296 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
297 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
298 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
299 :
300 : // ::com::sun::star::lang::XTypeProvider
301 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
302 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
303 :
304 : // ::com::sun::star::lang::XComponent
305 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
306 :
307 : // ::com::sun::star::awt::XRadioButton
308 : void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
309 : void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
310 : sal_Bool SAL_CALL getState( ) throw(::com::sun::star::uno::RuntimeException);
311 : void SAL_CALL setState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
312 : void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
313 :
314 : // ::com::sun::star::awt::XButton:
315 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
316 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
317 : void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
318 :
319 : // ::com::sun::star::awt::XLayoutConstrains
320 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
321 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
322 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
323 :
324 : // ::com::sun::star::awt::VclWindowPeer
325 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
326 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
327 :
328 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
329 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
330 :
331 : };
332 :
333 : // ----------------------------------------------------
334 : // class VCLXMessageBox
335 : // ----------------------------------------------------
336 : class VCLXMessageBox : public ::com::sun::star::awt::XMessageBox,
337 : public VCLXTopWindow
338 : {
339 : public:
340 : VCLXMessageBox();
341 : ~VCLXMessageBox();
342 :
343 : // ::com::sun::star::uno::XInterface
344 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
345 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
346 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
347 :
348 : // ::com::sun::star::lang::XTypeProvider
349 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
350 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
351 :
352 :
353 : // ::com::sun::star::awt::XMessageBox
354 : void SAL_CALL setCaptionText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
355 : ::rtl::OUString SAL_CALL getCaptionText( ) throw(::com::sun::star::uno::RuntimeException);
356 : void SAL_CALL setMessageText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
357 : ::rtl::OUString SAL_CALL getMessageText( ) throw(::com::sun::star::uno::RuntimeException);
358 : sal_Int16 SAL_CALL execute( ) throw(::com::sun::star::uno::RuntimeException);
359 :
360 : // ::com::sun::star::awt::XLayoutConstrains
361 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize() throw(::com::sun::star::uno::RuntimeException);
362 :
363 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
364 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
365 : };
366 :
367 : // ----------------------------------------------------
368 : // class VCLXFrame
369 : // ----------------------------------------------------
370 : class VCLXFrame : public VCLXContainer
371 : {
372 : protected:
373 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
374 :
375 : public:
376 : VCLXFrame();
377 : ~VCLXFrame();
378 :
379 : // ::com::sun::star::uno::XInterface
380 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
381 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
382 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
383 :
384 : // ::com::sun::star::lang::XTypeProvider
385 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
386 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
387 :
388 : // ::com::sun::star::awt::XView
389 : void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
390 :
391 : // ::com::sun::star::awt::XDevice,
392 : ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
393 :
394 : // ::com::sun::star::awt::XVclWindowPeer
395 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
396 :
397 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
398 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
399 : };
400 :
401 :
402 :
403 : // ----------------------------------------------------
404 : // class VCLXDialog
405 : // ----------------------------------------------------
406 : class TOOLKIT_DLLPUBLIC VCLXDialog : public ::com::sun::star::awt::XDialog2,
407 : public VCLXTopWindow
408 : {
409 : public:
410 : VCLXDialog();
411 : ~VCLXDialog();
412 :
413 : // ::com::sun::star::uno::XInterface
414 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
415 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
416 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
417 :
418 : // ::com::sun::star::lang::XTypeProvider
419 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
420 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
421 :
422 : // ::com::sun::star::awt::XDialog2
423 : virtual void SAL_CALL endDialog( ::sal_Int32 Result ) throw (::com::sun::star::uno::RuntimeException);
424 : virtual void SAL_CALL setHelpId( const rtl::OUString& Id ) throw (::com::sun::star::uno::RuntimeException);
425 :
426 : // ::com::sun::star::awt::XDialog
427 : void SAL_CALL setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException);
428 : ::rtl::OUString SAL_CALL getTitle( ) throw(::com::sun::star::uno::RuntimeException);
429 : sal_Int16 SAL_CALL execute( ) throw(::com::sun::star::uno::RuntimeException);
430 : void SAL_CALL endExecute( ) throw(::com::sun::star::uno::RuntimeException);
431 :
432 : // ::com::sun::star::awt::XView
433 : void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
434 :
435 : // ::com::sun::star::awt::XDevice,
436 : ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() 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 : // ::com::sun::star::awt::XVclWindowPeer
442 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
443 :
444 : };
445 :
446 : // ----------------------------------------------------
447 : // class VCLXTabPage
448 : // ----------------------------------------------------
449 : class VCLXTabPage : public VCLXContainer
450 : {
451 : public:
452 : VCLXTabPage();
453 : ~VCLXTabPage();
454 :
455 : // ::com::sun::star::uno::XInterface
456 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
457 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
458 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
459 :
460 : // ::com::sun::star::lang::XTypeProvider
461 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
462 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
463 :
464 : // ::com::sun::star::awt::XView
465 : void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
466 :
467 : // ::com::sun::star::awt::XDevice,
468 : ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
469 :
470 : // ::com::sun::star::awt::XVclWindowPeer
471 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
472 :
473 : TabPage* getTabPage() const throw ( ::com::sun::star::uno::RuntimeException);
474 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
475 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
476 : };
477 :
478 : class VCLXMultiPage : public ::com::sun::star::awt::XSimpleTabController, public VCLXContainer
479 : {
480 : TabListenerMultiplexer maTabListeners;
481 : sal_Int32 mTabId;
482 : protected:
483 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
484 : public:
485 : VCLXMultiPage();
486 : ~VCLXMultiPage();
487 :
488 : // ::com::sun::star::uno::XInterface
489 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
490 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
491 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
492 :
493 : // ::com::sun::star::lang::XTypeProvider
494 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
495 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
496 :
497 : // ::com::sun::star::lang::XComponent
498 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
499 :
500 : // ::com::sun::star::awt::XView
501 : void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
502 :
503 : // ::com::sun::star::awt::XDevice,
504 : ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
505 :
506 : // ::com::sun::star::awt::XVclWindowPeer
507 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
508 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
509 : // XSimpleTabController
510 : virtual ::sal_Int32 SAL_CALL insertTab() throw (::com::sun::star::uno::RuntimeException);
511 : virtual void SAL_CALL removeTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
512 :
513 : virtual void SAL_CALL setTabProps( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
514 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > SAL_CALL getTabProps( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
515 :
516 : virtual void SAL_CALL activateTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
517 : virtual ::sal_Int32 SAL_CALL getActiveTabID() throw (::com::sun::star::uno::RuntimeException);
518 :
519 : virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
520 : virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
521 : // C++
522 : TabControl* getTabControl() const throw ( ::com::sun::star::uno::RuntimeException);
523 : sal_uInt16 insertTab( TabPage*, rtl::OUString& sTitle );
524 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
525 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
526 : };
527 :
528 : // ----------------------------------------------------
529 : // class VCLXFixedHyperlink
530 : // ----------------------------------------------------
531 : class TOOLKIT_DLLPUBLIC VCLXFixedHyperlink :
532 : public ::com::sun::star::awt::XFixedHyperlink,
533 : public VCLXWindow
534 : {
535 : private:
536 : ActionListenerMultiplexer maActionListeners;
537 :
538 : protected:
539 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
540 :
541 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
542 : CreateAccessibleContext();
543 :
544 : public:
545 : VCLXFixedHyperlink();
546 : ~VCLXFixedHyperlink();
547 :
548 : // ::com::sun::star::uno::XInterface
549 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
550 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
551 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
552 :
553 : // ::com::sun::star::lang::XComponent
554 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
555 :
556 : // ::com::sun::star::lang::XTypeProvider
557 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
558 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
559 :
560 : // ::com::sun::star::awt::XFixedHyperlink
561 : void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
562 : ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
563 : void SAL_CALL setURL( const ::rtl::OUString& URL ) throw(::com::sun::star::uno::RuntimeException);
564 : ::rtl::OUString SAL_CALL getURL( ) throw(::com::sun::star::uno::RuntimeException);
565 : void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
566 : sal_Int16 SAL_CALL getAlignment( ) throw(::com::sun::star::uno::RuntimeException);
567 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
568 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
569 :
570 : // ::com::sun::star::awt::XLayoutConstrains
571 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
572 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
573 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
574 :
575 : // ::com::sun::star::awt::VclWindowPeer
576 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
577 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
578 :
579 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
580 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
581 : };
582 :
583 : // ----------------------------------------------------
584 : // class VCLXFixedText
585 : // ----------------------------------------------------
586 : class VCLXFixedText : public ::com::sun::star::awt::XFixedText,
587 : public VCLXWindow
588 : {
589 : protected:
590 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
591 :
592 : public:
593 : VCLXFixedText();
594 : ~VCLXFixedText();
595 :
596 : // ::com::sun::star::uno::XInterface
597 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
598 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
599 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
600 :
601 : // ::com::sun::star::lang::XTypeProvider
602 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
603 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
604 :
605 : // ::com::sun::star::awt::XFixedText
606 : void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
607 : ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
608 : void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
609 : sal_Int16 SAL_CALL getAlignment( ) throw(::com::sun::star::uno::RuntimeException);
610 :
611 : // ::com::sun::star::awt::XLayoutConstrains
612 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
613 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
614 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
615 :
616 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
617 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
618 : };
619 :
620 : // ----------------------------------------------------
621 : // class VCLXScrollBar
622 : // ----------------------------------------------------
623 0 : class VCLXScrollBar : public ::com::sun::star::awt::XScrollBar,
624 : public VCLXWindow
625 : {
626 : private:
627 : AdjustmentListenerMultiplexer maAdjustmentListeners;
628 :
629 : protected:
630 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
631 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
632 :
633 : public:
634 : VCLXScrollBar();
635 : // ::com::sun::star::uno::XInterface
636 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
637 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
638 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
639 :
640 : // ::com::sun::star::lang::XTypeProvider
641 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
642 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
643 :
644 :
645 : // ::com::sun::star::lang::XComponent
646 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
647 :
648 : // ::com::sun::star::awt::XScrollbar
649 : void SAL_CALL addAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
650 : void SAL_CALL removeAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
651 : void SAL_CALL setValue( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
652 : void SAL_CALL setValues( sal_Int32 nValue, sal_Int32 nVisible, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException);
653 : sal_Int32 SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
654 : void SAL_CALL setMaximum( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
655 : sal_Int32 SAL_CALL getMaximum( ) throw(::com::sun::star::uno::RuntimeException);
656 : void SAL_CALL setLineIncrement( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
657 : sal_Int32 SAL_CALL getLineIncrement( ) throw(::com::sun::star::uno::RuntimeException);
658 : void SAL_CALL setBlockIncrement( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
659 : sal_Int32 SAL_CALL getBlockIncrement( ) throw(::com::sun::star::uno::RuntimeException);
660 : void SAL_CALL setVisibleSize( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
661 : sal_Int32 SAL_CALL getVisibleSize( ) throw(::com::sun::star::uno::RuntimeException);
662 : void SAL_CALL setOrientation( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
663 : sal_Int32 SAL_CALL getOrientation( ) throw(::com::sun::star::uno::RuntimeException);
664 :
665 : // why isn't this part of the XScrollbar?
666 : void SAL_CALL setMinimum( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
667 : sal_Int32 SAL_CALL getMinimum( ) throw(::com::sun::star::uno::RuntimeException);
668 :
669 : // ::com::sun::star::awt::VclWindowPeer
670 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
671 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
672 :
673 : // ::com::sun::star::awt::XLayoutConstrains
674 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize() throw(::com::sun::star::uno::RuntimeException);
675 : static ::com::sun::star::awt::Size SAL_CALL implGetMinimumSize( Window* p ) throw(::com::sun::star::uno::RuntimeException);
676 :
677 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
678 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
679 : };
680 :
681 : // ----------------------------------------------------
682 : // class VCLXEdit
683 : // ----------------------------------------------------
684 0 : class TOOLKIT_DLLPUBLIC VCLXEdit : public ::com::sun::star::awt::XTextComponent,
685 : public ::com::sun::star::awt::XTextEditField,
686 : public ::com::sun::star::awt::XTextLayoutConstrains,
687 : public VCLXWindow
688 : {
689 : private:
690 : TextListenerMultiplexer maTextListeners;
691 :
692 : protected:
693 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
694 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
695 :
696 :
697 : public:
698 : VCLXEdit();
699 :
700 0 : TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
701 :
702 : // ::com::sun::star::uno::XInterface
703 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
704 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
705 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
706 :
707 : // ::com::sun::star::lang::XTypeProvider
708 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
709 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
710 :
711 :
712 : // ::com::sun::star::lang::XComponent
713 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
714 :
715 : // ::com::sun::star::awt::XTextComponent
716 : void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
717 : void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
718 : void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
719 : void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
720 : ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
721 : ::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException);
722 : void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
723 : ::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException);
724 : sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException);
725 : void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
726 : void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
727 : sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException);
728 :
729 : // ::com::sun::star::awt::XTextEditField:
730 : void SAL_CALL setEchoChar( sal_Unicode cEcho ) throw(::com::sun::star::uno::RuntimeException);
731 :
732 : // ::com::sun::star::awt::XLayoutConstrains
733 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
734 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
735 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
736 :
737 : // ::com::sun::star::awt::XTextLayoutConstrains
738 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
739 : void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
740 :
741 : // ::com::sun::star::awt::VclWindowPeer
742 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
743 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
744 :
745 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
746 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
747 : };
748 :
749 : // ----------------------------------------------------
750 : // class VCLXListBox
751 : // ----------------------------------------------------
752 : typedef ::cppu::ImplInheritanceHelper3 < VCLXWindow
753 : , ::com::sun::star::awt::XListBox
754 : , ::com::sun::star::awt::XTextLayoutConstrains
755 : , ::com::sun::star::awt::XItemListListener
756 : > VCLXListBox_Base;
757 0 : class VCLXListBox : public VCLXListBox_Base
758 : {
759 : private:
760 : ActionListenerMultiplexer maActionListeners;
761 : ItemListenerMultiplexer maItemListeners;
762 :
763 : protected:
764 : virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
765 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
766 : CreateAccessibleContext();
767 : void ImplCallItemListeners();
768 :
769 : public:
770 : VCLXListBox();
771 :
772 : // ::com::sun::star::lang::XComponent
773 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
774 :
775 : // ::com::sun::star::awt::XListBox
776 : void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
777 : void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
778 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
779 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
780 : void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
781 : void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
782 : void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
783 : sal_Int16 SAL_CALL getItemCount( ) throw(::com::sun::star::uno::RuntimeException);
784 : ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
785 : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems( ) throw(::com::sun::star::uno::RuntimeException);
786 : sal_Int16 SAL_CALL getSelectedItemPos( ) throw(::com::sun::star::uno::RuntimeException);
787 : ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos( ) throw(::com::sun::star::uno::RuntimeException);
788 : ::rtl::OUString SAL_CALL getSelectedItem( ) throw(::com::sun::star::uno::RuntimeException);
789 : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedItems( ) throw(::com::sun::star::uno::RuntimeException);
790 : void SAL_CALL selectItemPos( sal_Int16 nPos, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
791 : void SAL_CALL selectItemsPos( const ::com::sun::star::uno::Sequence< sal_Int16 >& aPositions, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
792 : void SAL_CALL selectItem( const ::rtl::OUString& aItem, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
793 : sal_Bool SAL_CALL isMutipleMode( ) throw(::com::sun::star::uno::RuntimeException);
794 : void SAL_CALL setMultipleMode( sal_Bool bMulti ) throw(::com::sun::star::uno::RuntimeException);
795 : sal_Int16 SAL_CALL getDropDownLineCount( ) throw(::com::sun::star::uno::RuntimeException);
796 : void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
797 : void SAL_CALL makeVisible( sal_Int16 nEntry ) throw(::com::sun::star::uno::RuntimeException);
798 :
799 : // ::com::sun::star::awt::XLayoutConstrains
800 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
801 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
802 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
803 :
804 : // ::com::sun::star::awt::XTextLayoutConstrains
805 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
806 : void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
807 :
808 : // ::com::sun::star::awt::VclWindowPeer
809 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
810 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
811 :
812 : // XItemListListener
813 : virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
814 : virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
815 : virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
816 : virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
817 : virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
818 :
819 : // XEventListener
820 : virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& i_rEvent ) throw (::com::sun::star::uno::RuntimeException);
821 :
822 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
823 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
824 : };
825 :
826 : // ----------------------------------------------------
827 : // class VCLXComboBox
828 : // ----------------------------------------------------
829 : typedef ::cppu::ImplInheritanceHelper2 < VCLXEdit
830 : , ::com::sun::star::awt::XComboBox
831 : , ::com::sun::star::awt::XItemListListener > VCLXComboBox_Base;
832 : class VCLXComboBox : public VCLXComboBox_Base
833 : {
834 : private:
835 : ActionListenerMultiplexer maActionListeners;
836 : ItemListenerMultiplexer maItemListeners;
837 :
838 : protected:
839 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
840 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
841 :
842 :
843 : public:
844 : VCLXComboBox();
845 : ~VCLXComboBox();
846 :
847 : // ::com::sun::star::lang::XComponent
848 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
849 :
850 : // ::com::sun::star::awt::XComboBox
851 : void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
852 : void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
853 : void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
854 : void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
855 : void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
856 : void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
857 : void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
858 : sal_Int16 SAL_CALL getItemCount( ) throw(::com::sun::star::uno::RuntimeException);
859 : ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
860 : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems( ) throw(::com::sun::star::uno::RuntimeException);
861 : sal_Int16 SAL_CALL getDropDownLineCount( ) throw(::com::sun::star::uno::RuntimeException);
862 : void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
863 :
864 : // ::com::sun::star::awt::XLayoutConstrains
865 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
866 : ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
867 : ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize ) throw(::com::sun::star::uno::RuntimeException);
868 :
869 : // ::com::sun::star::awt::XTextLayoutConstrains
870 : ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
871 : void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
872 :
873 : // ::com::sun::star::awt::VclWindowPeer
874 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
875 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
876 :
877 : // XItemListListener
878 : virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
879 : virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
880 : virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
881 : virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
882 : virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
883 : // XEventListener
884 : virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& i_rEvent ) throw (::com::sun::star::uno::RuntimeException);
885 :
886 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
887 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
888 : };
889 :
890 : // ----------------------------------------------------
891 : // class VCLXSpinField
892 : // ----------------------------------------------------
893 0 : class TOOLKIT_DLLPUBLIC VCLXSpinField : public ::com::sun::star::awt::XSpinField,
894 : public VCLXEdit
895 : {
896 : private:
897 : SpinListenerMultiplexer maSpinListeners;
898 :
899 : protected:
900 : void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
901 :
902 : public:
903 : VCLXSpinField();
904 :
905 : // ::com::sun::star::uno::XInterface
906 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
907 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
908 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
909 :
910 : // ::com::sun::star::lang::XTypeProvider
911 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
912 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
913 :
914 :
915 : // ::com::sun::star::awt::XSpinField
916 : void SAL_CALL addSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
917 : void SAL_CALL removeSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
918 : void SAL_CALL up( ) throw(::com::sun::star::uno::RuntimeException);
919 : void SAL_CALL down( ) throw(::com::sun::star::uno::RuntimeException);
920 : void SAL_CALL first( ) throw(::com::sun::star::uno::RuntimeException);
921 : void SAL_CALL last( ) throw(::com::sun::star::uno::RuntimeException);
922 : void SAL_CALL enableRepeat( sal_Bool bRepeat ) throw(::com::sun::star::uno::RuntimeException);
923 :
924 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
925 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
926 : };
927 :
928 : // ----------------------------------------------------
929 : // class VCLXFormattedSpinField
930 : // ----------------------------------------------------
931 : class VCLXFormattedSpinField : public VCLXSpinField
932 : {
933 : private:
934 : FormatterBase* mpFormatter;
935 :
936 : protected:
937 0 : FormatterBase* GetFormatter() const { return GetWindow() ? mpFormatter : NULL; }
938 :
939 : public:
940 : VCLXFormattedSpinField();
941 : ~VCLXFormattedSpinField();
942 :
943 0 : void SetFormatter( FormatterBase* pFormatter ) { mpFormatter = pFormatter; }
944 :
945 : void setStrictFormat( sal_Bool bStrict );
946 : sal_Bool isStrictFormat();
947 :
948 : // ::com::sun::star::awt::VclWindowPeer
949 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
950 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
951 :
952 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
953 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
954 : };
955 :
956 : // ----------------------------------------------------
957 : // class VCLXDateField
958 : // ----------------------------------------------------
959 : class TOOLKIT_DLLPUBLIC VCLXDateField : public ::com::sun::star::awt::XDateField,
960 : public VCLXFormattedSpinField
961 : {
962 : public:
963 : VCLXDateField();
964 : ~VCLXDateField();
965 :
966 : // ::com::sun::star::uno::XInterface
967 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
968 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
969 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
970 :
971 : // ::com::sun::star::lang::XTypeProvider
972 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
973 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
974 :
975 :
976 : // ::com::sun::star::awt::XDateField
977 : void SAL_CALL setDate( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
978 : sal_Int32 SAL_CALL getDate( ) throw(::com::sun::star::uno::RuntimeException);
979 : void SAL_CALL setMin( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
980 : sal_Int32 SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
981 : void SAL_CALL setMax( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
982 : sal_Int32 SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
983 : void SAL_CALL setFirst( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
984 : sal_Int32 SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
985 : void SAL_CALL setLast( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
986 : sal_Int32 SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
987 : void SAL_CALL setLongFormat( sal_Bool bLong ) throw(::com::sun::star::uno::RuntimeException);
988 : sal_Bool SAL_CALL isLongFormat( ) throw(::com::sun::star::uno::RuntimeException);
989 : void SAL_CALL setEmpty( ) throw(::com::sun::star::uno::RuntimeException);
990 : sal_Bool SAL_CALL isEmpty( ) throw(::com::sun::star::uno::RuntimeException);
991 : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
992 : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
993 :
994 : // ::com::sun::star::awt::VclWindowPeer
995 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
996 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
997 :
998 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
999 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1000 : };
1001 :
1002 : // ----------------------------------------------------
1003 : // class VCLXTimeField
1004 : // ----------------------------------------------------
1005 : class VCLXTimeField : public ::com::sun::star::awt::XTimeField,
1006 : public VCLXFormattedSpinField
1007 : {
1008 : public:
1009 : VCLXTimeField();
1010 : ~VCLXTimeField();
1011 :
1012 : // ::com::sun::star::uno::XInterface
1013 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1014 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
1015 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
1016 :
1017 : // ::com::sun::star::lang::XTypeProvider
1018 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1019 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1020 :
1021 : // ::com::sun::star::awt::XTimeField
1022 : void SAL_CALL setTime( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1023 : sal_Int32 SAL_CALL getTime( ) throw(::com::sun::star::uno::RuntimeException);
1024 : void SAL_CALL setMin( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1025 : sal_Int32 SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
1026 : void SAL_CALL setMax( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1027 : sal_Int32 SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
1028 : void SAL_CALL setFirst( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1029 : sal_Int32 SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
1030 : void SAL_CALL setLast( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1031 : sal_Int32 SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
1032 : void SAL_CALL setEmpty( ) throw(::com::sun::star::uno::RuntimeException);
1033 : sal_Bool SAL_CALL isEmpty( ) throw(::com::sun::star::uno::RuntimeException);
1034 : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1035 : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
1036 :
1037 : // ::com::sun::star::awt::VclWindowPeer
1038 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
1039 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
1040 :
1041 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
1042 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1043 : };
1044 :
1045 : // ----------------------------------------------------
1046 : // class VCLXNumericField
1047 : // ----------------------------------------------------
1048 : class VCLXNumericField : public ::com::sun::star::awt::XNumericField,
1049 : public VCLXFormattedSpinField
1050 : {
1051 : public:
1052 : VCLXNumericField();
1053 : ~VCLXNumericField();
1054 :
1055 : // ::com::sun::star::uno::XInterface
1056 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1057 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
1058 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
1059 :
1060 : // ::com::sun::star::lang::XTypeProvider
1061 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1062 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1063 :
1064 : // ::com::sun::star::awt::XNumericField
1065 : void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
1066 : double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
1067 : void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
1068 : double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
1069 : void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
1070 : double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
1071 : void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
1072 : double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
1073 : void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
1074 : double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
1075 : void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
1076 : double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
1077 : void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
1078 : sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
1079 : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1080 : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
1081 :
1082 : // ::com::sun::star::awt::VclWindowPeer
1083 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
1084 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
1085 :
1086 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
1087 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1088 : };
1089 :
1090 : // ----------------------------------------------------
1091 : // class VCLXMetricField
1092 : // ----------------------------------------------------
1093 : class MetricFormatter;
1094 : class MetricField;
1095 : class VCLXMetricField : public ::com::sun::star::awt::XMetricField,
1096 : public VCLXFormattedSpinField
1097 : {
1098 : MetricFormatter *GetMetricFormatter() throw(::com::sun::star::uno::RuntimeException);
1099 : MetricField *GetMetricField() throw(::com::sun::star::uno::RuntimeException);
1100 : void CallListeners();
1101 : public:
1102 : VCLXMetricField();
1103 : ~VCLXMetricField();
1104 :
1105 : // ::com::sun::star::uno::XInterface
1106 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1107 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
1108 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
1109 :
1110 : // ::com::sun::star::lang::XTypeProvider
1111 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1112 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1113 :
1114 : // ::com::sun::star::awt::XMetricField
1115 : virtual void SAL_CALL setValue( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1116 : virtual void SAL_CALL setUserValue( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1117 : virtual ::sal_Int64 SAL_CALL getValue( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1118 : virtual ::sal_Int64 SAL_CALL getCorrectedValue( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1119 : virtual void SAL_CALL setMin( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1120 : virtual ::sal_Int64 SAL_CALL getMin( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1121 : virtual void SAL_CALL setMax( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1122 : virtual ::sal_Int64 SAL_CALL getMax( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1123 : virtual void SAL_CALL setFirst( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1124 : virtual ::sal_Int64 SAL_CALL getFirst( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1125 : virtual void SAL_CALL setLast( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1126 : virtual ::sal_Int64 SAL_CALL getLast( ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
1127 : virtual void SAL_CALL setSpinSize( ::sal_Int64 Value ) throw (::com::sun::star::uno::RuntimeException);
1128 : virtual ::sal_Int64 SAL_CALL getSpinSize( ) throw (::com::sun::star::uno::RuntimeException);
1129 : virtual void SAL_CALL setDecimalDigits( ::sal_Int16 nDigits ) throw (::com::sun::star::uno::RuntimeException);
1130 : virtual ::sal_Int16 SAL_CALL getDecimalDigits( ) throw (::com::sun::star::uno::RuntimeException);
1131 : virtual void SAL_CALL setStrictFormat( ::sal_Bool bStrict ) throw (::com::sun::star::uno::RuntimeException);
1132 : virtual ::sal_Bool SAL_CALL isStrictFormat( ) throw (::com::sun::star::uno::RuntimeException);
1133 :
1134 : // ::com::sun::star::awt::VclWindowPeer
1135 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
1136 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
1137 :
1138 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
1139 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1140 : };
1141 :
1142 : // ----------------------------------------------------
1143 : // class VCLXCurrencyField
1144 : // ----------------------------------------------------
1145 : class VCLXCurrencyField : public ::com::sun::star::awt::XCurrencyField,
1146 : public VCLXFormattedSpinField
1147 : {
1148 : public:
1149 : VCLXCurrencyField();
1150 : ~VCLXCurrencyField();
1151 :
1152 : // ::com::sun::star::uno::XInterface
1153 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1154 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
1155 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
1156 :
1157 : // ::com::sun::star::lang::XTypeProvider
1158 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1159 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1160 :
1161 :
1162 : // ::com::sun::star::awt::XCurrencyField
1163 : void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
1164 : double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
1165 : void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
1166 : double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
1167 : void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
1168 : double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
1169 : void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
1170 : double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
1171 : void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
1172 : double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
1173 : void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
1174 : double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
1175 : void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
1176 : sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
1177 : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1178 : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
1179 :
1180 : // ::com::sun::star::awt::VclWindowPeer
1181 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
1182 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
1183 :
1184 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
1185 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1186 : };
1187 :
1188 : // ----------------------------------------------------
1189 : // class VCLXPatternField
1190 : // ----------------------------------------------------
1191 : class VCLXPatternField : public ::com::sun::star::awt::XPatternField,
1192 : public VCLXFormattedSpinField
1193 : {
1194 : public:
1195 : VCLXPatternField();
1196 : ~VCLXPatternField();
1197 :
1198 : // ::com::sun::star::uno::XInterface
1199 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1200 0 : void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
1201 0 : void SAL_CALL release() throw() { OWeakObject::release(); }
1202 :
1203 : // ::com::sun::star::lang::XTypeProvider
1204 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1205 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1206 :
1207 :
1208 : // ::com::sun::star::awt::XPatternField
1209 : void SAL_CALL setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
1210 : void SAL_CALL getMasks( ::rtl::OUString& EditMask, ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
1211 : void SAL_CALL setString( const ::rtl::OUString& Str ) throw(::com::sun::star::uno::RuntimeException);
1212 : ::rtl::OUString SAL_CALL getString( ) throw(::com::sun::star::uno::RuntimeException);
1213 : void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1214 : sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
1215 :
1216 : // ::com::sun::star::awt::VclWindowPeer
1217 : void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
1218 : ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
1219 :
1220 : static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
1221 0 : virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
1222 : };
1223 :
1224 : // ----------------------------------------------------
1225 : // class VCLXToolBox
1226 : // ----------------------------------------------------
1227 : class VCLXToolBox : public VCLXWindow
1228 : {
1229 : private:
1230 :
1231 : protected:
1232 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
1233 : CreateAccessibleContext();
1234 :
1235 : public:
1236 : VCLXToolBox();
1237 : ~VCLXToolBox();
1238 : };
1239 :
1240 : #endif // _TOOLKIT_AWT_VCLXWINDOWS_HXX_
1241 :
1242 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|