xref: /trunk/main/connectivity/source/inc/ado/Awrapadox.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
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 
28 #ifndef _CONNECTIVITY_ADO_AWRAPADOX_HXX_
29 #define _CONNECTIVITY_ADO_AWRAPADOX_HXX_
30 
31 #include <com/sun/star/beans/PropertyAttribute.hpp>
32 
33 #ifndef __User_FWD_DEFINED__
34 #define __User_FWD_DEFINED__
35 typedef struct _ADOUser User;
36 #endif  /* __User_FWD_DEFINED__ */
37 
38 #ifndef __Group_FWD_DEFINED__
39 #define __Group_FWD_DEFINED__
40 typedef struct _ADOGroup Group;
41 #endif /* __Group_FWD_DEFINED__ */
42 
43 #ifndef __Column_FWD_DEFINED__
44 #define __Column_FWD_DEFINED__
45 typedef struct _ADOColumn Column;
46 #endif  /* __Column_FWD_DEFINED__ */
47 
48 #ifndef __Index_FWD_DEFINED__
49 #define __Index_FWD_DEFINED__
50 typedef struct _ADOIndex Index;
51 #endif /* __cplusplus */
52 
53 #ifndef __Key_FWD_DEFINED__
54 #define __Key_FWD_DEFINED__
55 typedef struct _ADOKey Key;
56 #endif  /* __Key_FWD_DEFINED__ */
57 
58 #ifndef __Table_FWD_DEFINED__
59 #define __Table_FWD_DEFINED__
60 typedef struct _ADOTable Table;
61 #endif  /* __Table_FWD_DEFINED__ */
62 
63 
64 #include "ado_pre_sys_include.h"
65 #include <adoint.h>
66 #include <adoctint.h>
67 #include "ado_post_sys_include.h"
68 
69 
70 #include "ado/Aolewrap.hxx"
71 #include "ado/Aolevariant.hxx"
72 #include "ado/adoimp.hxx"
73 #include "ado/Awrapado.hxx"
74 #include "ado/WrapColumn.hxx"
75 #include "ado/WrapIndex.hxx"
76 #include "ado/WrapKey.hxx"
77 #include "ado/WrapTable.hxx"
78 #include "ado/WrapCatalog.hxx"
79 
80 namespace connectivity
81 {
82     namespace ado
83     {
84         class WpADOView : public WpOLEBase<ADOView>
85         {
86         public:
87             WpADOView(ADOView* pInt=NULL)   :   WpOLEBase<ADOView>(pInt){}
88             WpADOView(const WpADOView& rhs){operator=(rhs);}
89 
90             inline WpADOView& operator=(const WpADOView& rhs)
91                 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
92 
93             ::rtl::OUString get_Name() const;
94             void get_Command(OLEVariant& _rVar) const;
95             void put_Command(OLEVariant& _rVar);
96         };
97 
98         class WpADOGroup : public WpOLEBase<ADOGroup>
99         {
100         public:
101             WpADOGroup(ADOGroup* pInt=NULL) :   WpOLEBase<ADOGroup>(pInt){}
102             WpADOGroup(const WpADOGroup& rhs){operator=(rhs);}
103 
104             inline WpADOGroup& operator=(const WpADOGroup& rhs)
105                 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
106 
107             void Create();
108 
109             ::rtl::OUString get_Name() const;
110             void put_Name(const ::rtl::OUString& _rName);
111             RightsEnum GetPermissions(
112                 /* [in] */ const OLEVariant& Name,
113                 /* [in] */ ObjectTypeEnum ObjectType);
114             sal_Bool SetPermissions(
115                 /* [in] */ const OLEVariant& Name,
116                 /* [in] */ ObjectTypeEnum ObjectType,
117                 /* [in] */ ActionEnum Action,
118                 /* [in] */ RightsEnum Rights);
119             WpADOUsers get_Users( );
120         };
121 
122         class WpADOUser : public WpOLEBase<_ADOUser>
123         {
124         public:
125             WpADOUser(_ADOUser* pInt=NULL)  :   WpOLEBase<_ADOUser>(pInt){}
126             WpADOUser(const WpADOUser& rhs){operator=(rhs);}
127 
128             inline WpADOUser& operator=(const WpADOUser& rhs)
129                 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
130 
131             void Create();
132 
133             ::rtl::OUString get_Name() const;
134             void put_Name(const ::rtl::OUString& _rName);
135             sal_Bool ChangePassword(const ::rtl::OUString& _rPwd,const ::rtl::OUString& _rNewPwd);
136             WpADOGroups get_Groups();
137             RightsEnum GetPermissions(
138                 /* [in] */ const OLEVariant& Name,
139                 /* [in] */ ObjectTypeEnum ObjectType);
140             sal_Bool SetPermissions(
141                 /* [in] */ const OLEVariant& Name,
142                 /* [in] */ ObjectTypeEnum ObjectType,
143                 /* [in] */ ActionEnum Action,
144                 /* [in] */ RightsEnum Rights);
145         };
146     }
147 }
148 #endif // _CONNECTIVITY_ADO_AWRAPADOX_HXX_
149 
150