/* -*- 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 .
*/
if ( HasChildPathFocus() )
getView().ShowCursor();
m_pImpl->updateAllAttributes(); // TODO: maybe we should have a list of attributes which need to be updated // (the handler for the just executed attribute should know)
}
bool RichTextControl::isMappableSlot( SfxSlotId _nSlotId )
{ switch ( _nSlotId )
{ case SID_ATTR_PARA_ADJUST_LEFT: case SID_ATTR_PARA_ADJUST_CENTER: case SID_ATTR_PARA_ADJUST_RIGHT: case SID_ATTR_PARA_ADJUST_BLOCK: case SID_SET_SUPER_SCRIPT: case SID_SET_SUB_SCRIPT: case SID_ATTR_PARA_LINESPACE_10: case SID_ATTR_PARA_LINESPACE_15: case SID_ATTR_PARA_LINESPACE_20: case SID_ATTR_PARA_LEFT_TO_RIGHT: case SID_ATTR_PARA_RIGHT_TO_LEFT: case SID_TEXTDIRECTION_TOP_TO_BOTTOM: case SID_TEXTDIRECTION_LEFT_TO_RIGHT: case SID_ATTR_CHAR_LATIN_FONT: case SID_ATTR_CHAR_LATIN_FONTHEIGHT: case SID_ATTR_CHAR_LATIN_LANGUAGE: case SID_ATTR_CHAR_LATIN_POSTURE: case SID_ATTR_CHAR_LATIN_WEIGHT: returntrue;
} returnfalse;
}
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); bool bShift = pKeyEvent->GetKeyCode().IsShift(); bool bCtrl = pKeyEvent->GetKeyCode().IsMod1(); bool bAlt = pKeyEvent->GetKeyCode().IsMod2(); if ( ( KEY_TAB == nCode ) && bCtrl && !bAlt )
{ // Ctrl-Tab is used to step out of the control // -> build a new key event without the Ctrl-key, and let the very base class handle it
vcl::KeyCode aNewCode( KEY_TAB, bShift, false, false, false );
::KeyEvent aNewEvent( pKeyEvent->GetCharCode(), aNewCode );
Control::KeyInput( aNewEvent ); returntrue; // handled
}
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.