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