summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/AGroup.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/ado/AGroup.cxx')
-rw-r--r--connectivity/source/drivers/ado/AGroup.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/connectivity/source/drivers/ado/AGroup.cxx b/connectivity/source/drivers/ado/AGroup.cxx
index 1ef7304ddaef..473573e0cadc 100644
--- a/connectivity/source/drivers/ado/AGroup.cxx
+++ b/connectivity/source/drivers/ado/AGroup.cxx
@@ -34,7 +34,7 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdbcx;
-// -------------------------------------------------------------------------
+
void WpADOGroup::Create()
{
ADOGroup* pGroup = NULL;
@@ -51,7 +51,7 @@ void WpADOGroup::Create()
pGroup->Release();
}
}
-// -------------------------------------------------------------------------
+
OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, ADOGroup* _pGroup) : OGroup_ADO(_bCase),m_pCatalog(_pParent)
{
construct();
@@ -61,14 +61,14 @@ OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, ADOGroup* _pGroup) :
m_aGroup.Create();
}
-// -------------------------------------------------------------------------
+
OAdoGroup::OAdoGroup(OCatalog* _pParent,sal_Bool _bCase, const OUString& _Name) : OGroup_ADO(_Name,_bCase),m_pCatalog(_pParent)
{
construct();
m_aGroup.Create();
m_aGroup.put_Name(_Name);
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::refreshUsers()
{
TStringVector aVector;
@@ -81,7 +81,7 @@ void OAdoGroup::refreshUsers()
else
m_pUsers = new OUsers(m_pCatalog,m_aMutex,aVector,aUsers,isCaseSensitive());
}
-//--------------------------------------------------------------------------
+
Sequence< sal_Int8 > OAdoGroup::getUnoTunnelImplementationId()
{
static ::cppu::OImplementationId * pId = 0;
@@ -98,7 +98,7 @@ Sequence< sal_Int8 > OAdoGroup::getUnoTunnelImplementationId()
}
// com::sun::star::lang::XUnoTunnel
-//------------------------------------------------------------------
+
sal_Int64 OAdoGroup::getSomething( const Sequence< sal_Int8 > & rId ) throw (RuntimeException)
{
return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelImplementationId().getConstArray(), rId.getConstArray(), 16 ) )
@@ -106,7 +106,7 @@ sal_Int64 OAdoGroup::getSomething( const Sequence< sal_Int8 > & rId ) throw (Run
: OGroup_ADO::getSomething(rId);
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
if(m_aGroup.IsValid())
@@ -124,7 +124,7 @@ void OAdoGroup::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rV
}
}
}
-// -------------------------------------------------------------------------
+
void OAdoGroup::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
if(m_aGroup.IsValid())
@@ -137,13 +137,13 @@ void OAdoGroup::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
}
}
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoGroup::getPrivileges( const OUString& objName, sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
return MapRight(m_aGroup.GetPermissions(objName,MapObjectType(objType)));
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OAdoGroup::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
RightsEnum eNum = m_aGroup.GetPermissions(objName,MapObjectType(objType));
@@ -151,28 +151,28 @@ sal_Int32 SAL_CALL OAdoGroup::getGrantablePrivileges( const OUString& objName, s
return MapRight(eNum);
return 0;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
m_aGroup.SetPermissions(objName,MapObjectType(objType),adAccessGrant,Map2Right(objPrivileges));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) throw(::com::sun::star::sdbc::SQLException, RuntimeException)
{
m_aGroup.SetPermissions(objName,MapObjectType(objType),adAccessDeny,Map2Right(objPrivileges));
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::acquire() throw()
{
OGroup_ADO::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OAdoGroup::release() throw()
{
OGroup_ADO::release();
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */