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_TABLEFIELDCONTROL_HXX
24 #define DBAUI_TABLEFIELDCONTROL_HXX
25 
26 #ifndef DBAUI_FIELDDESCRIPTIONCONTROL_HXX
27 #include "FieldDescControl.hxx"
28 #endif
29 
30 namespace dbaui
31 {
32 	class OTableEditorCtrl;
33 	class OTableDesignHelpBar;
34 	//==================================================================
35 	// OTableFieldControl
36 	//==================================================================
37 	class OTableFieldControl : public OFieldDescControl
38 	{
39 		OTableEditorCtrl*	GetCtrl() const;
40 	protected:
41 		virtual void		ActivateAggregate( EControlType eType );
42 		virtual void		DeactivateAggregate( EControlType eType );
43 		// Sind von den abgeleiteten Klassen zu impl.
44 		virtual void		CellModified(long nRow, sal_uInt16 nColId );
45 		virtual sal_Bool		IsReadOnly();
46 		virtual void		SetModified(sal_Bool bModified);
47 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >	GetFormatter() const;
48 
49 		virtual ::com::sun::star::lang::Locale	GetLocale() const;
50 
51 		virtual TOTypeInfoSP					getTypeInfo(sal_Int32 _nPos);
52 		virtual const OTypeInfoMap*				getTypeInfo() const;
53 		virtual sal_Bool						isAutoIncrementValueEnabled() const;
54 		virtual ::rtl::OUString					getAutoIncrementValue() const;
55 
56 	public:
57 		OTableFieldControl( Window* pParent, OTableDesignHelpBar* pHelpBar);
58 
BoolStringPersistent(const String & rUIString) const59 		String BoolStringPersistent(const String& rUIString) const { return OFieldDescControl::BoolStringPersistent(rUIString); }
BoolStringUI(const String & rPersistentString) const60 		String BoolStringUI(const String& rPersistentString) const { return OFieldDescControl::BoolStringUI(rPersistentString); }
61 
62 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> getMetaData();
63 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection();
64 	};
65 }
66 #endif // DBAUI_TABLEFIELDCONTROL_HXX
67 
68 
69