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