xref: /trunk/main/toolkit/inc/toolkit/controls/unocontrols.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _TOOLKIT_HELPER_UNOCONTROLS_HXX_
29*cdf0e10cSrcweir #define _TOOLKIT_HELPER_UNOCONTROLS_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <toolkit/dllapi.h>
32*cdf0e10cSrcweir #include <com/sun/star/awt/XTextComponent.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/awt/XTextListener.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/awt/XLayoutConstrains.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
36*cdf0e10cSrcweir #include <com/sun/star/awt/XButton.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/awt/XToggleButton.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/awt/XRadioButton.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/awt/XItemListener.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/awt/XCheckBox.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/awt/XFixedHyperlink.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/awt/XFixedText.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/awt/XListBox.hpp>
44*cdf0e10cSrcweir #include <com/sun/star/awt/XComboBox.hpp>
45*cdf0e10cSrcweir #include <com/sun/star/awt/XDateField.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/awt/XSpinField.hpp>
47*cdf0e10cSrcweir #include <com/sun/star/awt/XTimeField.hpp>
48*cdf0e10cSrcweir #include <com/sun/star/awt/XNumericField.hpp>
49*cdf0e10cSrcweir #include <com/sun/star/awt/XCurrencyField.hpp>
50*cdf0e10cSrcweir #include <com/sun/star/awt/XPatternField.hpp>
51*cdf0e10cSrcweir #include <com/sun/star/awt/XProgressBar.hpp>
52*cdf0e10cSrcweir #include <com/sun/star/awt/XItemList.hpp>
53*cdf0e10cSrcweir #include <com/sun/star/graphic/XGraphicObject.hpp>
54*cdf0e10cSrcweir #include <toolkit/controls/unocontrolmodel.hxx>
55*cdf0e10cSrcweir #include <toolkit/controls/unocontrolbase.hxx>
56*cdf0e10cSrcweir #include <toolkit/helper/macros.hxx>
57*cdf0e10cSrcweir #include <toolkit/helper/servicenames.hxx>
58*cdf0e10cSrcweir #include <vcl/bitmapex.hxx>
59*cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx>
60*cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>
61*cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
62*cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
63*cdf0e10cSrcweir #include <comphelper/uno3.hxx>
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir #include <list>
66*cdf0e10cSrcweir #include <vector>
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir #include <boost/scoped_ptr.hpp>
69*cdf0e10cSrcweir #include <boost/optional.hpp>
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir #define UNO_NAME_GRAPHOBJ_URLPREFIX                             "vnd.sun.star.GraphicObject:"
72*cdf0e10cSrcweir #define UNO_NAME_GRAPHOBJ_URLPKGPREFIX                  "vnd.sun.star.Package:"
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir //  ----------------------------------------------------
76*cdf0e10cSrcweir //  class UnoControlEditModel
77*cdf0e10cSrcweir //  ----------------------------------------------------
78*cdf0e10cSrcweir class UnoControlEditModel : public UnoControlModel
79*cdf0e10cSrcweir {
80*cdf0e10cSrcweir protected:
81*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
82*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir public:
85*cdf0e10cSrcweir                         UnoControlEditModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
86*cdf0e10cSrcweir                         UnoControlEditModel( const UnoControlEditModel& rModel ) : UnoControlModel( rModel ) {;}
87*cdf0e10cSrcweir 
88*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlEditModel( *this ); }
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
91*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
94*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir     // XServiceInfo
98*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlEditModel, UnoControlModel, szServiceName2_UnoControlEditModel )
99*cdf0e10cSrcweir };
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir //  ----------------------------------------------------
102*cdf0e10cSrcweir //  class UnoEditControl
103*cdf0e10cSrcweir //  ----------------------------------------------------
104*cdf0e10cSrcweir typedef ::cppu::ImplHelper4  <   ::com::sun::star::awt::XTextComponent
105*cdf0e10cSrcweir                              ,   ::com::sun::star::awt::XTextListener
106*cdf0e10cSrcweir                              ,   ::com::sun::star::awt::XLayoutConstrains
107*cdf0e10cSrcweir                              ,   ::com::sun::star::awt::XTextLayoutConstrains
108*cdf0e10cSrcweir                              >   UnoEditControl_Base;
109*cdf0e10cSrcweir class TOOLKIT_DLLPUBLIC UnoEditControl    :public UnoControlBase
110*cdf0e10cSrcweir                                             ,public UnoEditControl_Base
111*cdf0e10cSrcweir {
112*cdf0e10cSrcweir private:
113*cdf0e10cSrcweir     TextListenerMultiplexer maTextListeners;
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir     // Not all fields derived from UnoEditCOntrol have the property "Text"
116*cdf0e10cSrcweir     // They only support XTextComponent, so keep the text
117*cdf0e10cSrcweir     // here, maybe there is no Peer when calling setText()...
118*cdf0e10cSrcweir     ::rtl::OUString     maText;
119*cdf0e10cSrcweir     sal_uInt16              mnMaxTextLen;
120*cdf0e10cSrcweir 
121*cdf0e10cSrcweir     sal_Bool            mbSetTextInPeer;
122*cdf0e10cSrcweir     sal_Bool            mbSetMaxTextLenInPeer;
123*cdf0e10cSrcweir     sal_Bool            mbHasTextProperty;
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir public:
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir                                 UnoEditControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
128*cdf0e10cSrcweir     ::rtl::OUString             GetComponentServiceName();
129*cdf0e10cSrcweir     TextListenerMultiplexer&    GetTextListeners()  { return maTextListeners; }
130*cdf0e10cSrcweir 
131*cdf0e10cSrcweir     void                        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
134*cdf0e10cSrcweir     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
135*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
136*cdf0e10cSrcweir 
137*cdf0e10cSrcweir     // disambiguate XInterface
138*cdf0e10cSrcweir     DECLARE_XINTERFACE()
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir     // XAggregation
141*cdf0e10cSrcweir     ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
142*cdf0e10cSrcweir 
143*cdf0e10cSrcweir     // XTypeProvider
144*cdf0e10cSrcweir     DECLARE_XTYPEPROVIDER()
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir     // XTextListener
147*cdf0e10cSrcweir     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
148*cdf0e10cSrcweir 
149*cdf0e10cSrcweir     // XTextComponent
150*cdf0e10cSrcweir     void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
151*cdf0e10cSrcweir     void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
152*cdf0e10cSrcweir     void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
153*cdf0e10cSrcweir     void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
154*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
155*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getSelectedText(  ) throw(::com::sun::star::uno::RuntimeException);
156*cdf0e10cSrcweir     void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
157*cdf0e10cSrcweir     ::com::sun::star::awt::Selection SAL_CALL getSelection(  ) throw(::com::sun::star::uno::RuntimeException);
158*cdf0e10cSrcweir     sal_Bool SAL_CALL isEditable(  ) throw(::com::sun::star::uno::RuntimeException);
159*cdf0e10cSrcweir     void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
160*cdf0e10cSrcweir     void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
161*cdf0e10cSrcweir     sal_Int16 SAL_CALL getMaxTextLen(  ) throw(::com::sun::star::uno::RuntimeException);
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir     // XLayoutConstrains
164*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
165*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
166*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir     // XTextLayoutConstrains
169*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
170*cdf0e10cSrcweir     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
171*cdf0e10cSrcweir 
172*cdf0e10cSrcweir     // XServiceInfo
173*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoEditControl, UnoControlBase, szServiceName2_UnoControlEdit )
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir     sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
176*cdf0e10cSrcweir };
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir //  ----------------------------------------------------
179*cdf0e10cSrcweir //  class UnoControlFileControlModel
180*cdf0e10cSrcweir //  ----------------------------------------------------
181*cdf0e10cSrcweir class UnoControlFileControlModel : public UnoControlModel
182*cdf0e10cSrcweir {
183*cdf0e10cSrcweir protected:
184*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
185*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir public:
188*cdf0e10cSrcweir                         UnoControlFileControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
189*cdf0e10cSrcweir                         UnoControlFileControlModel( const UnoControlFileControlModel& rModel ) : UnoControlModel( rModel ) {;}
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlFileControlModel( *this ); }
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
194*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
195*cdf0e10cSrcweir 
196*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
197*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
200*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFileControlModel, UnoControlModel, szServiceName2_UnoControlFileControlModel )
201*cdf0e10cSrcweir };
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir //  ----------------------------------------------------
204*cdf0e10cSrcweir //  class UnoFileControl
205*cdf0e10cSrcweir //  ----------------------------------------------------
206*cdf0e10cSrcweir class UnoFileControl : public UnoEditControl
207*cdf0e10cSrcweir {
208*cdf0e10cSrcweir public:
209*cdf0e10cSrcweir                         UnoFileControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
210*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
213*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoFileControl, UnoEditControl, szServiceName2_UnoControlFileControl )
214*cdf0e10cSrcweir };
215*cdf0e10cSrcweir 
216*cdf0e10cSrcweir //  ----------------------------------------------------
217*cdf0e10cSrcweir //  class GraphicControlModel
218*cdf0e10cSrcweir //  ----------------------------------------------------
219*cdf0e10cSrcweir class GraphicControlModel : public UnoControlModel
220*cdf0e10cSrcweir {
221*cdf0e10cSrcweir private:
222*cdf0e10cSrcweir     bool                                                                                    mbAdjustingImagePosition;
223*cdf0e10cSrcweir     bool                                                                                    mbAdjustingGraphic;
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > mxGrfObj;
226*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > getGraphicFromURL_nothrow( const ::rtl::OUString& _rURL );
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir protected:
229*cdf0e10cSrcweir     GraphicControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory )
230*cdf0e10cSrcweir         :UnoControlModel( i_factory )
231*cdf0e10cSrcweir         ,mbAdjustingImagePosition( false )
232*cdf0e10cSrcweir         ,mbAdjustingGraphic( false )
233*cdf0e10cSrcweir     {
234*cdf0e10cSrcweir     }
235*cdf0e10cSrcweir     GraphicControlModel( const GraphicControlModel& _rSource ) : UnoControlModel( _rSource ), mbAdjustingImagePosition( false ), mbAdjustingGraphic( false ) { }
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir     // ::cppu::OPropertySetHelper
238*cdf0e10cSrcweir     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir     // UnoControlModel
241*cdf0e10cSrcweir     ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
242*cdf0e10cSrcweir 
243*cdf0e10cSrcweir private:
244*cdf0e10cSrcweir         GraphicControlModel& operator=( const GraphicControlModel& );   // never implemented
245*cdf0e10cSrcweir };
246*cdf0e10cSrcweir 
247*cdf0e10cSrcweir //  ----------------------------------------------------
248*cdf0e10cSrcweir //  class UnoControlButtonModel
249*cdf0e10cSrcweir //  ----------------------------------------------------
250*cdf0e10cSrcweir class UnoControlButtonModel : public GraphicControlModel
251*cdf0e10cSrcweir {
252*cdf0e10cSrcweir protected:
253*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
254*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
255*cdf0e10cSrcweir 
256*cdf0e10cSrcweir public:
257*cdf0e10cSrcweir                         UnoControlButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
258*cdf0e10cSrcweir                         UnoControlButtonModel( const UnoControlButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlButtonModel( *this ); }
261*cdf0e10cSrcweir 
262*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
263*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
266*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
267*cdf0e10cSrcweir 
268*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
269*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlButtonModel, GraphicControlModel, szServiceName2_UnoControlButtonModel )
270*cdf0e10cSrcweir };
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir //  ----------------------------------------------------
273*cdf0e10cSrcweir //  class UnoButtonControl
274*cdf0e10cSrcweir //  ----------------------------------------------------
275*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
276*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XButton
277*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XToggleButton
278*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XLayoutConstrains
279*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemListener
280*cdf0e10cSrcweir                                             >   UnoButtonControl_Base;
281*cdf0e10cSrcweir class UnoButtonControl :    public UnoButtonControl_Base
282*cdf0e10cSrcweir {
283*cdf0e10cSrcweir private:
284*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
285*cdf0e10cSrcweir     ItemListenerMultiplexer     maItemListeners;
286*cdf0e10cSrcweir     ::rtl::OUString             maActionCommand;
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir public:
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir                         UnoButtonControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
291*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
292*cdf0e10cSrcweir 
293*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
294*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir     // ::com::sun::star::awt::XButton
297*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
298*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
299*cdf0e10cSrcweir     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
300*cdf0e10cSrcweir     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
301*cdf0e10cSrcweir 
302*cdf0e10cSrcweir     // ::com::sun::star::awt::XToggleButton
303*cdf0e10cSrcweir     // ::com::sun::star::awt::XItemEventBroadcaster
304*cdf0e10cSrcweir     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
305*cdf0e10cSrcweir     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
306*cdf0e10cSrcweir 
307*cdf0e10cSrcweir     // ::com::sun::star::lang::XEventListener
308*cdf0e10cSrcweir     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir     // XItemListener
311*cdf0e10cSrcweir     virtual void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException);
312*cdf0e10cSrcweir 
313*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
314*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
315*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
316*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
319*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoButtonControl, UnoControlBase, szServiceName2_UnoControlButton )
320*cdf0e10cSrcweir };
321*cdf0e10cSrcweir 
322*cdf0e10cSrcweir //  ----------------------------------------------------
323*cdf0e10cSrcweir //  class UnoControlImageControlModel
324*cdf0e10cSrcweir //  ----------------------------------------------------
325*cdf0e10cSrcweir class UnoControlImageControlModel : public GraphicControlModel
326*cdf0e10cSrcweir {
327*cdf0e10cSrcweir private:
328*cdf0e10cSrcweir     bool    mbAdjustingImageScaleMode;
329*cdf0e10cSrcweir 
330*cdf0e10cSrcweir protected:
331*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
332*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
333*cdf0e10cSrcweir 
334*cdf0e10cSrcweir public:
335*cdf0e10cSrcweir                                     UnoControlImageControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
336*cdf0e10cSrcweir                                     UnoControlImageControlModel( const UnoControlImageControlModel& rModel ) : GraphicControlModel( rModel ), mbAdjustingImageScaleMode( false ) { }
337*cdf0e10cSrcweir 
338*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlImageControlModel( *this ); }
339*cdf0e10cSrcweir 
340*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
341*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
342*cdf0e10cSrcweir 
343*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
344*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
347*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlImageControlModel, GraphicControlModel, szServiceName2_UnoControlImageControlModel )
348*cdf0e10cSrcweir 
349*cdf0e10cSrcweir     // ::cppu::OPropertySetHelper
350*cdf0e10cSrcweir     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
351*cdf0e10cSrcweir };
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir //  ----------------------------------------------------
354*cdf0e10cSrcweir //  class UnoImageControlControl
355*cdf0e10cSrcweir //  ----------------------------------------------------
356*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper1   <   UnoControlBase
357*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XLayoutConstrains
358*cdf0e10cSrcweir                                             >   UnoImageControlControl_Base;
359*cdf0e10cSrcweir class UnoImageControlControl : public UnoImageControlControl_Base
360*cdf0e10cSrcweir {
361*cdf0e10cSrcweir private:
362*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
363*cdf0e10cSrcweir     ::rtl::OUString             maActionCommand;
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir public:
366*cdf0e10cSrcweir 
367*cdf0e10cSrcweir                             UnoImageControlControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
368*cdf0e10cSrcweir     ::rtl::OUString         GetComponentServiceName();
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir     // ::com::sun::star::awt::XControl
373*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
374*cdf0e10cSrcweir 
375*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
376*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
377*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
378*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
379*cdf0e10cSrcweir 
380*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
381*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoImageControlControl, UnoControlBase, szServiceName2_UnoControlImageControl )
382*cdf0e10cSrcweir };
383*cdf0e10cSrcweir 
384*cdf0e10cSrcweir //  ----------------------------------------------------
385*cdf0e10cSrcweir //  class UnoControlRadioButtonModel
386*cdf0e10cSrcweir //  ----------------------------------------------------
387*cdf0e10cSrcweir class UnoControlRadioButtonModel :  public GraphicControlModel
388*cdf0e10cSrcweir 
389*cdf0e10cSrcweir {
390*cdf0e10cSrcweir protected:
391*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
392*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
393*cdf0e10cSrcweir 
394*cdf0e10cSrcweir public:
395*cdf0e10cSrcweir                         UnoControlRadioButtonModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
396*cdf0e10cSrcweir                         UnoControlRadioButtonModel( const UnoControlRadioButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
397*cdf0e10cSrcweir 
398*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlRadioButtonModel( *this ); }
399*cdf0e10cSrcweir 
400*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
401*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
402*cdf0e10cSrcweir 
403*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
404*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
405*cdf0e10cSrcweir 
406*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
407*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlRadioButtonModel, GraphicControlModel, szServiceName2_UnoControlRadioButtonModel )
408*cdf0e10cSrcweir 
409*cdf0e10cSrcweir };
410*cdf0e10cSrcweir 
411*cdf0e10cSrcweir //  ----------------------------------------------------
412*cdf0e10cSrcweir //  class UnoRadioButtonControl
413*cdf0e10cSrcweir //  ----------------------------------------------------
414*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
415*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XButton
416*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XRadioButton
417*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemListener
418*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XLayoutConstrains
419*cdf0e10cSrcweir                                             >   UnoRadioButtonControl_Base;
420*cdf0e10cSrcweir class UnoRadioButtonControl : public UnoRadioButtonControl_Base
421*cdf0e10cSrcweir {
422*cdf0e10cSrcweir private:
423*cdf0e10cSrcweir     ItemListenerMultiplexer     maItemListeners;
424*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
425*cdf0e10cSrcweir     ::rtl::OUString             maActionCommand;
426*cdf0e10cSrcweir 
427*cdf0e10cSrcweir public:
428*cdf0e10cSrcweir 
429*cdf0e10cSrcweir                             UnoRadioButtonControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
430*cdf0e10cSrcweir     ::rtl::OUString         GetComponentServiceName();
431*cdf0e10cSrcweir 
432*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
433*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
434*cdf0e10cSrcweir     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
435*cdf0e10cSrcweir 
436*cdf0e10cSrcweir     // ::com::sun::star::awt::XControl
437*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
438*cdf0e10cSrcweir 
439*cdf0e10cSrcweir     // ::com::sun::star::awt::XButton
440*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
441*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
442*cdf0e10cSrcweir     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
443*cdf0e10cSrcweir 
444*cdf0e10cSrcweir     // ::com::sun::star::awt::XRadioButton
445*cdf0e10cSrcweir     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
446*cdf0e10cSrcweir     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
447*cdf0e10cSrcweir     sal_Bool SAL_CALL getState(  ) throw(::com::sun::star::uno::RuntimeException);
448*cdf0e10cSrcweir     void SAL_CALL setState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
449*cdf0e10cSrcweir     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
450*cdf0e10cSrcweir 
451*cdf0e10cSrcweir     // ::com::sun::star::awt::XItemListener
452*cdf0e10cSrcweir     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
455*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
456*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
457*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
458*cdf0e10cSrcweir 
459*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
460*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoRadioButtonControl, UnoControlBase, szServiceName2_UnoControlRadioButton )
461*cdf0e10cSrcweir 
462*cdf0e10cSrcweir };
463*cdf0e10cSrcweir 
464*cdf0e10cSrcweir //  ----------------------------------------------------
465*cdf0e10cSrcweir //  class UnoControlCheckBoxModel
466*cdf0e10cSrcweir //  ----------------------------------------------------
467*cdf0e10cSrcweir class UnoControlCheckBoxModel : public GraphicControlModel
468*cdf0e10cSrcweir {
469*cdf0e10cSrcweir protected:
470*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
471*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
472*cdf0e10cSrcweir 
473*cdf0e10cSrcweir public:
474*cdf0e10cSrcweir                         UnoControlCheckBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
475*cdf0e10cSrcweir                         UnoControlCheckBoxModel( const UnoControlCheckBoxModel& rModel ) : GraphicControlModel( rModel ) {;}
476*cdf0e10cSrcweir 
477*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlCheckBoxModel( *this ); }
478*cdf0e10cSrcweir 
479*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
480*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
481*cdf0e10cSrcweir 
482*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
483*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
484*cdf0e10cSrcweir 
485*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
486*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlCheckBoxModel, GraphicControlModel, szServiceName2_UnoControlCheckBoxModel )
487*cdf0e10cSrcweir };
488*cdf0e10cSrcweir 
489*cdf0e10cSrcweir //  ----------------------------------------------------
490*cdf0e10cSrcweir //  class UnoCheckBoxControl
491*cdf0e10cSrcweir //  ----------------------------------------------------
492*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper4   <   UnoControlBase
493*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XButton
494*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XCheckBox
495*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemListener
496*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XLayoutConstrains
497*cdf0e10cSrcweir                                             >   UnoCheckBoxControl_Base;
498*cdf0e10cSrcweir class UnoCheckBoxControl : public UnoCheckBoxControl_Base
499*cdf0e10cSrcweir {
500*cdf0e10cSrcweir private:
501*cdf0e10cSrcweir     ItemListenerMultiplexer     maItemListeners;
502*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
503*cdf0e10cSrcweir     ::rtl::OUString             maActionCommand;
504*cdf0e10cSrcweir 
505*cdf0e10cSrcweir public:
506*cdf0e10cSrcweir 
507*cdf0e10cSrcweir                             UnoCheckBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
508*cdf0e10cSrcweir                             ~UnoCheckBoxControl(){;}
509*cdf0e10cSrcweir     ::rtl::OUString         GetComponentServiceName();
510*cdf0e10cSrcweir 
511*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
512*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
513*cdf0e10cSrcweir     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
514*cdf0e10cSrcweir 
515*cdf0e10cSrcweir     // ::com::sun::star::awt::XControl
516*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
517*cdf0e10cSrcweir 
518*cdf0e10cSrcweir     // ::com::sun::star::awt::XButton
519*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
520*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
521*cdf0e10cSrcweir     void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
522*cdf0e10cSrcweir 
523*cdf0e10cSrcweir     virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
524*cdf0e10cSrcweir     virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
525*cdf0e10cSrcweir 
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir     sal_Int16 SAL_CALL getState(  ) throw(::com::sun::star::uno::RuntimeException);
528*cdf0e10cSrcweir     void SAL_CALL setState( sal_Int16 n ) throw(::com::sun::star::uno::RuntimeException);
529*cdf0e10cSrcweir     void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
530*cdf0e10cSrcweir     void SAL_CALL enableTriState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
531*cdf0e10cSrcweir 
532*cdf0e10cSrcweir     // ::com::sun::star::awt::XItemListener
533*cdf0e10cSrcweir     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
534*cdf0e10cSrcweir 
535*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
536*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
537*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
538*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
539*cdf0e10cSrcweir 
540*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
541*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoCheckBoxControl, UnoControlBase, szServiceName2_UnoControlCheckBox )
542*cdf0e10cSrcweir 
543*cdf0e10cSrcweir };
544*cdf0e10cSrcweir 
545*cdf0e10cSrcweir //  ----------------------------------------------------
546*cdf0e10cSrcweir //  class UnoControlFixedTextModel
547*cdf0e10cSrcweir //  ----------------------------------------------------
548*cdf0e10cSrcweir class UnoControlFixedHyperlinkModel : public UnoControlModel
549*cdf0e10cSrcweir {
550*cdf0e10cSrcweir protected:
551*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
552*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
553*cdf0e10cSrcweir 
554*cdf0e10cSrcweir public:
555*cdf0e10cSrcweir     UnoControlFixedHyperlinkModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
556*cdf0e10cSrcweir     UnoControlFixedHyperlinkModel( const UnoControlFixedHyperlinkModel& rModel ) : UnoControlModel( rModel ) {;}
557*cdf0e10cSrcweir 
558*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlFixedHyperlinkModel( *this ); }
559*cdf0e10cSrcweir 
560*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
561*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
562*cdf0e10cSrcweir 
563*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
564*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
565*cdf0e10cSrcweir 
566*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
567*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedHyperlinkModel, UnoControlModel, szServiceName_UnoControlFixedHyperlinkModel )
568*cdf0e10cSrcweir };
569*cdf0e10cSrcweir 
570*cdf0e10cSrcweir //  ----------------------------------------------------
571*cdf0e10cSrcweir //  class UnoFixedHyperlinkControl
572*cdf0e10cSrcweir //  ----------------------------------------------------
573*cdf0e10cSrcweir class UnoFixedHyperlinkControl : public UnoControlBase,
574*cdf0e10cSrcweir                                  public ::com::sun::star::awt::XFixedHyperlink,
575*cdf0e10cSrcweir                                  public ::com::sun::star::awt::XLayoutConstrains
576*cdf0e10cSrcweir {
577*cdf0e10cSrcweir private:
578*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
579*cdf0e10cSrcweir 
580*cdf0e10cSrcweir public:
581*cdf0e10cSrcweir     UnoFixedHyperlinkControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
582*cdf0e10cSrcweir 
583*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
584*cdf0e10cSrcweir 
585*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
586*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
587*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
588*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
589*cdf0e10cSrcweir 
590*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
591*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
592*cdf0e10cSrcweir 
593*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
594*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
595*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
596*cdf0e10cSrcweir 
597*cdf0e10cSrcweir     // ::com::sun::star::awt::XControl
598*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
599*cdf0e10cSrcweir 
600*cdf0e10cSrcweir     // ::com::sun::star::awt::XFixedHyperlink
601*cdf0e10cSrcweir     void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
602*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
603*cdf0e10cSrcweir     void SAL_CALL setURL( const ::rtl::OUString& URL ) throw(::com::sun::star::uno::RuntimeException);
604*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getURL(  ) throw(::com::sun::star::uno::RuntimeException);
605*cdf0e10cSrcweir     void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
606*cdf0e10cSrcweir     sal_Int16 SAL_CALL getAlignment(  ) throw(::com::sun::star::uno::RuntimeException);
607*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
608*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
609*cdf0e10cSrcweir 
610*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
611*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
612*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
613*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
614*cdf0e10cSrcweir 
615*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
616*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedHyperlinkControl, UnoControlBase, szServiceName_UnoControlFixedHyperlink )
617*cdf0e10cSrcweir };
618*cdf0e10cSrcweir 
619*cdf0e10cSrcweir //  ----------------------------------------------------
620*cdf0e10cSrcweir //  class UnoControlFixedTextModel
621*cdf0e10cSrcweir //  ----------------------------------------------------
622*cdf0e10cSrcweir class UnoControlFixedTextModel : public UnoControlModel
623*cdf0e10cSrcweir {
624*cdf0e10cSrcweir protected:
625*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
626*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
627*cdf0e10cSrcweir 
628*cdf0e10cSrcweir public:
629*cdf0e10cSrcweir                         UnoControlFixedTextModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
630*cdf0e10cSrcweir                         UnoControlFixedTextModel( const UnoControlFixedTextModel& rModel ) : UnoControlModel( rModel ) {;}
631*cdf0e10cSrcweir 
632*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlFixedTextModel( *this ); }
633*cdf0e10cSrcweir 
634*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
635*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
636*cdf0e10cSrcweir 
637*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
638*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
639*cdf0e10cSrcweir 
640*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
641*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedTextModel, UnoControlModel, szServiceName2_UnoControlFixedTextModel )
642*cdf0e10cSrcweir 
643*cdf0e10cSrcweir };
644*cdf0e10cSrcweir 
645*cdf0e10cSrcweir //  ----------------------------------------------------
646*cdf0e10cSrcweir //  class UnoFixedTextControl
647*cdf0e10cSrcweir //  ----------------------------------------------------
648*cdf0e10cSrcweir class UnoFixedTextControl : public UnoControlBase,
649*cdf0e10cSrcweir                             public ::com::sun::star::awt::XFixedText,
650*cdf0e10cSrcweir                             public ::com::sun::star::awt::XLayoutConstrains
651*cdf0e10cSrcweir {
652*cdf0e10cSrcweir public:
653*cdf0e10cSrcweir                         UnoFixedTextControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
654*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
655*cdf0e10cSrcweir 
656*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
657*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
658*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
659*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
660*cdf0e10cSrcweir 
661*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
662*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
663*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
664*cdf0e10cSrcweir 
665*cdf0e10cSrcweir     // ::com::sun::star::awt::XControl
666*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
667*cdf0e10cSrcweir 
668*cdf0e10cSrcweir     // ::com::sun::star::awt::XFixedText
669*cdf0e10cSrcweir     void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
670*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getText(  ) throw(::com::sun::star::uno::RuntimeException);
671*cdf0e10cSrcweir     void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
672*cdf0e10cSrcweir     sal_Int16 SAL_CALL getAlignment(  ) throw(::com::sun::star::uno::RuntimeException);
673*cdf0e10cSrcweir 
674*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
675*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
676*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
677*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
678*cdf0e10cSrcweir 
679*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
680*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedTextControl, UnoControlBase, szServiceName2_UnoControlFixedText )
681*cdf0e10cSrcweir 
682*cdf0e10cSrcweir };
683*cdf0e10cSrcweir 
684*cdf0e10cSrcweir //  ----------------------------------------------------
685*cdf0e10cSrcweir //  class UnoControlGroupBoxModel
686*cdf0e10cSrcweir //  ----------------------------------------------------
687*cdf0e10cSrcweir class UnoControlGroupBoxModel : public UnoControlModel
688*cdf0e10cSrcweir {
689*cdf0e10cSrcweir protected:
690*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
691*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
692*cdf0e10cSrcweir 
693*cdf0e10cSrcweir public:
694*cdf0e10cSrcweir                         UnoControlGroupBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
695*cdf0e10cSrcweir                         UnoControlGroupBoxModel( const UnoControlGroupBoxModel& rModel ) : UnoControlModel( rModel ) {;}
696*cdf0e10cSrcweir 
697*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlGroupBoxModel( *this ); }
698*cdf0e10cSrcweir 
699*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
700*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
701*cdf0e10cSrcweir 
702*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
703*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
704*cdf0e10cSrcweir 
705*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
706*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlGroupBoxModel, UnoControlModel, szServiceName2_UnoControlGroupBoxModel )
707*cdf0e10cSrcweir 
708*cdf0e10cSrcweir };
709*cdf0e10cSrcweir 
710*cdf0e10cSrcweir //  ----------------------------------------------------
711*cdf0e10cSrcweir //  class UnoGroupBoxControl
712*cdf0e10cSrcweir //  ----------------------------------------------------
713*cdf0e10cSrcweir class UnoGroupBoxControl :  public UnoControlBase
714*cdf0e10cSrcweir {
715*cdf0e10cSrcweir public:
716*cdf0e10cSrcweir                         UnoGroupBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
717*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
718*cdf0e10cSrcweir 
719*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
720*cdf0e10cSrcweir 
721*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
722*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoGroupBoxControl, UnoControlBase, szServiceName2_UnoControlGroupBox )
723*cdf0e10cSrcweir 
724*cdf0e10cSrcweir };
725*cdf0e10cSrcweir 
726*cdf0e10cSrcweir //  ----------------------------------------------------
727*cdf0e10cSrcweir //  class UnoControlListBoxModel
728*cdf0e10cSrcweir //  ----------------------------------------------------
729*cdf0e10cSrcweir struct UnoControlListBoxModel_Data;
730*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper1   <   UnoControlModel
731*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemList
732*cdf0e10cSrcweir                                             >   UnoControlListBoxModel_Base;
733*cdf0e10cSrcweir class TOOLKIT_DLLPUBLIC UnoControlListBoxModel : public UnoControlListBoxModel_Base
734*cdf0e10cSrcweir {
735*cdf0e10cSrcweir protected:
736*cdf0e10cSrcweir     enum ConstructorMode
737*cdf0e10cSrcweir     {
738*cdf0e10cSrcweir         ConstructDefault,
739*cdf0e10cSrcweir         ConstructWithoutProperties
740*cdf0e10cSrcweir     };
741*cdf0e10cSrcweir 
742*cdf0e10cSrcweir public:
743*cdf0e10cSrcweir                         UnoControlListBoxModel(
744*cdf0e10cSrcweir                             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory,
745*cdf0e10cSrcweir                             ConstructorMode const i_mode = ConstructDefault
746*cdf0e10cSrcweir                         );
747*cdf0e10cSrcweir                         UnoControlListBoxModel( const UnoControlListBoxModel& i_rSource );
748*cdf0e10cSrcweir                         ~UnoControlListBoxModel();
749*cdf0e10cSrcweir 
750*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlListBoxModel( *this ); }
751*cdf0e10cSrcweir 
752*cdf0e10cSrcweir     virtual void        ImplNormalizePropertySequence(
753*cdf0e10cSrcweir                             const sal_Int32                 _nCount,        /// the number of entries in the arrays
754*cdf0e10cSrcweir                             sal_Int32*                      _pHandles,      /// the handles of the properties to set
755*cdf0e10cSrcweir                             ::com::sun::star::uno::Any*     _pValues,       /// the values of the properties to set
756*cdf0e10cSrcweir                             sal_Int32*                      _pValidHandles  /// pointer to the valid handles, allowed to be adjusted
757*cdf0e10cSrcweir                         )   const SAL_THROW(());
758*cdf0e10cSrcweir 
759*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
760*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
761*cdf0e10cSrcweir 
762*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
763*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
764*cdf0e10cSrcweir 
765*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
766*cdf0e10cSrcweir     //DECLIMPL_SERVICEINFO_DERIVED( UnoControlListBoxModel, UnoControlModel, szServiceName2_UnoControlListBoxModel )
767*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
768*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
769*cdf0e10cSrcweir 
770*cdf0e10cSrcweir     // ::com::sun::star::awt::XItemList
771*cdf0e10cSrcweir     virtual ::sal_Int32 SAL_CALL getItemCount() throw (::com::sun::star::uno::RuntimeException);
772*cdf0e10cSrcweir     virtual void SAL_CALL insertItem( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
773*cdf0e10cSrcweir     virtual void SAL_CALL insertItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
774*cdf0e10cSrcweir     virtual void SAL_CALL insertItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
775*cdf0e10cSrcweir     virtual void SAL_CALL removeItem( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
776*cdf0e10cSrcweir     virtual void SAL_CALL removeAllItems(  ) throw (::com::sun::star::uno::RuntimeException);
777*cdf0e10cSrcweir     virtual void SAL_CALL setItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
778*cdf0e10cSrcweir     virtual void SAL_CALL setItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
779*cdf0e10cSrcweir     virtual void SAL_CALL setItemTextAndImage( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
780*cdf0e10cSrcweir     virtual void SAL_CALL setItemData( ::sal_Int32 Position, const ::com::sun::star::uno::Any& DataValue ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
781*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getItemText( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
782*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getItemImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
783*cdf0e10cSrcweir     virtual ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > SAL_CALL getItemTextAndImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
784*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getItemData( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
785*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > > SAL_CALL getAllItems(  ) throw (::com::sun::star::uno::RuntimeException);
786*cdf0e10cSrcweir     virtual void SAL_CALL addItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
787*cdf0e10cSrcweir     virtual void SAL_CALL removeItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
788*cdf0e10cSrcweir 
789*cdf0e10cSrcweir     // OPropertySetHelper
790*cdf0e10cSrcweir     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
791*cdf0e10cSrcweir 
792*cdf0e10cSrcweir protected:
793*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
794*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
795*cdf0e10cSrcweir 
796*cdf0e10cSrcweir private:
797*cdf0e10cSrcweir     void    impl_notifyItemListEvent_nolck(
798*cdf0e10cSrcweir                 const sal_Int32 i_nItemPosition,
799*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
800*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
801*cdf0e10cSrcweir                 void ( SAL_CALL ::com::sun::star::awt::XItemListListener::*NotificationMethod )( const ::com::sun::star::awt::ItemListEvent& )
802*cdf0e10cSrcweir             );
803*cdf0e10cSrcweir 
804*cdf0e10cSrcweir     void    impl_handleInsert(
805*cdf0e10cSrcweir                 const sal_Int32 i_nItemPosition,
806*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
807*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
808*cdf0e10cSrcweir                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
809*cdf0e10cSrcweir             );
810*cdf0e10cSrcweir 
811*cdf0e10cSrcweir     void    impl_handleRemove(
812*cdf0e10cSrcweir                 const sal_Int32 i_nItemPosition,
813*cdf0e10cSrcweir                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
814*cdf0e10cSrcweir             );
815*cdf0e10cSrcweir 
816*cdf0e10cSrcweir     void    impl_handleModify(
817*cdf0e10cSrcweir                 const sal_Int32 i_nItemPosition,
818*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemText,
819*cdf0e10cSrcweir                 const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
820*cdf0e10cSrcweir                 ::osl::ClearableMutexGuard& i_rClearBeforeNotify
821*cdf0e10cSrcweir             );
822*cdf0e10cSrcweir 
823*cdf0e10cSrcweir     void    impl_getStringItemList( ::std::vector< ::rtl::OUString >& o_rStringItems ) const;
824*cdf0e10cSrcweir     void    impl_setStringItemList_nolck( const ::std::vector< ::rtl::OUString >& i_rStringItems );
825*cdf0e10cSrcweir 
826*cdf0e10cSrcweir protected:
827*cdf0e10cSrcweir     ::boost::scoped_ptr< UnoControlListBoxModel_Data >  m_pData;
828*cdf0e10cSrcweir     ::cppu::OInterfaceContainerHelper                   m_aItemListListeners;
829*cdf0e10cSrcweir };
830*cdf0e10cSrcweir 
831*cdf0e10cSrcweir //  ----------------------------------------------------
832*cdf0e10cSrcweir //  class UnoListBoxControl
833*cdf0e10cSrcweir //  ----------------------------------------------------
834*cdf0e10cSrcweir typedef ::cppu::AggImplInheritanceHelper5   <   UnoControlBase
835*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XListBox
836*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemListener
837*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XLayoutConstrains
838*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XTextLayoutConstrains
839*cdf0e10cSrcweir                                             ,   ::com::sun::star::awt::XItemListListener
840*cdf0e10cSrcweir                                             >   UnoListBoxControl_Base;
841*cdf0e10cSrcweir class TOOLKIT_DLLPUBLIC UnoListBoxControl : public UnoListBoxControl_Base
842*cdf0e10cSrcweir {
843*cdf0e10cSrcweir public:
844*cdf0e10cSrcweir                         UnoListBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
845*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
846*cdf0e10cSrcweir 
847*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
848*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
849*cdf0e10cSrcweir     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
850*cdf0e10cSrcweir 
851*cdf0e10cSrcweir     // ::com::sun::star::awt::XListBox
852*cdf0e10cSrcweir     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
853*cdf0e10cSrcweir     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
854*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
855*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
856*cdf0e10cSrcweir     void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
857*cdf0e10cSrcweir     void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
858*cdf0e10cSrcweir     void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
859*cdf0e10cSrcweir     sal_Int16 SAL_CALL getItemCount(  ) throw(::com::sun::star::uno::RuntimeException);
860*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
861*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems(  ) throw(::com::sun::star::uno::RuntimeException);
862*cdf0e10cSrcweir     sal_Int16 SAL_CALL getSelectedItemPos(  ) throw(::com::sun::star::uno::RuntimeException);
863*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos(  ) throw(::com::sun::star::uno::RuntimeException);
864*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getSelectedItem(  ) throw(::com::sun::star::uno::RuntimeException);
865*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedItems(  ) throw(::com::sun::star::uno::RuntimeException);
866*cdf0e10cSrcweir     void SAL_CALL selectItemPos( sal_Int16 nPos, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
867*cdf0e10cSrcweir     void SAL_CALL selectItemsPos( const ::com::sun::star::uno::Sequence< sal_Int16 >& aPositions, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
868*cdf0e10cSrcweir     void SAL_CALL selectItem( const ::rtl::OUString& aItem, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
869*cdf0e10cSrcweir     sal_Bool SAL_CALL isMutipleMode(  ) throw(::com::sun::star::uno::RuntimeException);
870*cdf0e10cSrcweir     void SAL_CALL setMultipleMode( sal_Bool bMulti ) throw(::com::sun::star::uno::RuntimeException);
871*cdf0e10cSrcweir     sal_Int16 SAL_CALL getDropDownLineCount(  ) throw(::com::sun::star::uno::RuntimeException);
872*cdf0e10cSrcweir     void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
873*cdf0e10cSrcweir     void SAL_CALL makeVisible( sal_Int16 nEntry ) throw(::com::sun::star::uno::RuntimeException);
874*cdf0e10cSrcweir 
875*cdf0e10cSrcweir     // ::com::sun::star::awt::XItemListener
876*cdf0e10cSrcweir     void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
877*cdf0e10cSrcweir 
878*cdf0e10cSrcweir     // ::com::sun::star::awt::XLayoutConstrains
879*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize(  ) throw(::com::sun::star::uno::RuntimeException);
880*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getPreferredSize(  ) throw(::com::sun::star::uno::RuntimeException);
881*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
882*cdf0e10cSrcweir 
883*cdf0e10cSrcweir     // ::com::sun::star::awt::XTextLayoutConstrains
884*cdf0e10cSrcweir     ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
885*cdf0e10cSrcweir     void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
886*cdf0e10cSrcweir 
887*cdf0e10cSrcweir     // XUnoControl
888*cdf0e10cSrcweir     sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
889*cdf0e10cSrcweir 
890*cdf0e10cSrcweir     // XItemListListener
891*cdf0e10cSrcweir     virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
892*cdf0e10cSrcweir     virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
893*cdf0e10cSrcweir     virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
894*cdf0e10cSrcweir     virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
895*cdf0e10cSrcweir     virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
896*cdf0e10cSrcweir 
897*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
898*cdf0e10cSrcweir     // DECLIMPL_SERVICEINFO_DERIVED( UnoListBoxControl, UnoControlBase, szServiceName2_UnoControlListBox )
899*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
900*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
901*cdf0e10cSrcweir 
902*cdf0e10cSrcweir protected:
903*cdf0e10cSrcweir     void                ImplUpdateSelectedItemsProperty();
904*cdf0e10cSrcweir     virtual void        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
905*cdf0e10cSrcweir     virtual void        updateFromModel();
906*cdf0e10cSrcweir 
907*cdf0e10cSrcweir     ActionListenerMultiplexer&  getActionListeners();
908*cdf0e10cSrcweir     ItemListenerMultiplexer&    getItemListeners();
909*cdf0e10cSrcweir private:
910*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
911*cdf0e10cSrcweir     ItemListenerMultiplexer     maItemListeners;
912*cdf0e10cSrcweir };
913*cdf0e10cSrcweir 
914*cdf0e10cSrcweir //  ----------------------------------------------------
915*cdf0e10cSrcweir //  class UnoControlComboBoxModel
916*cdf0e10cSrcweir //  ----------------------------------------------------
917*cdf0e10cSrcweir class UnoControlComboBoxModel : public UnoControlListBoxModel
918*cdf0e10cSrcweir {
919*cdf0e10cSrcweir protected:
920*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
921*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
922*cdf0e10cSrcweir 
923*cdf0e10cSrcweir public:
924*cdf0e10cSrcweir                         UnoControlComboBoxModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
925*cdf0e10cSrcweir                         UnoControlComboBoxModel( const UnoControlComboBoxModel& rModel ) : UnoControlListBoxModel( rModel ) {;}
926*cdf0e10cSrcweir 
927*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlComboBoxModel( *this ); }
928*cdf0e10cSrcweir 
929*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
930*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
931*cdf0e10cSrcweir 
932*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
933*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
934*cdf0e10cSrcweir     // OPropertySetHelper
935*cdf0e10cSrcweir     void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
936*cdf0e10cSrcweir 
937*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
938*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
939*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
940*cdf0e10cSrcweir     // DECLIMPL_SERVICEINFO_DERIVED( UnoControlComboBoxModel, UnoControlModel, szServiceName2_UnoControlComboBoxModel )
941*cdf0e10cSrcweir 
942*cdf0e10cSrcweir };
943*cdf0e10cSrcweir 
944*cdf0e10cSrcweir //  ----------------------------------------------------
945*cdf0e10cSrcweir //  class UnoComboBoxControl
946*cdf0e10cSrcweir //  ----------------------------------------------------
947*cdf0e10cSrcweir class UnoComboBoxControl :  public UnoEditControl
948*cdf0e10cSrcweir                         ,   public ::com::sun::star::awt::XComboBox
949*cdf0e10cSrcweir                         ,   public ::com::sun::star::awt::XItemListener
950*cdf0e10cSrcweir                         ,   public ::com::sun::star::awt::XItemListListener
951*cdf0e10cSrcweir {
952*cdf0e10cSrcweir private:
953*cdf0e10cSrcweir     ActionListenerMultiplexer   maActionListeners;
954*cdf0e10cSrcweir     ItemListenerMultiplexer     maItemListeners;
955*cdf0e10cSrcweir 
956*cdf0e10cSrcweir public:
957*cdf0e10cSrcweir 
958*cdf0e10cSrcweir                         UnoComboBoxControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
959*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
960*cdf0e10cSrcweir 
961*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
962*cdf0e10cSrcweir     void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoEditControl::disposing( Source ); }
963*cdf0e10cSrcweir     void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
964*cdf0e10cSrcweir 
965*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
966*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
967*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
968*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
969*cdf0e10cSrcweir 
970*cdf0e10cSrcweir 
971*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
972*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
973*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
974*cdf0e10cSrcweir 
975*cdf0e10cSrcweir     // ::com::sun::star::awt::XComboBox
976*cdf0e10cSrcweir     void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
977*cdf0e10cSrcweir     void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
978*cdf0e10cSrcweir     void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
979*cdf0e10cSrcweir     void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
980*cdf0e10cSrcweir     void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
981*cdf0e10cSrcweir     void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
982*cdf0e10cSrcweir     void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
983*cdf0e10cSrcweir     sal_Int16 SAL_CALL getItemCount(  ) throw(::com::sun::star::uno::RuntimeException);
984*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
985*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems(  ) throw(::com::sun::star::uno::RuntimeException);
986*cdf0e10cSrcweir     sal_Int16 SAL_CALL getDropDownLineCount(  ) throw(::com::sun::star::uno::RuntimeException);
987*cdf0e10cSrcweir     void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
988*cdf0e10cSrcweir 
989*cdf0e10cSrcweir     // XUnoControl
990*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
991*cdf0e10cSrcweir 
992*cdf0e10cSrcweir     // XItemListListener
993*cdf0e10cSrcweir     virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
994*cdf0e10cSrcweir     virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
995*cdf0e10cSrcweir     virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
996*cdf0e10cSrcweir     virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
997*cdf0e10cSrcweir     virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
998*cdf0e10cSrcweir 
999*cdf0e10cSrcweir     // XItemListener
1000*cdf0e10cSrcweir     virtual void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException);
1001*cdf0e10cSrcweir 
1002*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1003*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
1004*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
1005*cdf0e10cSrcweir     //DECLIMPL_SERVICEINFO_DERIVED( UnoComboBoxControl, UnoEditControl, szServiceName2_UnoControlComboBox )
1006*cdf0e10cSrcweir protected:
1007*cdf0e10cSrcweir     virtual void        ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
1008*cdf0e10cSrcweir     virtual void        updateFromModel();
1009*cdf0e10cSrcweir     ActionListenerMultiplexer&  getActionListeners();
1010*cdf0e10cSrcweir     ItemListenerMultiplexer&    getItemListeners();
1011*cdf0e10cSrcweir 
1012*cdf0e10cSrcweir };
1013*cdf0e10cSrcweir 
1014*cdf0e10cSrcweir //  ----------------------------------------------------
1015*cdf0e10cSrcweir //  class UnoSpinFieldControl
1016*cdf0e10cSrcweir //  ----------------------------------------------------
1017*cdf0e10cSrcweir class UnoSpinFieldControl : public UnoEditControl,
1018*cdf0e10cSrcweir                             public ::com::sun::star::awt::XSpinField
1019*cdf0e10cSrcweir {
1020*cdf0e10cSrcweir private:
1021*cdf0e10cSrcweir     SpinListenerMultiplexer     maSpinListeners;
1022*cdf0e10cSrcweir     sal_Bool                        mbRepeat;
1023*cdf0e10cSrcweir 
1024*cdf0e10cSrcweir public:
1025*cdf0e10cSrcweir                                 UnoSpinFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1026*cdf0e10cSrcweir 
1027*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
1028*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1029*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1030*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1031*cdf0e10cSrcweir 
1032*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1033*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1034*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1035*cdf0e10cSrcweir 
1036*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
1037*cdf0e10cSrcweir 
1038*cdf0e10cSrcweir     // ::com::sun::star::awt::XSpinField
1039*cdf0e10cSrcweir     void SAL_CALL addSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
1040*cdf0e10cSrcweir     void SAL_CALL removeSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
1041*cdf0e10cSrcweir     void SAL_CALL up() throw(::com::sun::star::uno::RuntimeException);
1042*cdf0e10cSrcweir     void SAL_CALL down() throw(::com::sun::star::uno::RuntimeException);
1043*cdf0e10cSrcweir     void SAL_CALL first() throw(::com::sun::star::uno::RuntimeException);
1044*cdf0e10cSrcweir     void SAL_CALL last() throw(::com::sun::star::uno::RuntimeException);
1045*cdf0e10cSrcweir     void SAL_CALL enableRepeat( sal_Bool bRepeat ) throw(::com::sun::star::uno::RuntimeException);
1046*cdf0e10cSrcweir 
1047*cdf0e10cSrcweir 
1048*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1049*cdf0e10cSrcweir     // No service info, only base class for other fields.
1050*cdf0e10cSrcweir };
1051*cdf0e10cSrcweir 
1052*cdf0e10cSrcweir 
1053*cdf0e10cSrcweir //  ----------------------------------------------------
1054*cdf0e10cSrcweir //  class UnoControlDateFieldModel
1055*cdf0e10cSrcweir //  ----------------------------------------------------
1056*cdf0e10cSrcweir class UnoControlDateFieldModel : public UnoControlModel
1057*cdf0e10cSrcweir {
1058*cdf0e10cSrcweir protected:
1059*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1060*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1061*cdf0e10cSrcweir 
1062*cdf0e10cSrcweir public:
1063*cdf0e10cSrcweir                 UnoControlDateFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1064*cdf0e10cSrcweir                 UnoControlDateFieldModel( const UnoControlDateFieldModel& rModel ) : UnoControlModel( rModel ) {;}
1065*cdf0e10cSrcweir 
1066*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlDateFieldModel( *this ); }
1067*cdf0e10cSrcweir 
1068*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1069*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1070*cdf0e10cSrcweir 
1071*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1072*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1073*cdf0e10cSrcweir 
1074*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1075*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlDateFieldModel, UnoControlModel, szServiceName2_UnoControlDateFieldModel )
1076*cdf0e10cSrcweir 
1077*cdf0e10cSrcweir };
1078*cdf0e10cSrcweir 
1079*cdf0e10cSrcweir //  ----------------------------------------------------
1080*cdf0e10cSrcweir //  class UnoDateFieldControl
1081*cdf0e10cSrcweir //  ----------------------------------------------------
1082*cdf0e10cSrcweir class UnoDateFieldControl : public UnoSpinFieldControl,
1083*cdf0e10cSrcweir                             public ::com::sun::star::awt::XDateField
1084*cdf0e10cSrcweir {
1085*cdf0e10cSrcweir private:
1086*cdf0e10cSrcweir     sal_Int32       mnFirst;
1087*cdf0e10cSrcweir     sal_Int32       mnLast;
1088*cdf0e10cSrcweir     sal_Bool        mbLongFormat;
1089*cdf0e10cSrcweir public:
1090*cdf0e10cSrcweir                             UnoDateFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1091*cdf0e10cSrcweir     ::rtl::OUString         GetComponentServiceName();
1092*cdf0e10cSrcweir 
1093*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
1094*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1095*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1096*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1097*cdf0e10cSrcweir 
1098*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1099*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1100*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1101*cdf0e10cSrcweir 
1102*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
1103*cdf0e10cSrcweir 
1104*cdf0e10cSrcweir     // ::com::sun::star::awt::XTextListener
1105*cdf0e10cSrcweir     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
1106*cdf0e10cSrcweir 
1107*cdf0e10cSrcweir     //XDateField
1108*cdf0e10cSrcweir     void SAL_CALL setDate( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
1109*cdf0e10cSrcweir     sal_Int32 SAL_CALL getDate(  ) throw(::com::sun::star::uno::RuntimeException);
1110*cdf0e10cSrcweir     void SAL_CALL setMin( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
1111*cdf0e10cSrcweir     sal_Int32 SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
1112*cdf0e10cSrcweir     void SAL_CALL setMax( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
1113*cdf0e10cSrcweir     sal_Int32 SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
1114*cdf0e10cSrcweir     void SAL_CALL setFirst( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
1115*cdf0e10cSrcweir     sal_Int32 SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
1116*cdf0e10cSrcweir     void SAL_CALL setLast( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
1117*cdf0e10cSrcweir     sal_Int32 SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
1118*cdf0e10cSrcweir     void SAL_CALL setLongFormat( sal_Bool bLong ) throw(::com::sun::star::uno::RuntimeException);
1119*cdf0e10cSrcweir     sal_Bool SAL_CALL isLongFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1120*cdf0e10cSrcweir     void SAL_CALL setEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
1121*cdf0e10cSrcweir     sal_Bool SAL_CALL isEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
1122*cdf0e10cSrcweir     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1123*cdf0e10cSrcweir     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1124*cdf0e10cSrcweir 
1125*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1126*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoDateFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlDateField )
1127*cdf0e10cSrcweir };
1128*cdf0e10cSrcweir 
1129*cdf0e10cSrcweir //  ----------------------------------------------------
1130*cdf0e10cSrcweir //  class UnoControlTimeFieldModel
1131*cdf0e10cSrcweir //  ----------------------------------------------------
1132*cdf0e10cSrcweir class UnoControlTimeFieldModel : public UnoControlModel
1133*cdf0e10cSrcweir {
1134*cdf0e10cSrcweir protected:
1135*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1136*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1137*cdf0e10cSrcweir 
1138*cdf0e10cSrcweir public:
1139*cdf0e10cSrcweir                         UnoControlTimeFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1140*cdf0e10cSrcweir                         UnoControlTimeFieldModel( const UnoControlTimeFieldModel& rModel ) : UnoControlModel( rModel ) {;}
1141*cdf0e10cSrcweir 
1142*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlTimeFieldModel( *this ); }
1143*cdf0e10cSrcweir 
1144*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1145*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1146*cdf0e10cSrcweir 
1147*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1148*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1149*cdf0e10cSrcweir 
1150*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1151*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlTimeFieldModel, UnoControlModel, szServiceName2_UnoControlTimeFieldModel )
1152*cdf0e10cSrcweir 
1153*cdf0e10cSrcweir };
1154*cdf0e10cSrcweir 
1155*cdf0e10cSrcweir //  ----------------------------------------------------
1156*cdf0e10cSrcweir //  class UnoTimeFieldControl
1157*cdf0e10cSrcweir //  ----------------------------------------------------
1158*cdf0e10cSrcweir class UnoTimeFieldControl : public UnoSpinFieldControl,
1159*cdf0e10cSrcweir                             public ::com::sun::star::awt::XTimeField
1160*cdf0e10cSrcweir {
1161*cdf0e10cSrcweir private:
1162*cdf0e10cSrcweir     sal_Int32       mnFirst;
1163*cdf0e10cSrcweir     sal_Int32       mnLast;
1164*cdf0e10cSrcweir 
1165*cdf0e10cSrcweir public:
1166*cdf0e10cSrcweir                         UnoTimeFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1167*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
1168*cdf0e10cSrcweir 
1169*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
1170*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1171*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1172*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1173*cdf0e10cSrcweir 
1174*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1175*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1176*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1177*cdf0e10cSrcweir 
1178*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
1179*cdf0e10cSrcweir 
1180*cdf0e10cSrcweir     // ::com::sun::star::awt::XTextListener
1181*cdf0e10cSrcweir     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
1182*cdf0e10cSrcweir 
1183*cdf0e10cSrcweir     //XTimeField
1184*cdf0e10cSrcweir     void SAL_CALL setTime( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1185*cdf0e10cSrcweir     sal_Int32 SAL_CALL getTime(  ) throw(::com::sun::star::uno::RuntimeException);
1186*cdf0e10cSrcweir     void SAL_CALL setMin( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1187*cdf0e10cSrcweir     sal_Int32 SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
1188*cdf0e10cSrcweir     void SAL_CALL setMax( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1189*cdf0e10cSrcweir     sal_Int32 SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
1190*cdf0e10cSrcweir     void SAL_CALL setFirst( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1191*cdf0e10cSrcweir     sal_Int32 SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
1192*cdf0e10cSrcweir     void SAL_CALL setLast( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
1193*cdf0e10cSrcweir     sal_Int32 SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
1194*cdf0e10cSrcweir     void SAL_CALL setEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
1195*cdf0e10cSrcweir     sal_Bool SAL_CALL isEmpty(  ) throw(::com::sun::star::uno::RuntimeException);
1196*cdf0e10cSrcweir     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1197*cdf0e10cSrcweir     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1198*cdf0e10cSrcweir 
1199*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1200*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoTimeFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlTimeField )
1201*cdf0e10cSrcweir 
1202*cdf0e10cSrcweir };
1203*cdf0e10cSrcweir 
1204*cdf0e10cSrcweir //  ----------------------------------------------------
1205*cdf0e10cSrcweir //  class UnoControlNumericFieldModel
1206*cdf0e10cSrcweir //  ----------------------------------------------------
1207*cdf0e10cSrcweir class UnoControlNumericFieldModel : public UnoControlModel
1208*cdf0e10cSrcweir {
1209*cdf0e10cSrcweir protected:
1210*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1211*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1212*cdf0e10cSrcweir 
1213*cdf0e10cSrcweir public:
1214*cdf0e10cSrcweir                 UnoControlNumericFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1215*cdf0e10cSrcweir                 UnoControlNumericFieldModel( const UnoControlNumericFieldModel& rModel ) : UnoControlModel( rModel ) {;}
1216*cdf0e10cSrcweir 
1217*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlNumericFieldModel( *this ); }
1218*cdf0e10cSrcweir 
1219*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1220*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1221*cdf0e10cSrcweir 
1222*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1223*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1224*cdf0e10cSrcweir 
1225*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1226*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlNumericFieldModel, UnoControlModel, szServiceName2_UnoControlNumericFieldModel )
1227*cdf0e10cSrcweir 
1228*cdf0e10cSrcweir };
1229*cdf0e10cSrcweir 
1230*cdf0e10cSrcweir //  ----------------------------------------------------
1231*cdf0e10cSrcweir //  class UnoNumericFieldControl
1232*cdf0e10cSrcweir //  ----------------------------------------------------
1233*cdf0e10cSrcweir class UnoNumericFieldControl :  public UnoSpinFieldControl,
1234*cdf0e10cSrcweir                                 public ::com::sun::star::awt::XNumericField
1235*cdf0e10cSrcweir {
1236*cdf0e10cSrcweir private:
1237*cdf0e10cSrcweir     double mnFirst;
1238*cdf0e10cSrcweir     double mnLast;
1239*cdf0e10cSrcweir 
1240*cdf0e10cSrcweir public:
1241*cdf0e10cSrcweir                         UnoNumericFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1242*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
1243*cdf0e10cSrcweir 
1244*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
1245*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1246*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1247*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1248*cdf0e10cSrcweir 
1249*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
1250*cdf0e10cSrcweir 
1251*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1252*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1253*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1254*cdf0e10cSrcweir 
1255*cdf0e10cSrcweir     // ::com::sun::star::awt::XTextListener
1256*cdf0e10cSrcweir     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
1257*cdf0e10cSrcweir 
1258*cdf0e10cSrcweir     // ::com::sun::star::awt::XNumericField
1259*cdf0e10cSrcweir     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
1260*cdf0e10cSrcweir     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
1261*cdf0e10cSrcweir     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
1262*cdf0e10cSrcweir     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
1263*cdf0e10cSrcweir     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
1264*cdf0e10cSrcweir     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
1265*cdf0e10cSrcweir     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
1266*cdf0e10cSrcweir     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
1267*cdf0e10cSrcweir     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
1268*cdf0e10cSrcweir     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
1269*cdf0e10cSrcweir     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
1270*cdf0e10cSrcweir     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException);
1271*cdf0e10cSrcweir     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
1272*cdf0e10cSrcweir     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException);
1273*cdf0e10cSrcweir     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1274*cdf0e10cSrcweir     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1275*cdf0e10cSrcweir 
1276*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1277*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoNumericFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlNumericField )
1278*cdf0e10cSrcweir 
1279*cdf0e10cSrcweir };
1280*cdf0e10cSrcweir 
1281*cdf0e10cSrcweir //  ----------------------------------------------------
1282*cdf0e10cSrcweir //  class UnoControlCurrencyFieldModel
1283*cdf0e10cSrcweir //  ----------------------------------------------------
1284*cdf0e10cSrcweir class UnoControlCurrencyFieldModel : public UnoControlModel
1285*cdf0e10cSrcweir {
1286*cdf0e10cSrcweir protected:
1287*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1288*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1289*cdf0e10cSrcweir 
1290*cdf0e10cSrcweir public:
1291*cdf0e10cSrcweir                         UnoControlCurrencyFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1292*cdf0e10cSrcweir                         UnoControlCurrencyFieldModel( const UnoControlCurrencyFieldModel& rModel ) : UnoControlModel( rModel ) {;}
1293*cdf0e10cSrcweir 
1294*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlCurrencyFieldModel( *this ); }
1295*cdf0e10cSrcweir 
1296*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1297*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1298*cdf0e10cSrcweir 
1299*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1300*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1301*cdf0e10cSrcweir 
1302*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1303*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlCurrencyFieldModel, UnoControlModel, szServiceName2_UnoControlCurrencyFieldModel )
1304*cdf0e10cSrcweir 
1305*cdf0e10cSrcweir };
1306*cdf0e10cSrcweir 
1307*cdf0e10cSrcweir //  ----------------------------------------------------
1308*cdf0e10cSrcweir //  class UnoCurrencyFieldControl
1309*cdf0e10cSrcweir //  ----------------------------------------------------
1310*cdf0e10cSrcweir class UnoCurrencyFieldControl : public UnoSpinFieldControl,
1311*cdf0e10cSrcweir                                 public ::com::sun::star::awt::XCurrencyField
1312*cdf0e10cSrcweir {
1313*cdf0e10cSrcweir private:
1314*cdf0e10cSrcweir     double mnFirst;
1315*cdf0e10cSrcweir     double mnLast;
1316*cdf0e10cSrcweir 
1317*cdf0e10cSrcweir public:
1318*cdf0e10cSrcweir                         UnoCurrencyFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1319*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
1320*cdf0e10cSrcweir 
1321*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
1322*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1323*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1324*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1325*cdf0e10cSrcweir 
1326*cdf0e10cSrcweir     void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
1327*cdf0e10cSrcweir 
1328*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1329*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1330*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1331*cdf0e10cSrcweir 
1332*cdf0e10cSrcweir     // ::com::sun::star::awt::XTextListener
1333*cdf0e10cSrcweir     void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
1334*cdf0e10cSrcweir 
1335*cdf0e10cSrcweir     // ::com::sun::star::awt::XCurrencyField
1336*cdf0e10cSrcweir     void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
1337*cdf0e10cSrcweir     double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
1338*cdf0e10cSrcweir     void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
1339*cdf0e10cSrcweir     double SAL_CALL getMin(  ) throw(::com::sun::star::uno::RuntimeException);
1340*cdf0e10cSrcweir     void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
1341*cdf0e10cSrcweir     double SAL_CALL getMax(  ) throw(::com::sun::star::uno::RuntimeException);
1342*cdf0e10cSrcweir     void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
1343*cdf0e10cSrcweir     double SAL_CALL getFirst(  ) throw(::com::sun::star::uno::RuntimeException);
1344*cdf0e10cSrcweir     void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
1345*cdf0e10cSrcweir     double SAL_CALL getLast(  ) throw(::com::sun::star::uno::RuntimeException);
1346*cdf0e10cSrcweir     void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
1347*cdf0e10cSrcweir     double SAL_CALL getSpinSize(  ) throw(::com::sun::star::uno::RuntimeException);
1348*cdf0e10cSrcweir     void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
1349*cdf0e10cSrcweir     sal_Int16 SAL_CALL getDecimalDigits(  ) throw(::com::sun::star::uno::RuntimeException);
1350*cdf0e10cSrcweir     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1351*cdf0e10cSrcweir     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1352*cdf0e10cSrcweir 
1353*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1354*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoCurrencyFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlCurrencyField )
1355*cdf0e10cSrcweir };
1356*cdf0e10cSrcweir 
1357*cdf0e10cSrcweir //  ----------------------------------------------------
1358*cdf0e10cSrcweir //  class UnoControlPatternFieldModel
1359*cdf0e10cSrcweir //  ----------------------------------------------------
1360*cdf0e10cSrcweir class UnoControlPatternFieldModel : public UnoControlModel
1361*cdf0e10cSrcweir {
1362*cdf0e10cSrcweir protected:
1363*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1364*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1365*cdf0e10cSrcweir 
1366*cdf0e10cSrcweir public:
1367*cdf0e10cSrcweir                         UnoControlPatternFieldModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1368*cdf0e10cSrcweir                         UnoControlPatternFieldModel( const UnoControlPatternFieldModel& rModel ) : UnoControlModel( rModel ) {;}
1369*cdf0e10cSrcweir 
1370*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlPatternFieldModel( *this ); }
1371*cdf0e10cSrcweir 
1372*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1373*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1374*cdf0e10cSrcweir 
1375*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1376*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1377*cdf0e10cSrcweir 
1378*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1379*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlPatternFieldModel, UnoControlModel, szServiceName2_UnoControlPatternFieldModel )
1380*cdf0e10cSrcweir 
1381*cdf0e10cSrcweir };
1382*cdf0e10cSrcweir 
1383*cdf0e10cSrcweir //  ----------------------------------------------------
1384*cdf0e10cSrcweir //  class UnoPatternFieldControl
1385*cdf0e10cSrcweir //  ----------------------------------------------------
1386*cdf0e10cSrcweir class UnoPatternFieldControl :  public UnoSpinFieldControl,
1387*cdf0e10cSrcweir                                 public ::com::sun::star::awt::XPatternField
1388*cdf0e10cSrcweir {
1389*cdf0e10cSrcweir protected:
1390*cdf0e10cSrcweir     void            ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
1391*cdf0e10cSrcweir 
1392*cdf0e10cSrcweir public:
1393*cdf0e10cSrcweir                         UnoPatternFieldControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1394*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
1395*cdf0e10cSrcweir 
1396*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
1397*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1398*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1399*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1400*cdf0e10cSrcweir 
1401*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1402*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1403*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1404*cdf0e10cSrcweir 
1405*cdf0e10cSrcweir     // ::com::sun::star::awt::XPatternField
1406*cdf0e10cSrcweir     void SAL_CALL setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
1407*cdf0e10cSrcweir     void SAL_CALL getMasks( ::rtl::OUString& EditMask, ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
1408*cdf0e10cSrcweir     void SAL_CALL setString( const ::rtl::OUString& Str ) throw(::com::sun::star::uno::RuntimeException);
1409*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getString(  ) throw(::com::sun::star::uno::RuntimeException);
1410*cdf0e10cSrcweir     void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
1411*cdf0e10cSrcweir     sal_Bool SAL_CALL isStrictFormat(  ) throw(::com::sun::star::uno::RuntimeException);
1412*cdf0e10cSrcweir 
1413*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1414*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoPatternFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlPatternField )
1415*cdf0e10cSrcweir 
1416*cdf0e10cSrcweir };
1417*cdf0e10cSrcweir 
1418*cdf0e10cSrcweir //  ----------------------------------------------------
1419*cdf0e10cSrcweir //  class UnoControlProgressBarModel
1420*cdf0e10cSrcweir //  ----------------------------------------------------
1421*cdf0e10cSrcweir class UnoControlProgressBarModel :  public UnoControlModel
1422*cdf0e10cSrcweir {
1423*cdf0e10cSrcweir protected:
1424*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1425*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1426*cdf0e10cSrcweir 
1427*cdf0e10cSrcweir public:
1428*cdf0e10cSrcweir                         UnoControlProgressBarModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1429*cdf0e10cSrcweir                         UnoControlProgressBarModel( const UnoControlProgressBarModel& rModel ) : UnoControlModel( rModel ) {;}
1430*cdf0e10cSrcweir 
1431*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlProgressBarModel( *this ); }
1432*cdf0e10cSrcweir 
1433*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1434*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1435*cdf0e10cSrcweir 
1436*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1437*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1438*cdf0e10cSrcweir 
1439*cdf0e10cSrcweir     // XServiceInfo
1440*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlProgressBarModel, UnoControlModel, szServiceName2_UnoControlProgressBarModel )
1441*cdf0e10cSrcweir };
1442*cdf0e10cSrcweir 
1443*cdf0e10cSrcweir //  ----------------------------------------------------
1444*cdf0e10cSrcweir //  class UnoProgressBarControl
1445*cdf0e10cSrcweir //  ----------------------------------------------------
1446*cdf0e10cSrcweir class UnoProgressBarControl :   public UnoControlBase,
1447*cdf0e10cSrcweir                                 public ::com::sun::star::awt::XProgressBar
1448*cdf0e10cSrcweir {
1449*cdf0e10cSrcweir public:
1450*cdf0e10cSrcweir                                 UnoProgressBarControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1451*cdf0e10cSrcweir     ::rtl::OUString             GetComponentServiceName();
1452*cdf0e10cSrcweir 
1453*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
1454*cdf0e10cSrcweir     ::com::sun::star::uno::Any  SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
1455*cdf0e10cSrcweir     void                        SAL_CALL acquire() throw()  { OWeakAggObject::acquire(); }
1456*cdf0e10cSrcweir     void                        SAL_CALL release() throw()  { OWeakAggObject::release(); }
1457*cdf0e10cSrcweir 
1458*cdf0e10cSrcweir     // ::com::sun::star::lang::XTypeProvider
1459*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
1460*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
1461*cdf0e10cSrcweir 
1462*cdf0e10cSrcweir     // ::com::sun::star::awt::XProgressBar
1463*cdf0e10cSrcweir     void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
1464*cdf0e10cSrcweir     void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
1465*cdf0e10cSrcweir     void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
1466*cdf0e10cSrcweir     void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
1467*cdf0e10cSrcweir     sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
1468*cdf0e10cSrcweir 
1469*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1470*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoProgressBarControl, UnoControlBase, szServiceName2_UnoControlProgressBar )
1471*cdf0e10cSrcweir };
1472*cdf0e10cSrcweir 
1473*cdf0e10cSrcweir 
1474*cdf0e10cSrcweir //  ----------------------------------------------------
1475*cdf0e10cSrcweir //  class UnoControlFixedLineModel
1476*cdf0e10cSrcweir //  ----------------------------------------------------
1477*cdf0e10cSrcweir class UnoControlFixedLineModel : public UnoControlModel
1478*cdf0e10cSrcweir {
1479*cdf0e10cSrcweir protected:
1480*cdf0e10cSrcweir     ::com::sun::star::uno::Any      ImplGetDefaultValue( sal_uInt16 nPropId ) const;
1481*cdf0e10cSrcweir     ::cppu::IPropertyArrayHelper&   SAL_CALL getInfoHelper();
1482*cdf0e10cSrcweir 
1483*cdf0e10cSrcweir public:
1484*cdf0e10cSrcweir                         UnoControlFixedLineModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1485*cdf0e10cSrcweir                         UnoControlFixedLineModel( const UnoControlFixedLineModel& rModel ) : UnoControlModel( rModel ) {;}
1486*cdf0e10cSrcweir 
1487*cdf0e10cSrcweir     UnoControlModel*    Clone() const { return new UnoControlFixedLineModel( *this ); }
1488*cdf0e10cSrcweir 
1489*cdf0e10cSrcweir     // ::com::sun::star::beans::XMultiPropertySet
1490*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
1491*cdf0e10cSrcweir 
1492*cdf0e10cSrcweir     // ::com::sun::star::io::XPersistObject
1493*cdf0e10cSrcweir     ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
1494*cdf0e10cSrcweir 
1495*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1496*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedLineModel, UnoControlModel, szServiceName2_UnoControlFixedLineModel )
1497*cdf0e10cSrcweir 
1498*cdf0e10cSrcweir };
1499*cdf0e10cSrcweir 
1500*cdf0e10cSrcweir //  ----------------------------------------------------
1501*cdf0e10cSrcweir //  class UnoFixedLineControl
1502*cdf0e10cSrcweir //  ----------------------------------------------------
1503*cdf0e10cSrcweir class UnoFixedLineControl : public UnoControlBase
1504*cdf0e10cSrcweir {
1505*cdf0e10cSrcweir public:
1506*cdf0e10cSrcweir                         UnoFixedLineControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
1507*cdf0e10cSrcweir     ::rtl::OUString     GetComponentServiceName();
1508*cdf0e10cSrcweir 
1509*cdf0e10cSrcweir     sal_Bool SAL_CALL isTransparent(  ) throw(::com::sun::star::uno::RuntimeException);
1510*cdf0e10cSrcweir 
1511*cdf0e10cSrcweir     // ::com::sun::star::lang::XServiceInfo
1512*cdf0e10cSrcweir     DECLIMPL_SERVICEINFO_DERIVED( UnoFixedLineControl, UnoControlBase, szServiceName2_UnoControlFixedLine )
1513*cdf0e10cSrcweir 
1514*cdf0e10cSrcweir };
1515*cdf0e10cSrcweir 
1516*cdf0e10cSrcweir 
1517*cdf0e10cSrcweir 
1518*cdf0e10cSrcweir #endif // _TOOLKIT_HELPER_UNOCONTROLS_HXX_
1519*cdf0e10cSrcweir 
1520