summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mozab
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 17:29:35 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-06-25 17:29:35 +0000
commit5c459f8330970157ffd54dd9ee7398c16c081a3e (patch)
treec1291c387a4a0a69ecb12f90668772fc0d4d20bb /connectivity/source/drivers/mozab
parent07483856b037f28efbe4a9b1b2f4f9e2ad65dd05 (diff)
INTEGRATION: CWS mozab04 (1.2.182); FILE MERGED
2004/04/05 09:54:42 windly 1.2.182.1: #i20338# Read and Write access to Address Books
Diffstat (limited to 'connectivity/source/drivers/mozab')
-rw-r--r--connectivity/source/drivers/mozab/MResultSetMetaData.cxx6
-rw-r--r--connectivity/source/drivers/mozab/MResultSetMetaData.hxx13
2 files changed, 11 insertions, 8 deletions
diff --git a/connectivity/source/drivers/mozab/MResultSetMetaData.cxx b/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
index 9990907396d3..a70ace393a13 100644
--- a/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
+++ b/connectivity/source/drivers/mozab/MResultSetMetaData.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MResultSetMetaData.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2001-11-26 13:51:14 $
+ * last change: $Author: hjs $ $Date: 2004-06-25 18:29:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -215,7 +215,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLEx
sal_Bool bReadOnly = (*m_xColumns)[column-1]->getPropertySetInfo()->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION)) &&
::cppu::any2bool((*m_xColumns)[column-1]->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FUNCTION)));
- return bReadOnly || m_pTable->isReadOnly();
+ return m_bReadOnly || bReadOnly || m_pTable->isReadOnly();
}
// -------------------------------------------------------------------------
diff --git a/connectivity/source/drivers/mozab/MResultSetMetaData.hxx b/connectivity/source/drivers/mozab/MResultSetMetaData.hxx
index 5d909af120e9..f87c270a9d7d 100644
--- a/connectivity/source/drivers/mozab/MResultSetMetaData.hxx
+++ b/connectivity/source/drivers/mozab/MResultSetMetaData.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MResultSetMetaData.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2001-11-26 13:51:14 $
+ * last change: $Author: hjs $ $Date: 2004-06-25 18:29:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,7 +93,7 @@ namespace connectivity
::rtl::OUString m_aTableName;
::vos::ORef<connectivity::OSQLColumns> m_xColumns;
OTable* m_pTable;
-
+ sal_Bool m_bReadOnly;
protected:
virtual ~OResultSetMetaData();
@@ -101,8 +101,11 @@ namespace connectivity
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
// OResultSetMetaData(OConnection* _pConnection) : m_pConnection(_pConnection){}
OResultSetMetaData(const ::vos::ORef<connectivity::OSQLColumns>& _rxColumns,
- const ::rtl::OUString& _aTableName,OTable* _pTable)
- : m_xColumns(_rxColumns), m_aTableName(_aTableName), m_pTable(_pTable){}
+ const ::rtl::OUString& _aTableName,OTable* _pTable,sal_Bool aReadOnly
+ )
+ : m_xColumns(_rxColumns), m_aTableName(_aTableName), m_pTable(_pTable)
+ ,m_bReadOnly(aReadOnly)
+ {}
/// Avoid ambigous cast error from the compiler.