svtreebx.cxx (4d7c9de0) | svtreebx.cxx (3ea0c3d5) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 893 unchanged lines hidden (view full) --- 902 pEntry = pImp->GetCurrentEntry(); 903 } 904 if (pImp->pCursor) 905 { 906 if (pEntry != pImp->pCursor) 907 pEntry = pImp->pCursor; 908 } 909 if ( pEntry ) | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 893 unchanged lines hidden (view full) --- 902 pEntry = pImp->GetCurrentEntry(); 903 } 904 if (pImp->pCursor) 905 { 906 if (pEntry != pImp->pCursor) 907 pEntry = pImp->pCursor; 908 } 909 if ( pEntry ) |
910 //pImp->CallEventListeners( VCLEVENT_LISTBOX_SELECT, pEntry ); | |
911 pImp->CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pEntry ); 912 913} 914 915void SvTreeListBox::LoseFocus() 916{ 917 DBG_CHKTHIS(SvTreeListBox,0); 918 //Solution:If there is no item in the tree,delete visual focus. --- 1839 unchanged lines hidden (view full) --- 2758{ 2759 DBG_ASSERT( pEntry, "SvTreeListBox::FillAccessibleEntryStateSet: invalid entry" ); 2760 2761 if ( pEntry->HasChildsOnDemand() || pEntry->HasChilds() ) 2762 { 2763 rStateSet.AddState( AccessibleStateType::EXPANDABLE ); 2764 if ( IsExpanded( pEntry ) ) 2765 rStateSet.AddState( (sal_Int16)AccessibleStateType::EXPANDED ); | 910 pImp->CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pEntry ); 911 912} 913 914void SvTreeListBox::LoseFocus() 915{ 916 DBG_CHKTHIS(SvTreeListBox,0); 917 //Solution:If there is no item in the tree,delete visual focus. --- 1839 unchanged lines hidden (view full) --- 2757{ 2758 DBG_ASSERT( pEntry, "SvTreeListBox::FillAccessibleEntryStateSet: invalid entry" ); 2759 2760 if ( pEntry->HasChildsOnDemand() || pEntry->HasChilds() ) 2761 { 2762 rStateSet.AddState( AccessibleStateType::EXPANDABLE ); 2763 if ( IsExpanded( pEntry ) ) 2764 rStateSet.AddState( (sal_Int16)AccessibleStateType::EXPANDED ); |
2766 /* 2767 else 2768 { 2769 // MT: COLLAPSE == EXPANDABLE & !EXPANDED 2770 rStateSet.AddState( (sal_Int16)AccessibleStateType::COLLAPSE ); 2771 } 2772 */ | |
2773 } 2774 2775 if ( GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED ) 2776 rStateSet.AddState( AccessibleStateType::CHECKED ); 2777 if ( IsEntryVisible( pEntry ) ) 2778 rStateSet.AddState( AccessibleStateType::VISIBLE ); 2779 if ( IsSelected( pEntry ) ) 2780 rStateSet.AddState( AccessibleStateType::SELECTED ); --- 37 unchanged lines hidden --- | 2765 } 2766 2767 if ( GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED ) 2768 rStateSet.AddState( AccessibleStateType::CHECKED ); 2769 if ( IsEntryVisible( pEntry ) ) 2770 rStateSet.AddState( AccessibleStateType::VISIBLE ); 2771 if ( IsSelected( pEntry ) ) 2772 rStateSet.AddState( AccessibleStateType::SELECTED ); --- 37 unchanged lines hidden --- |