/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
switch (aCode.GetCode())
{ case KEY_RETURN: return SvxShowCharSet::KeyInput(rKEvt); case KEY_SPACE:
aDoubleClkHdl.Call(this); returntrue; case KEY_LEFT:
--tmpSelected; break; case KEY_RIGHT:
++tmpSelected; break; case KEY_UP:
tmpSelected -= COLUMN_COUNT; break; case KEY_DOWN:
tmpSelected += COLUMN_COUNT; break; case KEY_PAGEUP:
tmpSelected -= ROW_COUNT * COLUMN_COUNT; break; case KEY_PAGEDOWN:
tmpSelected += ROW_COUNT * COLUMN_COUNT; break; case KEY_HOME:
tmpSelected = 0; break; case KEY_END:
tmpSelected = getMaxCharCount() - 1; break; case KEY_TAB: // some fonts have a character at these unicode control codes case KEY_ESCAPE:
bRet = false;
tmpSelected = - 1; // mark as invalid break; default:
tmpSelected = -1;
bRet = false; break;
}
if ( tmpSelected >= 0 )
{
SelectIndex( tmpSelected, true );
aPreSelectHdl.Call( this );
}
return bRet;
}
void SvxSearchCharSet::SelectCharacter( const Subset* sub )
{ if (!mxFontCharMap.is())
RecalculateFont(*mxVirDev);
// get next available char of current font
sal_UCS4 cChar = sub->GetRangeMin(); int nMapIndex = 0;
if( nSelectedIndex >= 0 )
{ #if 0 if( m_xAccessible.is() )
{
svx::SvxShowCharSetItem* pItem = ImplGetItem(nSelectedIndex); // Don't fire the focus event. if ( bFocus )
m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, Any(), makeAny(pItem->GetAccessible()) ); // this call assures that m_pItem is set else
m_xAccessible->fireEvent( AccessibleEventId::ACTIVE_DESCENDANT_CHANGED_NOFOCUS, Any(), makeAny(pItem->GetAccessible()) ); // this call assures that m_pItem is set
assert(pItem->m_xItem.is() && "No accessible created!");
Any aOldAny, aNewAny;
aNewAny <<= AccessibleStateType::FOCUSED; // Don't fire the focus event. if ( bFocus )
pItem->m_xItem->fireEvent( AccessibleEventId::STATE_CHANGED, aOldAny, aNewAny );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.