User: kz      
Date: 2006/10/05 06:03:17

Modified:
   dba/dbaccess/source/ui/control/marktree.cxx

Log:
 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

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.16&r2=1.17
Delta lines:  +0 -70
--------------------
--- marktree.cxx        17 Sep 2006 07:02:01 -0000      1.16
+++ marktree.cxx        5 Oct 2006 13:03:15 -0000       1.17
@@ -208,76 +208,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]

Reply via email to