Update ooo320-m1
[ooovba.git] / connectivity / source / inc / ado / Awrapadox.hxx
blob4c5de413abeda1fba8633e4ab81ae671f98d0871
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: Awrapadox.hxx,v $
10 * $Revision: 1.15 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CONNECTIVITY_ADO_AWRAPADOX_HXX_
32 #define _CONNECTIVITY_ADO_AWRAPADOX_HXX_
34 #include <com/sun/star/beans/PropertyAttribute.hpp>
36 #ifndef __User_FWD_DEFINED__
37 #define __User_FWD_DEFINED__
38 typedef struct _ADOUser User;
39 #endif /* __User_FWD_DEFINED__ */
41 #ifndef __Group_FWD_DEFINED__
42 #define __Group_FWD_DEFINED__
43 typedef struct _ADOGroup Group;
44 #endif /* __Group_FWD_DEFINED__ */
46 #ifndef __Column_FWD_DEFINED__
47 #define __Column_FWD_DEFINED__
48 typedef struct _ADOColumn Column;
49 #endif /* __Column_FWD_DEFINED__ */
51 #ifndef __Index_FWD_DEFINED__
52 #define __Index_FWD_DEFINED__
53 typedef struct _ADOIndex Index;
54 #endif /* __cplusplus */
56 #ifndef __Key_FWD_DEFINED__
57 #define __Key_FWD_DEFINED__
58 typedef struct _ADOKey Key;
59 #endif /* __Key_FWD_DEFINED__ */
61 #ifndef __Table_FWD_DEFINED__
62 #define __Table_FWD_DEFINED__
63 typedef struct _ADOTable Table;
64 #endif /* __Table_FWD_DEFINED__ */
67 #include "ado_pre_sys_include.h"
68 #include <adoint.h>
69 #include <adoctint.h>
70 #include "ado_post_sys_include.h"
73 #include "ado/Aolewrap.hxx"
74 #include "ado/Aolevariant.hxx"
75 #include "ado/adoimp.hxx"
76 #include "ado/Awrapado.hxx"
77 #include "ado/WrapColumn.hxx"
78 #include "ado/WrapIndex.hxx"
79 #include "ado/WrapKey.hxx"
80 #include "ado/WrapTable.hxx"
81 #include "ado/WrapCatalog.hxx"
83 namespace connectivity
85 namespace ado
87 class WpADOView : public WpOLEBase<ADOView>
89 public:
90 WpADOView(ADOView* pInt=NULL) : WpOLEBase<ADOView>(pInt){}
91 WpADOView(const WpADOView& rhs){operator=(rhs);}
93 inline WpADOView& operator=(const WpADOView& rhs)
94 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
96 ::rtl::OUString get_Name() const;
97 void get_Command(OLEVariant& _rVar) const;
98 void put_Command(OLEVariant& _rVar);
101 class WpADOGroup : public WpOLEBase<ADOGroup>
103 public:
104 WpADOGroup(ADOGroup* pInt=NULL) : WpOLEBase<ADOGroup>(pInt){}
105 WpADOGroup(const WpADOGroup& rhs){operator=(rhs);}
107 inline WpADOGroup& operator=(const WpADOGroup& rhs)
108 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
110 void Create();
112 ::rtl::OUString get_Name() const;
113 void put_Name(const ::rtl::OUString& _rName);
114 RightsEnum GetPermissions(
115 /* [in] */ const OLEVariant& Name,
116 /* [in] */ ObjectTypeEnum ObjectType);
117 sal_Bool SetPermissions(
118 /* [in] */ const OLEVariant& Name,
119 /* [in] */ ObjectTypeEnum ObjectType,
120 /* [in] */ ActionEnum Action,
121 /* [in] */ RightsEnum Rights);
122 WpADOUsers get_Users( );
125 class WpADOUser : public WpOLEBase<_ADOUser>
127 public:
128 WpADOUser(_ADOUser* pInt=NULL) : WpOLEBase<_ADOUser>(pInt){}
129 WpADOUser(const WpADOUser& rhs){operator=(rhs);}
131 inline WpADOUser& operator=(const WpADOUser& rhs)
132 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
134 void Create();
136 ::rtl::OUString get_Name() const;
137 void put_Name(const ::rtl::OUString& _rName);
138 sal_Bool ChangePassword(const ::rtl::OUString& _rPwd,const ::rtl::OUString& _rNewPwd);
139 WpADOGroups get_Groups();
140 RightsEnum GetPermissions(
141 /* [in] */ const OLEVariant& Name,
142 /* [in] */ ObjectTypeEnum ObjectType);
143 sal_Bool SetPermissions(
144 /* [in] */ const OLEVariant& Name,
145 /* [in] */ ObjectTypeEnum ObjectType,
146 /* [in] */ ActionEnum Action,
147 /* [in] */ RightsEnum Rights);
151 #endif // _CONNECTIVITY_ADO_AWRAPADOX_HXX_