xref: /trunk/main/dbaccess/source/ui/uno/ColumnPeer.hxx (revision 2e2212a7)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef DBAUI_COLUMNPEER_HXX
24 #define DBAUI_COLUMNPEER_HXX
25 
26 #ifndef _TOOLKIT_AWT_VCLXWINDOW_HXX_
27 #include <toolkit/awt/vclxwindow.hxx>
28 #endif
29 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
30 #include <com/sun/star/beans/XPropertySet.hpp>
31 #endif
32 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
33 #include <com/sun/star/sdbc/XConnection.hpp>
34 #endif
35 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
36 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
37 #endif
38 
39 //.........................................................................
40 namespace dbaui
41 {
42 //.........................................................................
43 	class OFieldDescription;
44 	class OColumnPeer	:	public VCLXWindow
45 	{
46 		::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xORB;
47 		OFieldDescription*		                                                        m_pActFieldDescr;
48 		::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>        m_xColumn;
49 	public:
50 
51 		OColumnPeer(Window* _pParent
52 					,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
53 
54 		void setColumn(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xColumn);
55 		void setConnection(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xCon);
56 		void setEditWidth(sal_Int32 _nWidth);
57 		// VCLXWindow
58 		virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
59 		virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
60 	};
61 //.........................................................................
62 }	// namespace dbaui
63 //.........................................................................
64 #endif //DBAUI_COLUMNPEER_HXX
65 
66 
67