1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CONNECTIVITY_ADO_AWRAPADOX_HXX_
30 #define _CONNECTIVITY_ADO_AWRAPADOX_HXX_
32 #include <com/sun/star/beans/PropertyAttribute.hpp>
34 #ifndef __User_FWD_DEFINED__
35 #define __User_FWD_DEFINED__
36 typedef struct _ADOUser User
;
37 #endif /* __User_FWD_DEFINED__ */
39 #ifndef __Group_FWD_DEFINED__
40 #define __Group_FWD_DEFINED__
41 typedef struct _ADOGroup Group
;
42 #endif /* __Group_FWD_DEFINED__ */
44 #ifndef __Column_FWD_DEFINED__
45 #define __Column_FWD_DEFINED__
46 typedef struct _ADOColumn Column
;
47 #endif /* __Column_FWD_DEFINED__ */
49 #ifndef __Index_FWD_DEFINED__
50 #define __Index_FWD_DEFINED__
51 typedef struct _ADOIndex Index
;
52 #endif /* __cplusplus */
54 #ifndef __Key_FWD_DEFINED__
55 #define __Key_FWD_DEFINED__
56 typedef struct _ADOKey Key
;
57 #endif /* __Key_FWD_DEFINED__ */
59 #ifndef __Table_FWD_DEFINED__
60 #define __Table_FWD_DEFINED__
61 typedef struct _ADOTable Table
;
62 #endif /* __Table_FWD_DEFINED__ */
65 #include "ado_pre_sys_include.h"
68 #include "ado_post_sys_include.h"
71 #include "ado/Aolewrap.hxx"
72 #include "ado/Aolevariant.hxx"
73 #include "ado/adoimp.hxx"
74 #include "ado/Awrapado.hxx"
75 #include "ado/WrapColumn.hxx"
76 #include "ado/WrapIndex.hxx"
77 #include "ado/WrapKey.hxx"
78 #include "ado/WrapTable.hxx"
79 #include "ado/WrapCatalog.hxx"
81 namespace connectivity
85 class WpADOView
: public WpOLEBase
<ADOView
>
88 WpADOView(ADOView
* pInt
=NULL
) : WpOLEBase
<ADOView
>(pInt
){}
89 WpADOView(const WpADOView
& rhs
) : WpOLEBase
<ADOView
>(rhs
) {}
91 inline WpADOView
& operator=(const WpADOView
& rhs
)
92 {WpOLEBase
<ADOView
>::operator=(rhs
); return *this;}
94 ::rtl::OUString
get_Name() const;
95 void get_Command(OLEVariant
& _rVar
) const;
96 void put_Command(OLEVariant
& _rVar
);
99 class WpADOGroup
: public WpOLEBase
<ADOGroup
>
102 WpADOGroup(ADOGroup
* pInt
=NULL
) : WpOLEBase
<ADOGroup
>(pInt
){}
103 WpADOGroup(const WpADOGroup
& rhs
) : WpOLEBase
<ADOGroup
>(rhs
) {}
105 inline WpADOGroup
& operator=(const WpADOGroup
& rhs
)
106 {WpOLEBase
<ADOGroup
>::operator=(rhs
); return *this;}
110 ::rtl::OUString
get_Name() const;
111 void put_Name(const ::rtl::OUString
& _rName
);
112 RightsEnum
GetPermissions(
113 /* [in] */ const OLEVariant
& Name
,
114 /* [in] */ ObjectTypeEnum ObjectType
);
115 sal_Bool
SetPermissions(
116 /* [in] */ const OLEVariant
& Name
,
117 /* [in] */ ObjectTypeEnum ObjectType
,
118 /* [in] */ ActionEnum Action
,
119 /* [in] */ RightsEnum Rights
);
120 WpADOUsers
get_Users( );
123 class WpADOUser
: public WpOLEBase
<_ADOUser
>
126 WpADOUser(_ADOUser
* pInt
=NULL
) : WpOLEBase
<_ADOUser
>(pInt
){}
127 WpADOUser(const WpADOUser
& rhs
) : WpOLEBase
<_ADOUser
>(rhs
) {}
129 inline WpADOUser
& operator=(const WpADOUser
& rhs
)
130 {WpOLEBase
<_ADOUser
>::operator=(rhs
); return *this;}
134 ::rtl::OUString
get_Name() const;
135 void put_Name(const ::rtl::OUString
& _rName
);
136 sal_Bool
ChangePassword(const ::rtl::OUString
& _rPwd
,const ::rtl::OUString
& _rNewPwd
);
137 WpADOGroups
get_Groups();
138 RightsEnum
GetPermissions(
139 /* [in] */ const OLEVariant
& Name
,
140 /* [in] */ ObjectTypeEnum ObjectType
);
141 sal_Bool
SetPermissions(
142 /* [in] */ const OLEVariant
& Name
,
143 /* [in] */ ObjectTypeEnum ObjectType
,
144 /* [in] */ ActionEnum Action
,
145 /* [in] */ RightsEnum Rights
);
149 #endif // _CONNECTIVITY_ADO_AWRAPADOX_HXX_
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */