openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r1560270 - in /openoffice/trunk/main/basctl: sdi/baside.sdi source/basicide/baside2.cxx source/basicide/baside2b.cxx source/basicide/baside3.cxx
Date Wed, 22 Jan 2014 07:41:17 GMT
Author: hanya
Date: Wed Jan 22 07:41:16 2014
New Revision: 1560270

URL: http://svn.apache.org/r1560270
Log:
#i50481# make Select All command working through the main menu of Basic IDE

Modified:
    openoffice/trunk/main/basctl/sdi/baside.sdi
    openoffice/trunk/main/basctl/source/basicide/baside2.cxx
    openoffice/trunk/main/basctl/source/basicide/baside2b.cxx
    openoffice/trunk/main/basctl/source/basicide/baside3.cxx

Modified: openoffice/trunk/main/basctl/sdi/baside.sdi
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basctl/sdi/baside.sdi?rev=1560270&r1=1560269&r2=1560270&view=diff
==============================================================================
--- openoffice/trunk/main/basctl/sdi/baside.sdi (original)
+++ openoffice/trunk/main/basctl/sdi/baside.sdi Wed Jan 22 07:41:16 2014
@@ -101,6 +101,12 @@ shell BasicIDEShell
 		StateMethod = GetState;
 	]
 
+	SID_SELECTALL
+	[
+		ExecMethod	= ExecuteCurrent;
+		StateMethod = GetState;
+	]
+
 	SID_SEARCH_ITEM
 	[
 		ExecMethod	= ExecuteCurrent;

Modified: openoffice/trunk/main/basctl/source/basicide/baside2.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basctl/source/basicide/baside2.cxx?rev=1560270&r1=1560269&r2=1560270&view=diff
==============================================================================
--- openoffice/trunk/main/basctl/source/basicide/baside2.cxx (original)
+++ openoffice/trunk/main/basctl/source/basicide/baside2.cxx Wed Jan 22 07:41:16 2014
@@ -1132,6 +1132,14 @@ void __EXPORT ModulWindow::ExecuteComman
 			GetBreakPointWindow().Invalidate();
 		}
 		break;
+		case SID_SELECTALL:
+		{
+			TextSelection aSel( TextPaM( 0, 0 ), TextPaM( TEXT_PARA_ALL, 0xFFFF ) );
+			TextView * pView = GetEditView();
+			pView->SetSelection( aSel );
+			pView->GetWindow()->GrabFocus();
+		}
+		break;
 	}
 }
 
@@ -1198,6 +1206,12 @@ void __EXPORT ModulWindow::GetState( Sfx
 				}
 			}
 			break;
+			case SID_SELECTALL:
+			{
+				if ( !GetEditView() )
+					rSet.DisableItem( nWh );
+			}
+			break;
 		}
 	}
 }

Modified: openoffice/trunk/main/basctl/source/basicide/baside2b.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basctl/source/basicide/baside2b.cxx?rev=1560270&r1=1560269&r2=1560270&view=diff
==============================================================================
--- openoffice/trunk/main/basctl/source/basicide/baside2b.cxx (original)
+++ openoffice/trunk/main/basctl/source/basicide/baside2b.cxx Wed Jan 22 07:41:16 2014
@@ -431,9 +431,7 @@ void __EXPORT EditorWindow::KeyInput( co
 	sal_Bool bWasModified = pEditEngine->IsModified();
 	if ( !TextEngine::DoesKeyChangeText( rKEvt ) || ImpCanModify() )
 	{
-		if ( ( rKEvt.GetKeyCode().GetCode() == KEY_A) && rKEvt.GetKeyCode().IsMod1() )
-			pEditView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF
) ) );
-		else if ( ( rKEvt.GetKeyCode().GetCode() == KEY_Y ) && rKEvt.GetKeyCode().IsMod1()
)
+		if ( ( rKEvt.GetKeyCode().GetCode() == KEY_Y ) && rKEvt.GetKeyCode().IsMod1() )
 			bDone = sal_True; // CTRL-Y schlucken, damit kein Vorlagenkatalog
 		else
 		{

Modified: openoffice/trunk/main/basctl/source/basicide/baside3.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basctl/source/basicide/baside3.cxx?rev=1560270&r1=1560269&r2=1560270&view=diff
==============================================================================
--- openoffice/trunk/main/basctl/source/basicide/baside3.cxx (original)
+++ openoffice/trunk/main/basctl/source/basicide/baside3.cxx Wed Jan 22 07:41:16 2014
@@ -431,6 +431,12 @@ void __EXPORT DialogWindow::GetState( Sf
                     rSet.DisableItem( nWh );
             }
 			break;
+			
+			case SID_SELECTALL:
+			{
+				rSet.DisableItem( nWh );
+			}
+			break;
 		}
 	}
 }



Mime
View raw message