svimpbox.cxx (5900e8ec) | svimpbox.cxx (2bfcd321) |
---|---|
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 --- 285 unchanged lines hidden (view full) --- 294 if( GetUpdateMode() ) 295 pView->Invalidate( GetVisibleArea() ); 296 nFlags |= F_FILLING; 297 if( !aHorSBar.IsVisible() && !aVerSBar.IsVisible() ) 298 aScrBarBox.Hide(); 299 300 // #97680# --------- 301 aContextBmpWidthVector.clear(); | 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 --- 285 unchanged lines hidden (view full) --- 294 if( GetUpdateMode() ) 295 pView->Invalidate( GetVisibleArea() ); 296 nFlags |= F_FILLING; 297 if( !aHorSBar.IsVisible() && !aVerSBar.IsVisible() ) 298 aScrBarBox.Hide(); 299 300 // #97680# --------- 301 aContextBmpWidthVector.clear(); |
302 303//IAccessibility2 Implementation 2009----- 304 CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED, NULL ); 305//-----IAccessibility2 Implementation 2009 |
|
302} 303 304// ********************************************************************* 305// Painten, Navigieren, Scrollen 306// ********************************************************************* 307 308IMPL_LINK_INLINE_START( SvImpLBox, EndScrollHdl, ScrollBar *, EMPTYARG ) 309{ --- 331 unchanged lines hidden (view full) --- 641 } 642 pCursor = pEntry; 643 if( pCursor ) 644 { 645 pViewDataNewCur->SetFocus( sal_True ); 646 if(!bForceNoSelect && bSimpleTravel && !(nFlags & F_DESEL_ALL) && GetUpdateMode()) 647 { 648 pView->Select( pCursor, sal_True ); | 306} 307 308// ********************************************************************* 309// Painten, Navigieren, Scrollen 310// ********************************************************************* 311 312IMPL_LINK_INLINE_START( SvImpLBox, EndScrollHdl, ScrollBar *, EMPTYARG ) 313{ --- 331 unchanged lines hidden (view full) --- 645 } 646 pCursor = pEntry; 647 if( pCursor ) 648 { 649 pViewDataNewCur->SetFocus( sal_True ); 650 if(!bForceNoSelect && bSimpleTravel && !(nFlags & F_DESEL_ALL) && GetUpdateMode()) 651 { 652 pView->Select( pCursor, sal_True ); |
653 //IAccessibility2 Implementation 2009----- 654 CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pCursor ); 655 //-----IAccessibility2 Implementation 2009 |
|
649 } 650 // Mehrfachselektion: Im Cursor-Move selektieren, wenn 651 // nicht im Add-Mode (Ctrl-F8) 652 else if( GetUpdateMode() && 653 pView->GetSelectionMode() == MULTIPLE_SELECTION && 654 !(nFlags & F_DESEL_ALL) && !aSelEng.IsAddMode() && 655 !bForceNoSelect ) 656 { 657 pView->Select( pCursor, sal_True ); | 656 } 657 // Mehrfachselektion: Im Cursor-Move selektieren, wenn 658 // nicht im Add-Mode (Ctrl-F8) 659 else if( GetUpdateMode() && 660 pView->GetSelectionMode() == MULTIPLE_SELECTION && 661 !(nFlags & F_DESEL_ALL) && !aSelEng.IsAddMode() && 662 !bForceNoSelect ) 663 { 664 pView->Select( pCursor, sal_True ); |
665 //IAccessibility2 Implementation 2009----- 666 CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pCursor ); 667 //-----IAccessibility2 Implementation 2009 |
|
658 } 659 else 660 { 661 ShowCursor( sal_True ); | 668 } 669 else 670 { 671 ShowCursor( sal_True ); |
672 //IAccessibility2 Implementation 2009----- 673 if (bForceNoSelect && GetUpdateMode()) 674 { 675 CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pCursor); 676 } 677 //-----IAccessibility2 Implementation 2009 |
|
662 } 663 664 if( pAnchor ) 665 { 666 DBG_ASSERT(aSelEng.GetSelectionMode() != SINGLE_SELECTION,"Mode?"); 667 SetAnchorSelection( pOldCursor, pCursor ); 668 } 669 } --- 1025 unchanged lines hidden (view full) --- 1695 ShowCursor( sal_True ); 1696 } 1697 } 1698} 1699 1700 1701void SvImpLBox::RemovingEntry( SvLBoxEntry* pEntry ) 1702{ | 678 } 679 680 if( pAnchor ) 681 { 682 DBG_ASSERT(aSelEng.GetSelectionMode() != SINGLE_SELECTION,"Mode?"); 683 SetAnchorSelection( pOldCursor, pCursor ); 684 } 685 } --- 1025 unchanged lines hidden (view full) --- 1711 ShowCursor( sal_True ); 1712 } 1713 } 1714} 1715 1716 1717void SvImpLBox::RemovingEntry( SvLBoxEntry* pEntry ) 1718{ |
1719 //IAccessibility2 Implementation 2009----- 1720 CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED , pEntry ); 1721 //-----IAccessibility2 Implementation 2009 1722 |
|
1703 DestroyAnchor(); 1704 1705 if( !pView->IsEntryVisible( pEntry ) ) 1706 { 1707 // wenn Parent eingeklappt, dann tschuess 1708 nFlags |= F_REMOVED_ENTRY_INVISIBLE; 1709 return; 1710 } --- 643 unchanged lines hidden (view full) --- 2354 } 2355 else 2356 bKeyUsed = sal_False; 2357 break; 2358 } 2359 2360 case KEY_LEFT: 2361 { | 1723 DestroyAnchor(); 1724 1725 if( !pView->IsEntryVisible( pEntry ) ) 1726 { 1727 // wenn Parent eingeklappt, dann tschuess 1728 nFlags |= F_REMOVED_ENTRY_INVISIBLE; 1729 return; 1730 } --- 643 unchanged lines hidden (view full) --- 2374 } 2375 else 2376 bKeyUsed = sal_False; 2377 break; 2378 } 2379 2380 case KEY_LEFT: 2381 { |
2362 if ( bIsCellFocusEnabled ) | 2382 //IAccessibility2 Implementation 2009----- 2383 // if ( bIsCellFocusEnabled ) 2384 if ( bIsCellFocusEnabled && pCursor ) 2385 //-----IAccessibility2 Implementation 2009 |
2363 { 2364 if ( nCurTabPos > FIRST_ENTRY_TAB ) 2365 { 2366 --nCurTabPos; 2367 ShowCursor( sal_True ); 2368 CallEventListeners( VCLEVENT_LISTBOX_SELECT, pCursor ); 2369 } 2370 } --- 301 unchanged lines hidden (view full) --- 2672 bKeyUsed = sal_False; 2673 break; 2674 2675 default: 2676 // is there any reason why we should eat the events here? The only place where this is called 2677 // is from SvTreeListBox::KeyInput. If we set bKeyUsed to sal_True here, then the key input 2678 // is just silenced. However, we want SvLBox::KeyInput to get a chance, to do the QuickSelection 2679 // handling. | 2386 { 2387 if ( nCurTabPos > FIRST_ENTRY_TAB ) 2388 { 2389 --nCurTabPos; 2390 ShowCursor( sal_True ); 2391 CallEventListeners( VCLEVENT_LISTBOX_SELECT, pCursor ); 2392 } 2393 } --- 301 unchanged lines hidden (view full) --- 2695 bKeyUsed = sal_False; 2696 break; 2697 2698 default: 2699 // is there any reason why we should eat the events here? The only place where this is called 2700 // is from SvTreeListBox::KeyInput. If we set bKeyUsed to sal_True here, then the key input 2701 // is just silenced. However, we want SvLBox::KeyInput to get a chance, to do the QuickSelection 2702 // handling. |
2680 // (The old code here which intentionally set bKeyUsed to TRUE said this was because of "quick search" | 2703 // (The old code here which intentionally set bKeyUsed to sal_True said this was because of "quick search" |
2681 // handling, but actually there was no quick search handling anymore. We just re-implemented it.) 2682 // #i31275# / 2009-06-16 / frank.schoenheit@sun.com 2683 bKeyUsed = sal_False; 2684 break; 2685 } 2686 return bKeyUsed; 2687} 2688 --- 938 unchanged lines hidden --- | 2704 // handling, but actually there was no quick search handling anymore. We just re-implemented it.) 2705 // #i31275# / 2009-06-16 / frank.schoenheit@sun.com 2706 bKeyUsed = sal_False; 2707 break; 2708 } 2709 return bKeyUsed; 2710} 2711 --- 938 unchanged lines hidden --- |