1*caf5cd79SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*caf5cd79SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*caf5cd79SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*caf5cd79SAndrew Rist * distributed with this work for additional information 6*caf5cd79SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*caf5cd79SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*caf5cd79SAndrew Rist * "License"); you may not use this file except in compliance 9*caf5cd79SAndrew Rist * with the License. You may obtain a copy of the License at 10*caf5cd79SAndrew Rist * 11*caf5cd79SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*caf5cd79SAndrew Rist * 13*caf5cd79SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*caf5cd79SAndrew Rist * software distributed under the License is distributed on an 15*caf5cd79SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*caf5cd79SAndrew Rist * KIND, either express or implied. See the License for the 17*caf5cd79SAndrew Rist * specific language governing permissions and limitations 18*caf5cd79SAndrew Rist * under the License. 19*caf5cd79SAndrew Rist * 20*caf5cd79SAndrew Rist *************************************************************/ 21*caf5cd79SAndrew Rist 22*caf5cd79SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _CONNECTIVITY_ADO_AWRAPADOX_HXX_ 25cdf0e10cSrcweir #define _CONNECTIVITY_ADO_AWRAPADOX_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp> 28cdf0e10cSrcweir 29cdf0e10cSrcweir #ifndef __User_FWD_DEFINED__ 30cdf0e10cSrcweir #define __User_FWD_DEFINED__ 31cdf0e10cSrcweir typedef struct _ADOUser User; 32cdf0e10cSrcweir #endif /* __User_FWD_DEFINED__ */ 33cdf0e10cSrcweir 34cdf0e10cSrcweir #ifndef __Group_FWD_DEFINED__ 35cdf0e10cSrcweir #define __Group_FWD_DEFINED__ 36cdf0e10cSrcweir typedef struct _ADOGroup Group; 37cdf0e10cSrcweir #endif /* __Group_FWD_DEFINED__ */ 38cdf0e10cSrcweir 39cdf0e10cSrcweir #ifndef __Column_FWD_DEFINED__ 40cdf0e10cSrcweir #define __Column_FWD_DEFINED__ 41cdf0e10cSrcweir typedef struct _ADOColumn Column; 42cdf0e10cSrcweir #endif /* __Column_FWD_DEFINED__ */ 43cdf0e10cSrcweir 44cdf0e10cSrcweir #ifndef __Index_FWD_DEFINED__ 45cdf0e10cSrcweir #define __Index_FWD_DEFINED__ 46cdf0e10cSrcweir typedef struct _ADOIndex Index; 47cdf0e10cSrcweir #endif /* __cplusplus */ 48cdf0e10cSrcweir 49cdf0e10cSrcweir #ifndef __Key_FWD_DEFINED__ 50cdf0e10cSrcweir #define __Key_FWD_DEFINED__ 51cdf0e10cSrcweir typedef struct _ADOKey Key; 52cdf0e10cSrcweir #endif /* __Key_FWD_DEFINED__ */ 53cdf0e10cSrcweir 54cdf0e10cSrcweir #ifndef __Table_FWD_DEFINED__ 55cdf0e10cSrcweir #define __Table_FWD_DEFINED__ 56cdf0e10cSrcweir typedef struct _ADOTable Table; 57cdf0e10cSrcweir #endif /* __Table_FWD_DEFINED__ */ 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60cdf0e10cSrcweir #include "ado_pre_sys_include.h" 61cdf0e10cSrcweir #include <adoint.h> 62cdf0e10cSrcweir #include <adoctint.h> 63cdf0e10cSrcweir #include "ado_post_sys_include.h" 64cdf0e10cSrcweir 65cdf0e10cSrcweir 66cdf0e10cSrcweir #include "ado/Aolewrap.hxx" 67cdf0e10cSrcweir #include "ado/Aolevariant.hxx" 68cdf0e10cSrcweir #include "ado/adoimp.hxx" 69cdf0e10cSrcweir #include "ado/Awrapado.hxx" 70cdf0e10cSrcweir #include "ado/WrapColumn.hxx" 71cdf0e10cSrcweir #include "ado/WrapIndex.hxx" 72cdf0e10cSrcweir #include "ado/WrapKey.hxx" 73cdf0e10cSrcweir #include "ado/WrapTable.hxx" 74cdf0e10cSrcweir #include "ado/WrapCatalog.hxx" 75cdf0e10cSrcweir 76cdf0e10cSrcweir namespace connectivity 77cdf0e10cSrcweir { 78cdf0e10cSrcweir namespace ado 79cdf0e10cSrcweir { 80cdf0e10cSrcweir class WpADOView : public WpOLEBase<ADOView> 81cdf0e10cSrcweir { 82cdf0e10cSrcweir public: WpADOView(ADOView * pInt=NULL)83cdf0e10cSrcweir WpADOView(ADOView* pInt=NULL) : WpOLEBase<ADOView>(pInt){} WpADOView(const WpADOView & rhs)84cdf0e10cSrcweir WpADOView(const WpADOView& rhs){operator=(rhs);} 85cdf0e10cSrcweir operator =(const WpADOView & rhs)86cdf0e10cSrcweir inline WpADOView& operator=(const WpADOView& rhs) 87cdf0e10cSrcweir {WpOLEBase<ADOView>::operator=(rhs); return *this;} 88cdf0e10cSrcweir 89cdf0e10cSrcweir ::rtl::OUString get_Name() const; 90cdf0e10cSrcweir void get_Command(OLEVariant& _rVar) const; 91cdf0e10cSrcweir void put_Command(OLEVariant& _rVar); 92cdf0e10cSrcweir }; 93cdf0e10cSrcweir 94cdf0e10cSrcweir class WpADOGroup : public WpOLEBase<ADOGroup> 95cdf0e10cSrcweir { 96cdf0e10cSrcweir public: WpADOGroup(ADOGroup * pInt=NULL)97cdf0e10cSrcweir WpADOGroup(ADOGroup* pInt=NULL) : WpOLEBase<ADOGroup>(pInt){} WpADOGroup(const WpADOGroup & rhs)98cdf0e10cSrcweir WpADOGroup(const WpADOGroup& rhs){operator=(rhs);} 99cdf0e10cSrcweir operator =(const WpADOGroup & rhs)100cdf0e10cSrcweir inline WpADOGroup& operator=(const WpADOGroup& rhs) 101cdf0e10cSrcweir {WpOLEBase<ADOGroup>::operator=(rhs); return *this;} 102cdf0e10cSrcweir 103cdf0e10cSrcweir void Create(); 104cdf0e10cSrcweir 105cdf0e10cSrcweir ::rtl::OUString get_Name() const; 106cdf0e10cSrcweir void put_Name(const ::rtl::OUString& _rName); 107cdf0e10cSrcweir RightsEnum GetPermissions( 108cdf0e10cSrcweir /* [in] */ const OLEVariant& Name, 109cdf0e10cSrcweir /* [in] */ ObjectTypeEnum ObjectType); 110cdf0e10cSrcweir sal_Bool SetPermissions( 111cdf0e10cSrcweir /* [in] */ const OLEVariant& Name, 112cdf0e10cSrcweir /* [in] */ ObjectTypeEnum ObjectType, 113cdf0e10cSrcweir /* [in] */ ActionEnum Action, 114cdf0e10cSrcweir /* [in] */ RightsEnum Rights); 115cdf0e10cSrcweir WpADOUsers get_Users( ); 116cdf0e10cSrcweir }; 117cdf0e10cSrcweir 118cdf0e10cSrcweir class WpADOUser : public WpOLEBase<_ADOUser> 119cdf0e10cSrcweir { 120cdf0e10cSrcweir public: WpADOUser(_ADOUser * pInt=NULL)121cdf0e10cSrcweir WpADOUser(_ADOUser* pInt=NULL) : WpOLEBase<_ADOUser>(pInt){} WpADOUser(const WpADOUser & rhs)122cdf0e10cSrcweir WpADOUser(const WpADOUser& rhs){operator=(rhs);} 123cdf0e10cSrcweir operator =(const WpADOUser & rhs)124cdf0e10cSrcweir inline WpADOUser& operator=(const WpADOUser& rhs) 125cdf0e10cSrcweir {WpOLEBase<_ADOUser>::operator=(rhs); return *this;} 126cdf0e10cSrcweir 127cdf0e10cSrcweir void Create(); 128cdf0e10cSrcweir 129cdf0e10cSrcweir ::rtl::OUString get_Name() const; 130cdf0e10cSrcweir void put_Name(const ::rtl::OUString& _rName); 131cdf0e10cSrcweir sal_Bool ChangePassword(const ::rtl::OUString& _rPwd,const ::rtl::OUString& _rNewPwd); 132cdf0e10cSrcweir WpADOGroups get_Groups(); 133cdf0e10cSrcweir RightsEnum GetPermissions( 134cdf0e10cSrcweir /* [in] */ const OLEVariant& Name, 135cdf0e10cSrcweir /* [in] */ ObjectTypeEnum ObjectType); 136cdf0e10cSrcweir sal_Bool SetPermissions( 137cdf0e10cSrcweir /* [in] */ const OLEVariant& Name, 138cdf0e10cSrcweir /* [in] */ ObjectTypeEnum ObjectType, 139cdf0e10cSrcweir /* [in] */ ActionEnum Action, 140cdf0e10cSrcweir /* [in] */ RightsEnum Rights); 141cdf0e10cSrcweir }; 142cdf0e10cSrcweir } 143cdf0e10cSrcweir } 144cdf0e10cSrcweir #endif // _CONNECTIVITY_ADO_AWRAPADOX_HXX_ 145cdf0e10cSrcweir 146