From 397e12af676ca88639be8102b53ac0f884feeb07 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 5 Oct 2006 12:03:15 +0000 Subject: 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 --- dbaccess/source/ui/control/marktree.cxx | 74 +-------------------------------- 1 file changed, 2 insertions(+), 72 deletions(-) (limited to 'dbaccess/source/ui/control/marktree.cxx') 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() -- cgit