Merge remote-tracking branch 'origin/libreoffice-3-4'

This commit is contained in:
Jan Holesovsky
2011-06-06 12:53:09 +02:00
4 changed files with 15 additions and 4 deletions

View File

@@ -57,6 +57,11 @@ shell BasicIDEShell
StateMethod = GetState; StateMethod = GetState;
] ]
SID_SELECTALL
[
ExecMethod = ExecuteCurrent;
]
SID_CUT SID_CUT
[ [
ExecMethod = ExecuteCurrent; ExecMethod = ExecuteCurrent;

View File

@@ -995,6 +995,15 @@ void ModulWindow::ExecuteCommand( SfxRequest& rReq )
sal_uInt16 nSlot = rReq.GetSlot(); sal_uInt16 nSlot = rReq.GetSlot();
switch ( nSlot ) switch ( nSlot )
{ {
case SID_DELETE:
{
KeyEvent aFakeDelete( 0, KEY_DELETE );
GetEditView()->KeyInput( aFakeDelete );
break;
}
case SID_SELECTALL:
GetEditView()->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
break;
case SID_BASICRUN: case SID_BASICRUN:
{ {
BasicRun(); BasicRun();

View File

@@ -417,9 +417,7 @@ void EditorWindow::KeyInput( const KeyEvent& rKEvt )
if ( !bDone && ( !TextEngine::DoesKeyChangeText( rKEvt ) || ImpCanModify() ) ) if ( !bDone && ( !TextEngine::DoesKeyChangeText( rKEvt ) || ImpCanModify() ) )
{ {
if ( ( rKEvt.GetKeyCode().GetCode() == KEY_A) && rKEvt.GetKeyCode().IsMod1() && !rKEvt.GetKeyCode().IsMod2() ) if ( ( rKEvt.GetKeyCode().GetCode() == KEY_Y ) && rKEvt.GetKeyCode().IsMod1() )
pEditView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
else if ( ( rKEvt.GetKeyCode().GetCode() == KEY_Y ) && rKEvt.GetKeyCode().IsMod1() )
bDone = sal_True; // CTRL-Y schlucken, damit kein Vorlagenkatalog bDone = sal_True; // CTRL-Y schlucken, damit kein Vorlagenkatalog
else else
{ {

View File

@@ -544,7 +544,6 @@ IMPL_LINK( SfxSaveTabPage, AutoClickHdl_Impl, CheckBox *, pBox )
{ {
aAutoSaveEdit.Enable(); aAutoSaveEdit.Enable();
aMinuteFT.Enable(); aMinuteFT.Enable();
aAutoSaveEdit.GrabFocus();
} }
else else
{ {