summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/control/marktree.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-10-05 12:03:15 +0000
committerKurt Zenker <kz@openoffice.org>2006-10-05 12:03:15 +0000
commit397e12af676ca88639be8102b53ac0f884feeb07 (patch)
treeaef9302bb01442d062d2d761165ce59c60a7a409 /dbaccess/source/ui/control/marktree.cxx
parentINTEGRATION: CWS hsqlcsvstage1 (1.12.2); FILE MERGED (diff)
downloadcore-397e12af676ca88639be8102b53ac0f884feeb07.tar.gz
core-397e12af676ca88639be8102b53ac0f884feeb07.zip
INTEGRATION: CWS hsqlcsvstage1 (1.16.2); FILE MERGED
2006/09/20 11:43:57 fs 1.16.2.1: #i69696#, being stage 1 of issue #i69526#: merging changes from CWS hsqlcsv herein
Diffstat (limited to 'dbaccess/source/ui/control/marktree.cxx')
-rw-r--r--dbaccess/source/ui/control/marktree.cxx74
1 files changed, 2 insertions, 72 deletions
diff --git a/dbaccess/source/ui/control/marktree.cxx b/dbaccess/source/ui/control/marktree.cxx
index 7a69b840b400..4ff9a51f73e3 100644
--- a/dbaccess/source/ui/control/marktree.cxx
+++ b/dbaccess/source/ui/control/marktree.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: marktree.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 07:02:01 $
+ * last change: $Author: kz $ $Date: 2006-10-05 13:03:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -208,76 +208,6 @@ void OMarkableTreeListBox::CheckButtons()
implDetermineState(pEntry);
pEntry = GetModel()->NextSibling(pEntry);
}
-
-#if 0
- // Plausibilit"atspr"ufung
- SvButtonState eState;
- SvLBoxEntry* pEntry = GetModel()->First();
- while(pEntry)
- {
- if(!GetModel()->HasChilds(pEntry))
- {
- sal_uInt16 nCheck=0;
- sal_uInt16 nCount=0;
- SvLBoxEntry* pChildEntry = pEntry;
- while(pChildEntry)
- {
- if(GetCheckButtonState(pChildEntry) == SV_BUTTON_CHECKED)
- nCheck++;
- nCount++;
- pChildEntry = GetModel()->NextSibling(pChildEntry);
- }
-
- if(nCheck && nCount != nCheck)
- eState = SV_BUTTON_TRISTATE;
- else if(nCheck)
- eState = SV_BUTTON_CHECKED;
- else
- eState = SV_BUTTON_UNCHECKED;
-
- SvLBoxEntry* pSchema = GetModel()->GetParent(pEntry);
- if(pSchema)
- {
- pEntry = GetModel()->NextSibling(pSchema);
- SetCheckButtonState(pSchema, eState);
- }
- else
- pEntry = NULL; // wenn kein Schema dann sind bereits alle pEntry's durchlaufen worden
- }
- else
- pEntry = GetModel()->Next(pEntry);
- }
-
- SvLBoxEntry* pCatalog = GetModel()->First();
- SvLBoxEntry* pSchema = NULL;
- if(GetModel()->HasChilds(pCatalog) && GetModel()->HasChilds(pSchema = GetModel()->Next(pCatalog)))
- {
- sal_uInt16 nCheck =0;
- sal_uInt16 nTri =0;
- sal_uInt16 nCount =0;
- while(pSchema)
- {
- if((eState = GetCheckButtonState(pSchema)) == SV_BUTTON_TRISTATE)
- break;
-
- if(eState == SV_BUTTON_CHECKED)
- nCheck++;
- nCount++;
- pSchema = GetModel()->NextSibling(pSchema);
- }
-
- if(eState != SV_BUTTON_TRISTATE)
- {
- if(nCheck && nCount == nCheck)
- eState = SV_BUTTON_CHECKED;
- else if(nCheck)
- eState = SV_BUTTON_TRISTATE;
- else
- eState = SV_BUTTON_UNCHECKED;
- }
- SetCheckButtonState( pCatalog,eState);
- }
-#endif
}
//------------------------------------------------------------------------
void OMarkableTreeListBox::CheckButtonHdl()