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 CONNECTIVITY_ADO_WRAP_COLUMN_HXX 24 #define CONNECTIVITY_ADO_WRAP_COLUMN_HXX 25 26 #include "ado/Aolewrap.hxx" 27 28 #include "ado_pre_sys_include.h" 29 #include <adoint.h> 30 #include "ado_post_sys_include.h" 31 32 namespace connectivity 33 { 34 namespace ado 35 { 36 class WpADOColumn : public WpOLEBase<_ADOColumn> 37 { 38 public: WpADOColumn(_ADOColumn * pInt=NULL)39 WpADOColumn(_ADOColumn* pInt=NULL) : WpOLEBase<_ADOColumn>(pInt){} WpADOColumn(const WpADOColumn & rhs)40 WpADOColumn(const WpADOColumn& rhs){operator=(rhs);} 41 42 void Create(); 43 operator =(const WpADOColumn & rhs)44 inline WpADOColumn& operator=(const WpADOColumn& rhs) 45 {WpOLEBase<_ADOColumn>::operator=(rhs); return *this;} 46 47 ::rtl::OUString get_Name() const; 48 ::rtl::OUString get_RelatedColumn() const; 49 void put_Name(const ::rtl::OUString& _rName); 50 void put_RelatedColumn(const ::rtl::OUString& _rName); 51 DataTypeEnum get_Type() const; 52 void put_Type(const DataTypeEnum& _eNum) ; 53 sal_Int32 get_Precision() const; 54 void put_Precision(sal_Int32 _nPre) ; 55 sal_uInt8 get_NumericScale() const; 56 void put_NumericScale(sal_Int8 _nScale); 57 SortOrderEnum get_SortOrder() const; 58 void put_SortOrder(SortOrderEnum _nScale); 59 sal_Int32 get_DefinedSize() const; 60 ColumnAttributesEnum get_Attributes() const; 61 sal_Bool put_Attributes(const ColumnAttributesEnum& _eNum); 62 WpADOProperties get_Properties() const; 63 void put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject); 64 }; 65 } 66 } 67 68 #endif //CONNECTIVITY_ADO_WRAP_COLUMN_HXX 69