Tag: cws_src680_hsqlcsv User: fs Date: 2006/09/14 04:53:11 Modified: dba/dbaccess/source/ui/control/marktree.cxx
Log: removed some dead code during #i69526# File Changes: Directory: /dba/dbaccess/source/ui/control/ =========================================== File [changed]: marktree.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/control/marktree.cxx?r1=1.15&r2=1.15.58.1 Delta lines: +3 -73 -------------------- --- marktree.cxx 20 Jun 2006 03:00:22 -0000 1.15 +++ marktree.cxx 14 Sep 2006 11:53:08 -0000 1.15.58.1 @@ -4,9 +4,9 @@ * * $RCSfile: marktree.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.15.58.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 03:00:22 $ + * last change: $Author: fs $ $Date: 2006/09/14 11:53:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -205,76 +205,6 @@ 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() --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
