charmap.cxx (f6e50924) | charmap.cxx (9b8096d0) |
---|---|
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 --- 122 unchanged lines hidden (view full) --- 131 { 132 if ( rMEvt.GetClicks() == 1 ) 133 { 134 GrabFocus(); 135 bDrag = sal_True; 136 CaptureMouse(); 137 138 int nIndex = PixelToMapIndex( rMEvt.GetPosPixel() ); | 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 --- 122 unchanged lines hidden (view full) --- 131 { 132 if ( rMEvt.GetClicks() == 1 ) 133 { 134 GrabFocus(); 135 bDrag = sal_True; 136 CaptureMouse(); 137 138 int nIndex = PixelToMapIndex( rMEvt.GetPosPixel() ); |
139 SelectIndex( nIndex ); | 139 // Fire the focus event 140 SelectIndex( nIndex , sal_True); |
140 } 141 142 if ( !(rMEvt.GetClicks() % 2) ) 143 aDoubleClkHdl.Call( this ); 144 } 145} 146 147// ----------------------------------------------------------------------- --- 24 unchanged lines hidden (view full) --- 172 else if ( aPos.X() > aSize.Width()-5 ) 173 aPos.X() = aSize.Width()-5; 174 if ( aPos.Y() < 0 ) 175 aPos.Y() = 0; 176 else if ( aPos.Y() > aSize.Height()-5 ) 177 aPos.Y() = aSize.Height()-5; 178 179 int nIndex = PixelToMapIndex( aPos ); | 141 } 142 143 if ( !(rMEvt.GetClicks() % 2) ) 144 aDoubleClkHdl.Call( this ); 145 } 146} 147 148// ----------------------------------------------------------------------- --- 24 unchanged lines hidden (view full) --- 173 else if ( aPos.X() > aSize.Width()-5 ) 174 aPos.X() = aSize.Width()-5; 175 if ( aPos.Y() < 0 ) 176 aPos.Y() = 0; 177 else if ( aPos.Y() > aSize.Height()-5 ) 178 aPos.Y() = aSize.Height()-5; 179 180 int nIndex = PixelToMapIndex( aPos ); |
180 SelectIndex( nIndex ); | 181 // Fire the focus event. 182 SelectIndex( nIndex , sal_True ); |
181 } 182} 183 184// ----------------------------------------------------------------------- 185 186void SvxShowCharSet::Command( const CommandEvent& rCEvt ) 187{ 188 if( !HandleScrollCommand( rCEvt, 0, &aVscrollSB ) ) --- 391 unchanged lines hidden (view full) --- 580 } 581 582 if( nSelectedIndex >= 0 ) 583 { 584 getSelectedChar() = maFontCharMap.GetCharFromIndex( nSelectedIndex ); 585 if( m_pAccessible ) 586 { 587 ::svx::SvxShowCharSetItem* pItem = ImplGetItem(nSelectedIndex); | 183 } 184} 185 186// ----------------------------------------------------------------------- 187 188void SvxShowCharSet::Command( const CommandEvent& rCEvt ) 189{ 190 if( !HandleScrollCommand( rCEvt, 0, &aVscrollSB ) ) --- 391 unchanged lines hidden (view full) --- 582 } 583 584 if( nSelectedIndex >= 0 ) 585 { 586 getSelectedChar() = maFontCharMap.GetCharFromIndex( nSelectedIndex ); 587 if( m_pAccessible ) 588 { 589 ::svx::SvxShowCharSetItem* pItem = ImplGetItem(nSelectedIndex); |
588 m_pAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, Any(), makeAny(pItem->GetAccessible()) ); // this call asures that m_pItem is set | 590 // Don't fire the focus event. 591 if ( bFocus ) 592 m_pAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, Any(), makeAny(pItem->GetAccessible()) ); // this call asures that m_pItem is set 593 else 594 m_pAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED_NOFOCUS, Any(), makeAny(pItem->GetAccessible()) ); // this call asures that m_pItem is set |
589 590 OSL_ENSURE(pItem->m_pItem,"No accessible created!"); 591 Any aOldAny, aNewAny; 592 aNewAny <<= AccessibleStateType::FOCUSED; | 595 596 OSL_ENSURE(pItem->m_pItem,"No accessible created!"); 597 Any aOldAny, aNewAny; 598 aNewAny <<= AccessibleStateType::FOCUSED; |
593 pItem->m_pItem->fireEvent( AccessibleEventId::STATE_CHANGED, aOldAny, aNewAny ); | 599 // Don't fire the focus event. 600 if ( bFocus ) 601 pItem->m_pItem->fireEvent( AccessibleEventId::STATE_CHANGED, aOldAny, aNewAny ); |
594 595 aNewAny <<= AccessibleStateType::SELECTED; 596 pItem->m_pItem->fireEvent( AccessibleEventId::STATE_CHANGED, aOldAny, aNewAny ); 597 } 598 } 599 600 601 aHighHdl.Call( this ); --- 288 unchanged lines hidden --- | 602 603 aNewAny <<= AccessibleStateType::SELECTED; 604 pItem->m_pItem->fireEvent( AccessibleEventId::STATE_CHANGED, aOldAny, aNewAny ); 605 } 606 } 607 608 609 aHighHdl.Call( this ); --- 288 unchanged lines hidden --- |