1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef CONNECTIVITY_ADO_WRAP_COLUMN_HXX
28 #define CONNECTIVITY_ADO_WRAP_COLUMN_HXX
29 
30 #include "ado/Aolewrap.hxx"
31 
32 #include "ado_pre_sys_include.h"
33 #include <adoint.h>
34 #include "ado_post_sys_include.h"
35 
36 namespace connectivity
37 {
38 	namespace ado
39 	{
40 		class WpADOColumn : public WpOLEBase<_ADOColumn>
41 		{
42 		public:
43 			WpADOColumn(_ADOColumn* pInt=NULL)	:	WpOLEBase<_ADOColumn>(pInt){}
44 			WpADOColumn(const WpADOColumn& rhs){operator=(rhs);}
45 
46 			void Create();
47 
48 			inline WpADOColumn& operator=(const WpADOColumn& rhs)
49 				{WpOLEBase<_ADOColumn>::operator=(rhs); return *this;}
50 
51 			::rtl::OUString get_Name() const;
52 			::rtl::OUString get_RelatedColumn() const;
53 			void put_Name(const ::rtl::OUString& _rName);
54 			void put_RelatedColumn(const ::rtl::OUString& _rName);
55 			DataTypeEnum get_Type() const;
56 			void put_Type(const DataTypeEnum& _eNum) ;
57 			sal_Int32 get_Precision() const;
58 			void put_Precision(sal_Int32 _nPre) ;
59 			sal_uInt8 get_NumericScale() const;
60 			void put_NumericScale(sal_Int8 _nScale);
61 			SortOrderEnum get_SortOrder() const;
62 			void put_SortOrder(SortOrderEnum _nScale);
63 			sal_Int32 get_DefinedSize() const;
64 			ColumnAttributesEnum get_Attributes() const;
65 			sal_Bool put_Attributes(const ColumnAttributesEnum& _eNum);
66 			WpADOProperties get_Properties() const;
67 			void put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject);
68 		};
69 	}
70 }
71 
72 #endif //CONNECTIVITY_ADO_WRAP_COLUMN_HXX
73