summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-02-26 09:26:48 +0000
committerOliver Specht <os@openoffice.org>2001-02-26 09:26:48 +0000
commit563fa5c7e296ecba2cb5d3c513b2264221b6e657 (patch)
tree4c6a5f8bcf5724476995138452a45166571254e3 /sw/inc
parent7ff81bd11d294ca385100264271429171abe776d (diff)
#84300# determin invalid DataBase selection and leave field empty if necessary
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/dbmgr.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 94fc7214aeb5..74d4af391d1d 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbmgr.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: os $ $Date: 2001-02-21 12:13:10 $
+ * last change: $Author: os $ $Date: 2001-02-26 10:26:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,6 +157,7 @@ struct SwDSParam
BOOL bScrollable;
BOOL bSelectionList;
BOOL bEndOfDB;
+ BOOL bAfterSelection;
long nSelectionIndex;
SwDSParam(const String& rSource, const String& rTable, BYTE nType, const String& rStatement) :
@@ -167,6 +168,7 @@ struct SwDSParam
bScrollable(FALSE),
bSelectionList(FALSE),
bEndOfDB(FALSE),
+ bAfterSelection(FALSE),
nSelectionIndex(0)
{}
@@ -179,10 +181,17 @@ struct SwDSParam
bScrollable(TRUE),
bSelectionList(FALSE),
bEndOfDB(FALSE),
+ bAfterSelection(FALSE),
nSelectionIndex(0),
xResultSet(xResSet),
aSelection(rSelection)
{}
+
+ void CheckEndOfDB()
+ {
+ if(bEndOfDB)
+ bAfterSelection = TRUE;
+ }
};
typedef SwDSParam* SwDSParamPtr;
SV_DECL_PTRARR_DEL(SwDSParamArr, SwDSParamPtr, 0, 5)