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