bump product version to 5.0.4.1
[LibreOffice.git] / connectivity / source / inc / ado / Awrapadox.hxx
blob713dc8005e1a336ef014aa34bd8b34bd3800727a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_AWRAPADOX_HXX
21 #define INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_AWRAPADOX_HXX
23 #include <com/sun/star/beans/PropertyAttribute.hpp>
25 #ifndef __User_FWD_DEFINED__
26 #define __User_FWD_DEFINED__
27 typedef struct _ADOUser User;
28 #endif /* __User_FWD_DEFINED__ */
30 #ifndef __Group_FWD_DEFINED__
31 #define __Group_FWD_DEFINED__
32 typedef struct _ADOGroup Group;
33 #endif /* __Group_FWD_DEFINED__ */
35 #ifndef __Column_FWD_DEFINED__
36 #define __Column_FWD_DEFINED__
37 typedef struct _ADOColumn Column;
38 #endif /* __Column_FWD_DEFINED__ */
40 #ifndef __Index_FWD_DEFINED__
41 #define __Index_FWD_DEFINED__
42 typedef struct _ADOIndex Index;
43 #endif /* __cplusplus */
45 #ifndef __Key_FWD_DEFINED__
46 #define __Key_FWD_DEFINED__
47 typedef struct _ADOKey Key;
48 #endif /* __Key_FWD_DEFINED__ */
50 #ifndef __Table_FWD_DEFINED__
51 #define __Table_FWD_DEFINED__
52 typedef struct _ADOTable Table;
53 #endif /* __Table_FWD_DEFINED__ */
56 #include "ado_pre_sys_include.h"
57 #include <adoint.h>
58 #include <adoctint.h>
59 #include "ado_post_sys_include.h"
62 #include "ado/Aolewrap.hxx"
63 #include "ado/Aolevariant.hxx"
64 #include "ado/adoimp.hxx"
65 #include "ado/Awrapado.hxx"
66 #include "ado/WrapColumn.hxx"
67 #include "ado/WrapIndex.hxx"
68 #include "ado/WrapKey.hxx"
69 #include "ado/WrapTable.hxx"
70 #include "ado/WrapCatalog.hxx"
72 namespace connectivity
74 namespace ado
76 class WpADOView : public WpOLEBase<ADOView>
78 public:
79 WpADOView(ADOView* pInt=NULL) : WpOLEBase<ADOView>(pInt){}
80 WpADOView(const WpADOView& rhs) : WpOLEBase<ADOView>(rhs) {}
82 inline WpADOView& operator=(const WpADOView& rhs)
83 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
85 OUString get_Name() const;
86 void get_Command(OLEVariant& _rVar) const;
87 void put_Command(OLEVariant& _rVar);
90 class WpADOGroup : public WpOLEBase<ADOGroup>
92 public:
93 WpADOGroup(ADOGroup* pInt=NULL) : WpOLEBase<ADOGroup>(pInt){}
94 WpADOGroup(const WpADOGroup& rhs) : WpOLEBase<ADOGroup>(rhs) {}
96 inline WpADOGroup& operator=(const WpADOGroup& rhs)
97 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
99 void Create();
101 OUString get_Name() const;
102 void put_Name(const OUString& _rName);
103 RightsEnum GetPermissions(
104 /* [in] */ const OLEVariant& Name,
105 /* [in] */ ObjectTypeEnum ObjectType);
106 sal_Bool SetPermissions(
107 /* [in] */ const OLEVariant& Name,
108 /* [in] */ ObjectTypeEnum ObjectType,
109 /* [in] */ ActionEnum Action,
110 /* [in] */ RightsEnum Rights);
111 WpADOUsers get_Users( );
114 class WpADOUser : public WpOLEBase<_ADOUser>
116 public:
117 WpADOUser(_ADOUser* pInt=NULL) : WpOLEBase<_ADOUser>(pInt){}
118 WpADOUser(const WpADOUser& rhs) : WpOLEBase<_ADOUser>(rhs) {}
120 inline WpADOUser& operator=(const WpADOUser& rhs)
121 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
123 void Create();
125 OUString get_Name() const;
126 void put_Name(const OUString& _rName);
127 sal_Bool ChangePassword(const OUString& _rPwd,const OUString& _rNewPwd);
128 WpADOGroups get_Groups();
129 RightsEnum GetPermissions(
130 /* [in] */ const OLEVariant& Name,
131 /* [in] */ ObjectTypeEnum ObjectType);
132 sal_Bool SetPermissions(
133 /* [in] */ const OLEVariant& Name,
134 /* [in] */ ObjectTypeEnum ObjectType,
135 /* [in] */ ActionEnum Action,
136 /* [in] */ RightsEnum Rights);
140 #endif // INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_AWRAPADOX_HXX
142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */