summaryrefslogtreecommitdiffstats
path: root/basctl
diff options
context:
space:
mode:
authorAllmann-Rahn <allmann-rahn@ubuntu.ubuntu-domain>2011-08-22 11:39:37 +0200
committerMichael Meeks <michael.meeks@novell.com>2011-08-23 17:36:50 +0100
commitfbc30846acc2391a4c323c07ea04b308a685ce46 (patch)
tree83da7330222d751cfed20898f79f3b7a8d9b4ebe /basctl
parentfix $JRELIBDIR/$JRETOOLKITDIR/$JRETHREADDIR for mips(el) (missing /jre) (diff)
downloadcore-fbc30846acc2391a4c323c07ea04b308a685ce46.tar.gz
core-fbc30846acc2391a4c323c07ea04b308a685ce46.zip
Translated German comments and removed the redundant ones in the directories accessibility to (incl.) basebmp.
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basicbox.cxx10
-rw-r--r--basctl/source/basicide/baside2.cxx78
-rw-r--r--basctl/source/basicide/baside2b.cxx65
-rw-r--r--basctl/source/basicide/baside3.cxx4
-rw-r--r--basctl/source/basicide/basides1.cxx63
-rw-r--r--basctl/source/basicide/basides2.cxx6
-rw-r--r--basctl/source/basicide/basides3.cxx6
-rw-r--r--basctl/source/basicide/basidesh.cxx52
-rw-r--r--basctl/source/basicide/basobj3.cxx16
-rw-r--r--basctl/source/basicide/bastype2.cxx12
-rw-r--r--basctl/source/basicide/bastype2.hxx6
-rw-r--r--basctl/source/basicide/bastype3.cxx5
-rw-r--r--basctl/source/basicide/bastypes.cxx19
-rw-r--r--basctl/source/basicide/brkdlg.cxx2
-rw-r--r--basctl/source/basicide/iderdll.cxx20
-rw-r--r--basctl/source/basicide/macrodlg.cxx51
-rw-r--r--basctl/source/basicide/moduldl2.cxx4
-rw-r--r--basctl/source/basicide/moduldlg.cxx16
-rw-r--r--basctl/source/basicide/objdlg.cxx6
-rw-r--r--basctl/source/basicide/tbxctl.cxx6
-rw-r--r--basctl/source/dlged/dlged.cxx2
-rw-r--r--basctl/source/inc/basobj.hxx2
-rw-r--r--basctl/source/inc/bastypes.hxx9
23 files changed, 208 insertions, 252 deletions
diff --git a/basctl/source/basicide/basicbox.cxx b/basctl/source/basicide/basicbox.cxx
index 6eda4be217e9..9dd874b7c69f 100644
--- a/basctl/source/basicide/basicbox.cxx
+++ b/basctl/source/basicide/basicbox.cxx
@@ -166,7 +166,7 @@ BasicLibBox::BasicLibBox( Window* pParent, const uno::Reference< frame::XFrame >
m_xFrame( rFrame )
{
FillBox();
- bIgnoreSelect = sal_True; // Select von 0 noch nicht weiterleiten
+ bIgnoreSelect = sal_True; // do not yet transfer select of 0
bFillBox = sal_True;
SelectEntryPos( 0 );
aCurText = GetEntry( 0 );
@@ -183,7 +183,7 @@ BasicLibBox::~BasicLibBox()
void BasicLibBox::Update( const SfxStringItem* pItem )
{
- // Immer auf dem laufenden sein...
+
// if ( !pItem || !pItem->GetValue().Len() )
FillBox();
@@ -206,7 +206,7 @@ void BasicLibBox::ReleaseFocus()
if ( pCurSh )
{
Window* pShellWin = pCurSh->GetWindow();
- if ( !pShellWin ) // sonst werde ich ihn nicht los
+ if ( !pShellWin )
pShellWin = Application::GetDefDialogParent();
pShellWin->GrabFocus();
@@ -243,7 +243,7 @@ void BasicLibBox::FillBox()
SelectEntry( aCurText );
if ( !GetSelectEntryCount() )
{
- SelectEntryPos( GetEntryCount() ); // gibst es nicht => leer?
+ SelectEntryPos( GetEntryCount() );
aCurText = GetSelectEntry();
}
bIgnoreSelect = sal_False;
@@ -321,7 +321,7 @@ void BasicLibBox::Select()
if ( !bIgnoreSelect )
NotifyIDE();
else
- SelectEntry( aCurText ); // Seit 306... (Select nach Escape)
+ SelectEntry( aCurText ); // since 306... (Select after Escape)
}
}
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 294bda74f8fe..745431ad184e 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -116,7 +116,7 @@ void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage,
long nFontHeight = pPrinter->GetTextHeight();
- // 1.Border => Strich, 2+3 Border = Freiraum.
+ // 1st Border => line, 2+3 Border = free space
long nYTop = TMARGPRN-3*nBorder-nFontHeight;
long nXLeft = nLeftMargin-nBorder;
@@ -167,14 +167,14 @@ void lcl_ConvertTabsToSpaces( String& rLine )
{
if ( rLine.GetChar( nPos ) == '\t' )
{
- // Nicht 4 Blanks, sondern an 4er TabPos:
+ // not 4 Blanks, but at 4 TabPos:
String aBlanker;
aBlanker.Fill( ( 4 - ( nPos % 4 ) ), ' ' );
rLine.Erase( nPos, 1 );
rLine.Insert( aBlanker, nPos );
nMax = rLine.Len();
}
- nPos++; // Nicht optimal, falls Tab, aber auch nicht verkehrt...
+ nPos++;
}
}
}
@@ -235,13 +235,13 @@ void ModulWindow::GetFocus()
return;
DBG_CHKTHIS( ModulWindow, 0 );
aXEditorWindow.GetEdtWindow().GrabFocus();
- // Basisklasse nicht rufen, weil Focus jetzt woanders...
+ // don't call basic calls because focus is somewhere else...
}
void ModulWindow::DoInit()
{
DBG_CHKTHIS( ModulWindow, 0 );
- // Wird beim Umschalten der Fenster gerufen...
+
if ( GetVScrollBar() )
GetVScrollBar()->Hide();
GetHScrollBar()->Show();
@@ -269,7 +269,7 @@ void ModulWindow::CheckCompileBasic()
if ( XModule().Is() )
{
- // Zur Laufzeit wird niemals compiliert!
+ // never compile while running!
sal_Bool bRunning = StarBASIC::IsRunning();
sal_Bool bModified = ( !xModule->IsCompiled() ||
( GetEditEngine() && GetEditEngine()->IsModified() ) );
@@ -337,7 +337,7 @@ sal_Bool ModulWindow::BasicExecute()
// Init cursor to top
nCurMethodStart = ( aSel.GetStart().GetPara() + 1 );
SbMethod* pMethod = 0;
- // erstes Macro, sonst blind "Main" (ExtSearch?)
+ // first Macro, else blind "Main" (ExtSearch?)
for ( sal_uInt16 nMacro = 0; nMacro < xModule->GetMethods()->Count(); nMacro++ )
{
SbMethod* pM = (SbMethod*)xModule->GetMethods()->Get( nMacro );
@@ -361,13 +361,13 @@ sal_Bool ModulWindow::BasicExecute()
BasicDLL::SetDebugMode( sal_True );
BasicIDE::RunMethod( pMethod );
BasicDLL::SetDebugMode( sal_False );
- // Falls waehrend Interactive=sal_False abgebrochen
+ // if cancelled during Interactive=sal_False
BasicDLL::EnableBreak( sal_True );
}
ClearStatus( BASWIN_RUNNINGBASIC );
}
else
- aStatus.bIsRunning = sal_False; // Abbruch von Reschedule()
+ aStatus.bIsRunning = sal_False; // cancel of Reschedule()
}
sal_Bool bDone = !aStatus.bError;
@@ -471,7 +471,7 @@ sal_Bool ModulWindow::LoadBasic()
GetEditEngine()->SetUpdateMode( sal_False );
GetEditView()->Read( *pStream );
GetEditEngine()->SetUpdateMode( sal_True );
- GetEditorWindow().Update(); // Es wurde bei UpdateMode = sal_True nur Invalidiert
+ GetEditorWindow().Update();
GetEditorWindow().ForceSyntaxTimeout();
GetEditorWindow().DestroyProgress();
sal_uLong nError = aMedium.GetError();
@@ -568,12 +568,12 @@ sal_Bool ModulWindow::ToggleBreakPoint( sal_uLong nLine )
}
BreakPoint* pBrk = GetBreakPoints().FindBreakPoint( nLine );
- if ( pBrk ) // entfernen
+ if ( pBrk ) // remove
{
xModule->ClearBP( (sal_uInt16)nLine );
delete GetBreakPoints().remove( pBrk );
}
- else // einen erzeugen
+ else // create one
{
if ( xModule->SetBP( (sal_uInt16)nLine) )
{
@@ -620,7 +620,7 @@ sal_Bool ModulWindow::BasicToggleBreakPoint()
AssertValidEditEngine();
TextSelection aSel = GetEditView()->GetSelection();
- aSel.GetStart().GetPara()++; // Basic-Zeilen beginnen bei 1!
+ aSel.GetStart().GetPara()++; // Basic lines start at 1!
aSel.GetEnd().GetPara()++;
sal_Bool bNewBreakPoint = sal_False;
@@ -677,8 +677,8 @@ IMPL_LINK( ModulWindow, BasicErrorHdl, StarBASIC *, pBasic )
GoOnTop();
// ReturnWert: BOOL
- // FALSE: Abbrechen
- // TRUE: Weiter....
+ // FALSE: cancel
+ // TRUE: go on....
String aErrorText( pBasic->GetErrorText() );
sal_uInt16 nErrorLine = pBasic->GetLine() - 1;
sal_uInt16 nErrCol1 = pBasic->GetCol1();
@@ -701,8 +701,7 @@ IMPL_LINK( ModulWindow, BasicErrorHdl, StarBASIC *, pBasic )
aErrorTextPrefix += ' ';
pLayout->GetStackWindow().UpdateCalls();
}
- // Wenn anderes Basic, dan sollte die IDE versuchen, da richtige
- // Modul anzuzeigen...
+ // if other basic, the IDE should try to display the correct module
sal_Bool bMarkError = ( pBasic == GetBasic() ) ? sal_True : sal_False;
if ( bMarkError )
aXEditorWindow.GetBrkWindow().SetMarkerPos( nErrorLine, sal_True );
@@ -729,20 +728,20 @@ long ModulWindow::BasicBreakHdl( StarBASIC* pBasic )
// #i69280 Required in Window despite normal usage in next command!
(void)pBasic;
- // ReturnWert: sal_uInt16 => siehe SB-Debug-Flags
+ // Return value: sal_uInt16 => see SB-Debug-Flags
sal_uInt16 nErrorLine = pBasic->GetLine();
- // Gibt es hier einen BreakPoint?
+
BreakPoint* pBrk = GetBreakPoints().FindBreakPoint( nErrorLine );
if ( pBrk )
{
pBrk->nHitCount++;
if ( pBrk->nHitCount < pBrk->nStopAfter && GetBasic()->IsBreak() )
- return aStatus.nBasicFlags; // weiterlaufen...
+ return aStatus.nBasicFlags; // go on...
}
- nErrorLine--; // EditEngine begint bei 0, Basic bei 1
- // Alleine schon damit gescrollt wird...
+ nErrorLine--; // EditEngine starts at 0, Basic at 1
+
AssertValidEditEngine();
GetEditView()->SetSelection( TextSelection( TextPaM( nErrorLine, 0 ), TextPaM( nErrorLine, 0 ) ) );
aXEditorWindow.GetBrkWindow().SetMarkerPos( nErrorLine );
@@ -834,14 +833,13 @@ void ModulWindow::EditMacro( const String& rMacroName )
pMethod->GetLineRange( nStart, nEnd );
if ( nStart )
{
- // Basic beginnt bei 1
nStart--;
nEnd--;
}
TextSelection aSel( TextPaM( nStart, 0 ), TextPaM( nStart, 0 ) );
AssertValidEditEngine();
TextView * pView = GetEditView();
- // ggf. hinscrollen, so dass erste Zeile oben...
+ // scroll if applicabel so that first line is at the top
long nVisHeight = GetOutputSizePixel().Height();
if ( (long)pView->GetTextEngine()->GetTextHeight() > nVisHeight )
{
@@ -865,10 +863,9 @@ void ModulWindow::EditMacro( const String& rMacroName )
void ModulWindow::StoreData()
{
DBG_CHKTHIS( ModulWindow, 0 );
- // StoreData wird gerufen, wenn der BasicManager zerstoert oder
- // dieses Fenster beendet wird.
- // => Keine Unterbrechungen erwuenscht!
- // Und bei SAVE, wenn AppBasic...
+ // StoreData is called when the BasicManager is destroyed or
+ // this window is closed.
+ // => interrupts undesired!
GetEditorWindow().SetSourceInBasic( sal_True );
}
@@ -889,9 +886,8 @@ void ModulWindow::UpdateData()
{
DBG_CHKTHIS( ModulWindow, 0 );
DBG_ASSERT( XModule().Is(), "Kein Modul!" );
- // UpdateData wird gerufen, wenn sich der Source von aussen
- // geaendert hat.
- // => Keine Unterbrechungen erwuenscht!
+ // UpdateData is called when the source has changed from outside
+ // => interrupts undesired!
if ( XModule().Is() )
{
@@ -949,7 +945,7 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage )
aPaperSz.Width() -= (LMARGPRN+RMARGPRN);
aPaperSz.Height() -= (TMARGPRN+BMARGPRN);
- // nLinepPage stimmt nicht, wenn Zeilen umgebrochen werden muessen...
+ // nLinepPage is not correct if there's a line break
sal_uInt16 nLinespPage = (sal_uInt16) (aPaperSz.Height()/nLineHeight);
sal_uInt16 nCharspLine = (sal_uInt16) (aPaperSz.Width() / pPrinter->GetTextWidth( 'X' ) );
sal_uLong nParas = GetEditEngine()->GetParagraphCount();
@@ -957,7 +953,6 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage )
sal_uInt16 nPages = (sal_uInt16) (nParas/nLinespPage+1 );
sal_uInt16 nCurPage = 1;
- // Header drucken...
lcl_PrintHeader( pPrinter, nPages, nCurPage, aTitle, nPrintPage == 0 );
Point aPos( LMARGPRN, TMARGPRN );
for ( sal_uLong nPara = 0; nPara < nParas; nPara++ )
@@ -1120,7 +1115,6 @@ void ModulWindow::GetState( SfxItemSet &rSet )
{
switch ( nWh )
{
- // allgemeine Items:
case SID_CUT:
{
if ( !GetEditView() || !GetEditView()->HasSelection() )
@@ -1183,8 +1177,7 @@ void ModulWindow::DoScroll( ScrollBar* pCurScrollBar )
DBG_CHKTHIS( ModulWindow, 0 );
if ( ( pCurScrollBar == GetHScrollBar() ) && GetEditView() )
{
- // Nicht mit dem Wert Scrollen, sondern lieber die Thumb-Pos fuer die
- // VisArea verwenden:
+ // don't scroll with the value but rather use the Thumb-Pos for the VisArea:
long nDiff = GetEditView()->GetStartDocPos().X() - pCurScrollBar->GetThumbPos();
GetEditView()->Scroll( nDiff, 0 );
GetEditView()->ShowCursor( sal_False, sal_True );
@@ -1264,8 +1257,7 @@ void ModulWindow::Deactivating()
sal_uInt16 ModulWindow::StartSearchAndReplace( const SvxSearchItem& rSearchItem, sal_Bool bFromStart )
{
- // Mann koennte fuer das blinde Alle-Ersetzen auch auf
- // Syntaxhighlighting/Formatierung verzichten...
+ // one could also relinquish syntaxhighlighting/formatting instead of the stupid replace-everything...
AssertValidEditEngine();
ExtTextView* pView = GetEditView();
TextSelection aSel;
@@ -1493,7 +1485,7 @@ ModulWindowLayout::~ModulWindowLayout()
void ModulWindowLayout::Resize()
{
- // ScrollBars, etc. passiert in BasicIDEShell:Adjust...
+ // ScrollBars, etc. happens in BasicIDEShell:Adjust...
ArrangeWindows();
}
@@ -1507,7 +1499,7 @@ void ModulWindowLayout::ArrangeWindows()
{
Size aSz = GetOutputSizePixel();
- // prueffen, ob der Splitter in einem gueltigen Bereich liegt...
+ // test whether the splitter is in a valid area...
long nMinPos = SPLIT_MARGIN;
long nMaxPos = aSz.Height() - SPLIT_MARGIN;
@@ -1515,13 +1507,11 @@ void ModulWindowLayout::ArrangeWindows()
long nHSplitPos = aHSplitter.GetSplitPosPixel();
if ( !bVSplitted )
{
- // Wenn noch nie gesplitted wurde, Verhaeltniss = 3 : 4
nVSplitPos = aSz.Height() * 3 / 4;
aVSplitter.SetSplitPosPixel( nVSplitPos );
}
if ( !bHSplitted )
{
- // Wenn noch nie gesplitted wurde, Verhaeltniss = 2 : 3
nHSplitPos = aSz.Width() * 2 / 3;
aHSplitter.SetSplitPosPixel( nHSplitPos );
}
@@ -1587,7 +1577,7 @@ IMPL_LINK( ModulWindowLayout, SplitHdl, Splitter *, pSplitter )
sal_Bool ModulWindowLayout::IsToBeDocked( DockingWindow* pDockingWindow, const Point& rPos, Rectangle& rRect )
{
- // prueffen, ob als Dock oder als Child:
+ // test whether dock or child:
// TRUE: Floating
// FALSE: Child
Point aPosInMe = ScreenToOutputPixel( rPos );
@@ -1623,12 +1613,10 @@ void ModulWindowLayout::DockaWindow( DockingWindow* pDockingWindow )
{
if ( pDockingWindow == &aWatchWindow )
{
- // evtl. Sonderbehandlung...
ArrangeWindows();
}
else if ( pDockingWindow == &aStackWindow )
{
- // evtl. Sonderbehandlung...
ArrangeWindows();
}
#if OSL_DEBUG_LEVEL > 0
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index e6cf7b1b0c0e..5a1d41b3c3b3 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -280,15 +280,15 @@ void EditorWindow::RequestHelp( const HelpEvent& rHEvt )
SbxVariable* pVar = (SbxVariable*)pSBX;
SbxDataType eType = pVar->GetType();
if ( (sal_uInt8)eType == (sal_uInt8)SbxOBJECT )
- // Kann zu Absturz, z.B. bei Selections-Objekt fuehren
- // Type == Object heisst nicht, dass pVar == Object!
+ // might cause a crash e. g. at the selections-object
+ // Type == Object does not mean pVar == Object!
; // aHelpText = ((SbxObject*)pVar)->GetClassName();
else if ( eType & SbxARRAY )
; // aHelpText = "{...}";
else if ( (sal_uInt8)eType != (sal_uInt8)SbxEMPTY )
{
aHelpText = pVar->GetName();
- if ( !aHelpText.Len() ) // Bei Uebergabeparametern wird der Name nicht kopiert
+ if ( !aHelpText.Len() ) // name is not copied with the passed parameters
aHelpText = aWord;
aHelpText += '=';
aHelpText += pVar->GetString();
@@ -419,7 +419,7 @@ void EditorWindow::KeyInput( const KeyEvent& rKEvt )
if ( !bDone && ( !TextEngine::DoesKeyChangeText( rKEvt ) || ImpCanModify() ) )
{
if ( ( rKEvt.GetKeyCode().GetCode() == KEY_Y ) && rKEvt.GetKeyCode().IsMod1() )
- bDone = sal_True; // CTRL-Y schlucken, damit kein Vorlagenkatalog
+ bDone = sal_True;
else
{
if ( ( rKEvt.GetKeyCode().GetCode() == KEY_TAB ) && !rKEvt.GetKeyCode().IsMod1() &&
@@ -554,7 +554,7 @@ void EditorWindow::CreateEditEngine()
aHighlighter.initialize( HIGHLIGHT_BASIC );
sal_Bool bWasDoSyntaxHighlight = bDoSyntaxHighlight;
- bDoSyntaxHighlight = sal_False; // Bei grossen Texten zu langsam...
+ bDoSyntaxHighlight = sal_False; // too slow for large texts...
::rtl::OUString aOUSource( pModulWindow->GetModule() );
sal_Int32 nLines = 0;
sal_Int32 nIndex = -1;
@@ -566,8 +566,8 @@ void EditorWindow::CreateEditEngine()
while ( nIndex >= 0 );
// nLines*4: SetText+Formatting+DoHighlight+Formatting
- // 1 Formatting koennte eingespart werden, aber dann wartet man
- // bei einem langen Sourcecode noch laenger auf den Text...
+ // it could be cut down on one formatting but you would wait even longer
+ // for the text then if the source code is long...
pProgress = new ProgressInfo( IDE_DLL()->GetShell()->GetViewFrame()->GetObjectShell(), String( IDEResId( RID_STR_GENERATESOURCE ) ), nLines*4 );
setTextEngineText( pEditEngine, aOUSource );
@@ -575,9 +575,8 @@ void EditorWindow::CreateEditEngine()
pEditView->SetSelection( TextSelection() );
pModulWindow->GetBreakPointWindow().GetCurYOffset() = 0;
pEditEngine->SetUpdateMode( sal_True );
- Update(); // Es wurde bei UpdateMode = sal_True nur Invalidiert
+ Update(); // has only been invalidated at UpdateMode = sal_True
- // Die anderen Fenster auch, damit keine halben Sachen auf dem Bildschirm!
pModulWindow->GetLayout()->GetWatchWindow().Update();
pModulWindow->GetLayout()->GetStackWindow().Update();
pModulWindow->GetBreakPointWindow().Update();
@@ -586,7 +585,6 @@ void EditorWindow::CreateEditEngine()
StartListening( *pEditEngine );
- // Das Syntax-Highlightning legt ein rel. groesse VDev an.
aSyntaxIdleTimer.Stop();
bDoSyntaxHighlight = bWasDoSyntaxHighlight;
@@ -715,7 +713,7 @@ void EditorWindow::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uIn
void EditorWindow::SetScrollBarRanges()
{
- // Extra-Methode, nicht InitScrollBars, da auch fuer EditEngine-Events.
+ // extra method, not InitScrollBars, because for EditEngine events too
if ( !pEditEngine )
return;
@@ -773,7 +771,6 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
pEditEngine->SetAttrib( TextAttribFontColor( rColor ), nLine, r.nBegin, r.nEnd, sal_True );
}
- // Das Highlighten soll kein Modify setzen
pEditEngine->SetModified( bWasModified );
}
}
@@ -808,11 +805,11 @@ void EditorWindow::ImplSetFont()
void EditorWindow::DoSyntaxHighlight( sal_uLong nPara )
{
- // Durch das DelayedSyntaxHighlight kann es passieren,
- // dass die Zeile nicht mehr existiert!
+ // because of the DelayedSyntaxHighlight it's possible
+ // that this line does not exist anymore!
if ( nPara < pEditEngine->GetParagraphCount() )
{
- // leider weis ich nicht, ob genau diese Zeile Modified() ...
+ // unfortunately I'm not sure that excactly this line does Modified() ...
if ( pProgress )
pProgress->StepProgress();
ImpDoHighlight( nPara );
@@ -821,8 +818,8 @@ void EditorWindow::DoSyntaxHighlight( sal_uLong nPara )
void EditorWindow::DoDelayedSyntaxHighlight( sal_uLong nPara )
{
- // Zeile wird nur in 'Liste' aufgenommen, im TimerHdl abgearbeitet.
- // => Nicht Absaetze manipulieren, waehrend EditEngine formatiert.
+ // line is only added to 'Liste' (list), processed in TimerHdl
+ // => don't manipulate breaks while EditEngine is formatting
if ( pProgress )
pProgress->StepProgress();
@@ -880,13 +877,8 @@ void EditorWindow::ParagraphInsertedDeleted( sal_uLong nPara, sal_Bool bInserted
}
else
{
- // Brechpunkte Aktualisieren...
- // keine Sonderbehandlung fuer EditEngine-CTOR ( Erste-Zeile-Problem ),
- // da in diesem Moment noch keine BreakPoints.
- // +1: Basic-Zeilen beginnen bei 1!
pModulWindow->GetBreakPoints().AdjustBreakPoints( (sal_uInt16)nPara+1, bInserted );
- // Im BreakPointWindow invalidieren...
long nLineHeight = GetTextHeight();
Size aSz = pModulWindow->GetBreakPointWindow().GetOutputSize();
Rectangle aInvRec( Point( 0, 0 ), aSz );
@@ -929,9 +921,7 @@ BreakPointWindow::BreakPointWindow( Window* pParent ) :
setBackgroundColor(GetSettings().GetStyleSettings().GetFieldColor());
nMarkerPos = MARKER_NOMARKER;
- // nCurYOffset merken und nicht von EditEngine holen.
- // Falls in EditEngine autom. gescrollt wurde, wuesste ich sonst nicht,
- // wo ich gerade stehe.
+ // memorize nCurYOffset and not take it from EditEngine
SetHelpId( HID_BASICIDE_BREAKPOINTWINDOW );
}
@@ -994,10 +984,10 @@ void BreakPointWindow::SetMarkerPos( sal_uInt16 nLine, sal_Bool bError )
if ( SyncYOffset() )
Update();
- ShowMarker( sal_False ); // Alten wegzeichen...
+ ShowMarker( sal_False );
nMarkerPos = nLine;
bErrorMarker = bError;
- ShowMarker( sal_True ); // Neuen zeichnen...
+ ShowMarker( sal_True );
}
void BreakPointWindow::ShowMarker( sal_Bool bShow )
@@ -1055,7 +1045,6 @@ void BreakPointWindow::MouseButtonDown( const MouseEvent& rMEvt )
long nYPos = aMousePos.Y() + nCurYOffset;
long nLine = nYPos / nLineHeight + 1;
pModulWindow->ToggleBreakPoint( (sal_uLong)nLine );
- // vielleicht mal etwas genauer...
Invalidate();
}
}
@@ -1071,7 +1060,7 @@ void BreakPointWindow::Command( const CommandEvent& rCEvt )
BreakPoint* pBrk = rCEvt.IsMouseEvent() ? FindBreakPoint( aEventPos ) : 0;
if ( pBrk )
{
- // prueffen, ob Brechpunkt enabled....
+ // test if break point is enabled...
PopupMenu aBrkPropMenu( IDEResId( RID_POPUP_BRKPROPS ) );
aBrkPropMenu.CheckItem( RID_ACTIV, pBrk->bEnabled );
switch ( aBrkPropMenu.Execute( this, aPos ) )
@@ -1246,7 +1235,7 @@ void WatchWindow::Resize()
Size aSz = GetOutputSizePixel();
Size aBoxSz( aSz.Width() - 2*DWBORDER, aSz.Height() - nVirtToolBoxHeight - DWBORDER );
- if ( aBoxSz.Width() < 4 ) // < 4, weil noch Border...
+ if ( aBoxSz.Width() < 4 )
aBoxSz.Width() = 0;
if ( aBoxSz.Height() < 4 )
aBoxSz.Height() = 0;
@@ -1258,7 +1247,7 @@ void WatchWindow::Resize()
aBoxSz.Height() = nHeaderBarHeight;
aHeaderBar.SetSizePixel( aBoxSz );
- Invalidate(); //Wegen DrawLine im Paint...
+ Invalidate();
}
struct MemberList
@@ -1537,14 +1526,14 @@ void StackWindow::Resize()
Size aSz = GetOutputSizePixel();
Size aBoxSz( aSz.Width() - 2*DWBORDER, aSz.Height() - nVirtToolBoxHeight - DWBORDER );
- if ( aBoxSz.Width() < 4 ) // < 4, weil noch Border...
+ if ( aBoxSz.Width() < 4 )
aBoxSz.Width() = 0;
if ( aBoxSz.Height() < 4 )
aBoxSz.Height() = 0;
aTreeListBox.SetSizePixel( aBoxSz );
- Invalidate(); //Wegen DrawLine im Paint...
+ Invalidate();
}
@@ -1581,7 +1570,7 @@ void StackWindow::UpdateCalls()
if ( pParams )
{
aEntry += '(';
- // 0 ist der Name der Sub...
+ // 0 is the sub's name...
for ( sal_uInt16 nParam = 1; nParam < pParams->Count(); nParam++ )
{
SbxVariable* pVar = pParams->Get( nParam );
@@ -1973,16 +1962,14 @@ sal_Bool WatchTreeListBox::ImplBasicEntryEdited( SvLBoxEntry* pEntry, const Stri
{
if ( pToBeChanged->ISA( SbxVariable ) )
{
- // Wenn der Typ variabel ist, macht die Konvertierung des SBX nichts,
- // bei festem Typ wird der String konvertiert.
+ // If the type is variable, the conversion of the SBX does not matter,
+ // else the string is converted.
((SbxVariable*)pToBeChanged)->PutStringExt( aResult );
}
else
bError = sal_True;
}
- // Wenn jemand z.B. einen zu grossen Wert fuer ein Int eingegeben hat,
- // folgt beim naechsten Step() ein Runtime-Error.
if ( SbxBase::IsError() )
{
bError = sal_True;
@@ -2100,7 +2087,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
SbxDataType eType = pVar->GetType();
if ( eType & SbxARRAY )
{
- // Mehrdimensionale Arrays beruecksichtigen!
+ // consider multidimensinal arrays!
SbxBase* pBase = pVar->GetObject();
if ( pBase && pBase->ISA( SbxDimArray ) )
{
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index b5b48b96994d..1c3132d76525 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -108,7 +108,6 @@ DialogWindow::DialogWindow( Window* pParent, const ScriptDocument& rDocument, St
pEditor->SetWindow( this );
pEditor->SetDialog( xDialogModel );
- // Undo einrichten
pUndoMgr = new SfxUndoManager;
Link aDummyLink;
@@ -326,10 +325,9 @@ void DialogWindow::GetState( SfxItemSet& rSet )
}
break;
- // Nur Dialogfenster:
case SID_DIALOG_TESTMODE:
{
- // ist die IDE noch aktiv?
+ // is the IDE still active?
if( IDE_DLL()->GetShell()->GetFrame() )
{
rSet.Put( SfxBoolItem( SID_DIALOG_TESTMODE,
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index 4fecf6e79683..24beb73747be 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -83,7 +83,7 @@ using namespace ::com::sun::star::frame;
class SvxSearchItem;
-// Egal was, einfach ans aktuelle Fenster:
+
void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
{
if ( !pCurWin )
@@ -105,7 +105,6 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
if ( pCurWin->ISA( ModulWindow ) )
{
- // module
if ( QueryDelModule( aName, pCurWin ) )
{
if ( aDocument.removeModule( aLibName, aName ) )
@@ -116,7 +115,6 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
}
else
{
- // dialog
if ( QueryDelDialog( aName, pCurWin ) )
{
if ( BasicIDE::RemoveDialog( aDocument, aLibName, aName ) )
@@ -139,14 +137,14 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
{
DBG_ASSERT( rReq.GetArgs(), "arguments expected" );
const SfxItemSet* pArgs = rReq.GetArgs();
- // Leider kenne ich die ID nicht:
+ // unfortunately I don't know the ID:
sal_uInt16 nWhich = pArgs->GetWhichByPos( 0 );
DBG_ASSERT( nWhich, "Wich fuer SearchItem ?" );
const SfxPoolItem& rItem = pArgs->Get( nWhich );
DBG_ASSERT( rItem.ISA( SvxSearchItem ), "Kein Searchitem!" );
if ( rItem.ISA( SvxSearchItem ) )
{
- // Item wegen der Einstellungen merken...
+ // memorize item because of the adjustments...
IDE_DLL()->GetExtraData()->SetSearchItem( (const SvxSearchItem&)rItem );
sal_uInt16 nFound = 0;
sal_Bool bCanceled = sal_False;
@@ -184,10 +182,9 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
nFound = ((ModulWindow*)pCurWin)->StartSearchAndReplace( (const SvxSearchItem&)rItem );
if ( !nFound && !((const SvxSearchItem&)rItem).GetSelection() )
{
- // Andere Module durchsuchen...
+ // search other modules...
sal_Bool bChangeCurWindow = sal_False;
aIDEWindowTable.Seek( pCurWin );
- // Erstmal beim naechsten Anfangen, ggf. spaeter von vorne
IDEBaseWindow* pWin = aIDEWindowTable.Next();
sal_Bool bSearchedFromStart = sal_False;
while ( !nFound && !bCanceled && ( pWin || !bSearchedFromStart ) )
@@ -211,8 +208,6 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
{
if ( pWin != pCurWin )
{
- // Groesse einstellen, damit die View
- // gleich richtig justiert werden kann.
if ( pCurWin )
pWin->SetSizePixel( pCurWin->GetSizePixel() );
nFound = ((ModulWindow*)pWin)->StartSearchAndReplace( (const SvxSearchItem&)rItem, sal_True );
@@ -226,9 +221,9 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
if ( pWin && ( pWin != pCurWin ) )
pWin = aIDEWindowTable.Next();
else
- pWin = 0; // Dann sind wir durch...
+ pWin = 0;
}
- if ( !nFound && bSearchedFromStart ) // Aktuelles von vorne...
+ if ( !nFound && bSearchedFromStart )
nFound = ((ModulWindow*)pCurWin)->StartSearchAndReplace( (const SvxSearchItem&)rItem, sal_True );
if ( bChangeCurWindow )
SetCurWindow( pWin, sal_True );
@@ -264,7 +259,7 @@ void BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
}
}
-// Egal, wer oben, Einfluss auf die Shell:
+// no matter who's at the top, influence on the shell:
void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
{
sal_uInt16 nSlot = rReq.GetSlot();
@@ -272,7 +267,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
{
case SID_BASICSTOP:
{
- // Evtl. nicht einfach anhalten, falls auf Brechpunkt!
+ // maybe do not simply stop if on breakpoint!
if ( pCurWin && pCurWin->IsA( TYPE( ModulWindow ) ) )
((ModulWindow*)pCurWin)->BasicStop();
BasicIDE::StopBasic();
@@ -283,7 +278,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
{
if ( pCurWin )
{
- // Daten ins BASIC zurueckschreiben
+ // rewrite date into the BASIC
StoreAllWindowData();
// document basic
@@ -367,7 +362,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) );
- StartListening( *pBasMgr, sal_True /* Nur einmal anmelden */ );
+ StartListening( *pBasMgr, sal_True /* log on only once */ );
String aLibName( rInfo.GetLib() );
if ( !aLibName.Len() )
aLibName = String::CreateFromAscii( "Standard" );
@@ -544,7 +539,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
}
else
{
- // alten Wert einstellen...
+ // adjust old value...
SfxBindings* pBindings = BasicIDE::GetBindingsPtr();
if ( pBindings )
pBindings->Invalidate( SID_BASICIDE_LIBSELECTOR, sal_True, sal_False );
@@ -559,7 +554,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
{
m_aCurDocument = ScriptDocument::getApplicationScriptDocument();
m_aCurLibName = String();
- // Kein UpdateWindows!
+ // no UpdateWindows!
SfxBindings* pBindings = BasicIDE::GetBindingsPtr();
if ( pBindings )
pBindings->Invalidate( SID_BASICIDE_LIBSELECTOR );
@@ -879,7 +874,7 @@ void BasicIDEShell::GetState(SfxItemSet &rSet)
break;
case SID_BASICSTOP:
{
- // Stop immermoeglich, wenn irgendein Basic lauft...
+ // stop is always possible when some Basic is running...
if ( !StarBASIC::IsRunning() )
rSet.DisableItem( nWh );
}
@@ -966,14 +961,14 @@ void BasicIDEShell::GetState(SfxItemSet &rSet)
}
}
break;
- // Werden vom Controller ausgewertet:
+ // are interpreted by the controller:
case SID_ATTR_SIZE:
case SID_ATTR_INSERT:
break;
case SID_UNDO:
case SID_REDO:
{
- if( GetUndoManager() ) // sonst rekursives GetState
+ if( GetUndoManager() ) // recursive GetState else
GetViewFrame()->GetSlotState( nWh, NULL, &rSet );
}
break;
@@ -1049,9 +1044,7 @@ sal_Bool BasicIDEShell::HasUIFeature( sal_uInt32 nFeature )
void BasicIDEShell::SetCurWindow( IDEBaseWindow* pNewWin, sal_Bool bUpdateTabBar, sal_Bool bRememberAsCurrent )
{
- // Es muss ein EditWindow am Sfx gesetzt sein, sonst kommt kein
- // Resize, also stehen die Controls auf den Wiese...
- // Sieht dann sowieso besser aus, wenn das Modul-Layout angezeigt wird...
+ // an EditWindow must be set at Sfx for resizing...
if ( !pNewWin && ( GetWindow() != pModulLayout ) )
{
pModulLayout->Show();
@@ -1105,7 +1098,7 @@ void BasicIDEShell::SetCurWindow( IDEBaseWindow* pNewWin, sal_Bool bUpdateTabBar
}
}
- if ( GetViewFrame()->GetWindow().IsVisible() ) // sonst macht es spaeter der SFX
+ if ( GetViewFrame()->GetWindow().IsVisible() ) // SFX will do it later otherwise
pCurWin->Show();
pCurWin->Init();
@@ -1126,10 +1119,10 @@ void BasicIDEShell::SetCurWindow( IDEBaseWindow* pNewWin, sal_Bool bUpdateTabBar
{
sal_uLong nKey = aIDEWindowTable.GetKey( pCurWin );
if ( pCurWin && ( pTabBar->GetPagePos( (sal_uInt16)nKey ) == TAB_PAGE_NOTFOUND ) )
- pTabBar->InsertPage( (sal_uInt16)nKey, pCurWin->GetTitle() ); // wurde neu eingeblendet
+ pTabBar->InsertPage( (sal_uInt16)nKey, pCurWin->GetTitle() ); // has just been faded in
pTabBar->SetCurPageId( (sal_uInt16)nKey );
}
- if ( pCurWin && pCurWin->IsSuspended() ) // Wenn das Fenster im Fehlerfall angezeigt wird...
+ if ( pCurWin && pCurWin->IsSuspended() ) // if the window is shown in the case of an error...
pCurWin->SetStatus( pCurWin->GetStatus() & ~BASWIN_SUSPENDED );
if ( pCurWin )
{
@@ -1249,7 +1242,7 @@ long BasicIDEShell::CallBasicBreakHdl( StarBASIC* pBasic )
nRet = pModWin->BasicBreakHdl( pBasic );
- if ( StarBASIC::IsRunning() ) // Falls abgebrochen...
+ if ( StarBASIC::IsRunning() ) // if cancelled...
{
if ( bAppWindowDisabled )
Application::GetDefDialogParent()->Enable( sal_False );
@@ -1296,7 +1289,7 @@ ModulWindow* BasicIDEShell::ShowActiveModuleWindow( StarBASIC* pBasic )
}
BasicManager* pBasicMgr = BasicIDE::FindBasicManager( pBasic );
if ( pBasicMgr )
- StartListening( *pBasicMgr, sal_True /* Nur einmal anmelden */ );
+ StartListening( *pBasicMgr, sal_True /* log on only once */ );
return pWin;
}
return 0;
@@ -1304,7 +1297,7 @@ ModulWindow* BasicIDEShell::ShowActiveModuleWindow( StarBASIC* pBasic )
void BasicIDEShell::AdjustPosSizePixel( const Point &rPos, const Size &rSize )
{
- // Nicht wenn minimiert, weil dann bei Restore der Text verschoben ist.
+ // not if iconified because the whole text would be displaced then at restore
if ( GetViewFrame()->GetWindow().GetOutputSizePixel().Height() == 0 )
return;
@@ -1318,7 +1311,7 @@ void BasicIDEShell::AdjustPosSizePixel( const Point &rPos, const Size &rSize )
aVScrollBar.SetPosSizePixel( Point( rPos.X()+aSz.Width(), rPos.Y() ), Size( aScrollBarBoxSz.Width(), aSz.Height() ) );
if ( bTabBarSplitted )
{
- // SplitSize ist beim Resize 0 !
+ // SplitSize is 0 at a resize!
long nSplitPos = pTabBar->GetSizePixel().Width();
if ( nSplitPos > aSz.Width() )
nSplitPos = aSz.Width();
@@ -1337,7 +1330,7 @@ void BasicIDEShell::AdjustPosSizePixel( const Point &rPos, const Size &rSize )
if ( pEdtWin )
{
if( pCurWin && pCurWin->IsA( TYPE( DialogWindow ) ) )
- pEdtWin->SetPosSizePixel( rPos, aSz ); // Ohne ScrollBar
+ pEdtWin->SetPosSizePixel( rPos, aSz ); // without ScrollBar
else
pEdtWin->SetPosSizePixel( rPos, aOutSz );
}
@@ -1366,8 +1359,8 @@ void BasicIDEShell::Activate( sal_Bool bMDI )
void BasicIDEShell::Deactivate( sal_Bool bMDI )
{
- // bMDI sal_True heisst, dass ein anderes MDI aktiviert wurde, bei einem
- // Deactivate durch eine MessageBox ist bMDI FALSE
+ // bMDI sal_True means that another MDI has been activated; in case of a
+ // deactivate due to a MessageBox bMDI is FALSE
if ( bMDI )
{
if( pCurWin && pCurWin->IsA( TYPE( DialogWindow ) ) )
@@ -1378,8 +1371,8 @@ void BasicIDEShell::Deactivate( sal_Bool bMDI )
BasicIDE::MarkDocumentModified( pXDlgWin->GetDocument() );
}
- // CanClose pruefen, damit auch beim deaktivieren der BasicIDE geprueft wird,
- // ob in einem Modul der Sourcecode zu gross ist...
+ // test CanClose to also test during deactivating the BasicIDE whether
+ // the sourcecode is too large in one of the modules...
for ( sal_uLong nWin = 0; nWin < aIDEWindowTable.Count(); nWin++ )
{
IDEBaseWindow* pWin = aIDEWindowTable.GetObject( nWin );
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx
index 1aba814ff96d..7754d9a89cfd 100644
--- a/basctl/source/basicide/basides2.cxx
+++ b/basctl/source/basicide/basides2.cxx
@@ -207,7 +207,7 @@ ModulWindow* BasicIDEShell::CreateBasWin( const ScriptDocument& rDocument, const
if ( !aModName.Len() )
aModName = rDocument.createObjectName( E_SCRIPTS, aLibName );
- // Vielleicht gibt es ein suspendiertes?
+ // maybe there's an suspended one?
pWin = FindBasWin( rDocument, aLibName, aModName, sal_False, sal_True );
if ( !pWin )
@@ -273,7 +273,7 @@ ModulWindow* BasicIDEShell::FindBasWin( const ScriptDocument& rDocument, const S
{
if ( ( !pWin->IsSuspended() || bFindSuspended ) && pWin->IsA( TYPE( ModulWindow ) ) )
{
- if ( !rLibName.Len() ) // nur irgendeins finden...
+ if ( !rLibName.Len() )
pModWin = (ModulWindow*)pWin;
else if ( pWin->IsDocument( rDocument ) && pWin->GetLibName() == rLibName && pWin->GetName() == rModName )
pModWin = (ModulWindow*)pWin;
@@ -301,7 +301,7 @@ void BasicIDEShell::ShowCursor( bool bOn )
// Hack for #101048
sal_Int32 getBasicIDEShellCount( void );
-// Nur wenn Basicfenster oben:
+// only if basic window above:
void BasicIDEShell::ExecuteBasic( SfxRequest& rReq )
{
if ( !pCurWin || !pCurWin->IsA( TYPE( ModulWindow ) ) )
diff --git a/basctl/source/basicide/basides3.cxx b/basctl/source/basicide/basides3.cxx
index 9391011334e9..2c5cecd6ea44 100644
--- a/basctl/source/basicide/basides3.cxx
+++ b/basctl/source/basicide/basides3.cxx
@@ -73,7 +73,7 @@ DialogWindow* BasicIDEShell::CreateDlgWin( const ScriptDocument& rDocument, cons
if ( !aDlgName.Len() )
aDlgName = rDocument.createObjectName( E_DIALOGS, aLibName );
- // Vielleicht gibt es ein suspendiertes?
+ // maybe there's a suspended one?
pWin = FindDlgWin( rDocument, aLibName, aDlgName, sal_False, sal_True );
if ( !pWin )
@@ -144,7 +144,7 @@ DialogWindow* BasicIDEShell::FindDlgWin( const ScriptDocument& rDocument, const
{
if ( ( !pWin->IsSuspended() || bFindSuspended ) && pWin->IsA( TYPE( DialogWindow ) ) )
{
- if ( !rLibName.Len() ) // nur irgendeins finden...
+ if ( !rLibName.Len() )
pDlgWin = (DialogWindow*)pWin;
else if ( pWin->IsDocument( rDocument ) && pWin->GetLibName() == rLibName && pWin->GetName() == rDlgName )
pDlgWin = (DialogWindow*)pWin;
@@ -166,7 +166,7 @@ SdrView* BasicIDEShell::GetCurDlgView() const
return pWin->GetView();
}
-// Nur wenn Dialogfenster oben:
+// only if dialogue window above:
void BasicIDEShell::ExecuteDialog( SfxRequest& rReq )
{
if ( pCurWin && ( pCurWin->IsA( TYPE( DialogWindow) ) ||
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index 8814f3538161..eb653918801d 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -44,7 +44,7 @@
#define ITEMID_SIZE 0
-// Falls ohne PCH's:
+// if without PCH's:
#include <ide_pch.hxx>
@@ -256,18 +256,17 @@ BasicIDEShell::~BasicIDEShell()
if ( IDE_DLL() && IDE_DLL()->pShell == this )
IDE_DLL()->pShell = NULL;
- // Damit bei einem Basic-Fehler beim Speichern die Shell nicht sofort
- // wieder hoch kommt:
+
IDE_DLL()->GetExtraData()->ShellInCriticalSection() = sal_True;
SetWindow( 0 );
SetCurWindow( 0 );
- // Alle Fenster zerstoeren:
+
IDEBaseWindow* pWin = aIDEWindowTable.First();
while ( pWin )
{
- // Kein Store, passiert bereits, wenn die BasicManager zerstoert werden.
+ // no store; does already happen when the BasicManagers are destroyed
delete pWin;
pWin = aIDEWindowTable.Next();
}
@@ -410,7 +409,7 @@ sal_uInt16 BasicIDEShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing )
{
(void)bForBrowsing;
- // da es nach Drucken etc. (DocInfo) modifiziert ist, hier resetten
+ // reset here because it's modified after printing etc. (DocInfo)
GetViewFrame()->GetObjectShell()->SetModified(sal_False);
if ( StarBASIC::IsRunning() )
@@ -439,7 +438,7 @@ sal_uInt16 BasicIDEShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing )
}
if ( bCanClose )
- StoreAllWindowData( sal_False ); // Nicht auf Platte schreiben, das passiert am Ende automatisch
+ StoreAllWindowData( sal_False ); // don't write on the disk, that will be done later automatically
return bCanClose;
}
@@ -477,7 +476,6 @@ Size BasicIDEShell::GetOptimalSizePixel() const
void BasicIDEShell::OuterResizePixel( const Point &rPos, const Size &rSize )
{
- // Adjust fliegt irgendwann raus...
AdjustPosSizePixel( rPos, rSize );
}
@@ -564,7 +562,7 @@ void BasicIDEShell::ShowObjectDialog( sal_Bool bShow, sal_Bool bCreateOrDestroy
if ( !pObjectCatalog && bCreateOrDestroy )
{
pObjectCatalog = new ObjectCatalog( &GetViewFrame()->GetWindow() );
- // Position wird in BasicIDEData gemerkt und vom Dlg eingestellt
+ // position is memorized in BasicIDEData and adjusted by the Dlg
if ( pObjectCatalog )
{
pObjectCatalog->SetCancelHdl( LINK( this, BasicIDEShell, ObjectDialogCancelHdl ) );
@@ -576,7 +574,7 @@ void BasicIDEShell::ShowObjectDialog( sal_Bool bShow, sal_Bool bCreateOrDestroy
}
}
- // Die allerletzten Aenderungen...
+ // the very last changes...
if ( pCurWin )
pCurWin->StoreData();
@@ -591,7 +589,7 @@ void BasicIDEShell::ShowObjectDialog( sal_Bool bShow, sal_Bool bCreateOrDestroy
pObjectCatalog->Hide();
if ( bCreateOrDestroy )
{
- // Wegen OS/2-Focus-Problem pObjectCatalog vorm delete auf NULL
+ // pObjectCatalog to NULL before the delete because of OS/2-focus-problem
ObjectCatalog* pTemp = pObjectCatalog;
pObjectCatalog = 0;
delete pTemp;
@@ -612,7 +610,7 @@ void BasicIDEShell::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId&,
{
case SFX_HINT_DYING:
{
- EndListening( rBC, sal_True /* Alle abmelden */ );
+ EndListening( rBC, sal_True /* log off all */ );
if ( pObjectCatalog )
pObjectCatalog->UpdateEntries();
}
@@ -653,10 +651,10 @@ void BasicIDEShell::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId&,
if ( nHintId == SBX_HINT_BASICSTOP )
{
- // Nicht nur bei Error/Break oder explizitem anhalten,
- // falls durch einen Programmierfehler das Update abgeschaltet ist.
+ // not only at error/break or explicit stoppage,
+ // if the update is turned off due to a programming bug
BasicIDE::BasicStopped();
- UpdateModulWindowLayout( true ); // Leer machen...
+ UpdateModulWindowLayout( true ); // clear...
if( m_pCurLocalizationMgr )
m_pCurLocalizationMgr->handleBasicStopped();
}
@@ -726,7 +724,7 @@ void BasicIDEShell::RemoveWindows( const ScriptDocument& rDocument, const String
void BasicIDEShell::UpdateWindows()
{
- // Alle Fenster, die nicht angezeigt werden duerfen, entfernen
+ // remove all windows that may not be displayed
sal_Bool bChangeCurWindow = pCurWin ? sal_False : sal_True;
if ( m_aCurLibName.Len() )
{
@@ -738,10 +736,9 @@ void BasicIDEShell::UpdateWindows()
if ( pWin == pCurWin )
bChangeCurWindow = sal_True;
pWin->StoreData();
- // Die Abfrage auf RUNNING verhindert den Absturz, wenn in Reschedule.
- // Fenster bleibt erstmal stehen, spaeter sowieso mal umstellen,
- // dass Fenster nur als Hidden markiert werden und nicht
- // geloescht.
+ // The request of RUNNING prevents the crash when in reschedule.
+ // Window is frozen at first, later the windows should be changed
+ // anyway to be marked as hidden instead of being deleted.
if ( !(pWin->GetStatus() & ( BASWIN_TOBEKILLED | BASWIN_RUNNINGBASIC | BASWIN_SUSPENDED ) ) )
{
RemoveWindow( pWin, sal_False, sal_False );
@@ -756,14 +753,14 @@ void BasicIDEShell::UpdateWindows()
IDEBaseWindow* pNextActiveWindow = 0;
- // Alle anzuzeigenden Fenster anzeigen
+ // show all windows that are to be shown
ScriptDocuments aDocuments( ScriptDocument::getAllScriptDocuments( ScriptDocument::AllWithApplication ) );
for ( ScriptDocuments::const_iterator doc = aDocuments.begin();
doc != aDocuments.end();
++doc
)
{
- StartListening( *doc->getBasicManager(), sal_True /* Nur einmal anmelden */ );
+ StartListening( *doc->getBasicManager(), sal_True /* log on only once */ );
// libraries
Sequence< ::rtl::OUString > aLibNames( doc->getLibraryNames() );
@@ -906,10 +903,10 @@ void BasicIDEShell::RemoveWindow( IDEBaseWindow* pWindow_, sal_Bool bDestroy, sa
if ( bStop )
{
StarBASIC::Stop();
- // Es kommt kein Notify...
+ // there will be no notify...
pWindow_->BasicStopped();
}
- aIDEWindowTable.Insert( nKey, pWindow_ ); // wieder einhaegen
+ aIDEWindowTable.Insert( nKey, pWindow_ ); // jump in again
}
}
else
@@ -917,7 +914,7 @@ void BasicIDEShell::RemoveWindow( IDEBaseWindow* pWindow_, sal_Bool bDestroy, sa
pWindow_->Hide();
pWindow_->AddStatus( BASWIN_SUSPENDED );
pWindow_->Deactivating();
- aIDEWindowTable.Insert( nKey, pWindow_ ); // wieder einhaegen
+ aIDEWindowTable.Insert( nKey, pWindow_ ); // jump in again
}
}
@@ -926,7 +923,6 @@ void BasicIDEShell::RemoveWindow( IDEBaseWindow* pWindow_, sal_Bool bDestroy, sa
sal_uInt16 BasicIDEShell::InsertWindowInTable( IDEBaseWindow* pNewWin )
{
- // Eigentlich prueffen,
nCurKey++;
aIDEWindowTable.Insert( nCurKey, pNewWin );
return nCurKey;
@@ -936,7 +932,7 @@ sal_uInt16 BasicIDEShell::InsertWindowInTable( IDEBaseWindow* pNewWin )
void BasicIDEShell::InvalidateBasicIDESlots()
{
- // Nur die, die eine optische Auswirkung haben...
+ // only those that have an optic effect...
if ( IDE_DLL()->GetShell() )
{
@@ -1047,7 +1043,7 @@ void BasicIDEShell::SetCurLibForLocalization( const ScriptDocument& rDocument, S
void BasicIDEShell::ImplStartListening( StarBASIC* pBasic )
{
- StartListening( pBasic->GetBroadcaster(), sal_True /* Nur einmal anmelden */ );
+ StartListening( pBasic->GetBroadcaster(), sal_True /* log on only once */ );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx
index ff27f5452ae2..398e927a738c 100644
--- a/basctl/source/basicide/basobj3.cxx
+++ b/basctl/source/basicide/basobj3.cxx
@@ -107,7 +107,7 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName )
{
aMacroName = aStdMacroText;
aMacroName += String::CreateFromInt32( nMacro );
- // Pruefen, ob vorhanden...
+ // test whether existing...
bValid = pModule->GetMethods()->Find( aMacroName, SbxCLASS_METHOD ) ? sal_False : sal_True;
nMacro++;
}
@@ -116,7 +116,7 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName )
::rtl::OUString aOUSource( pModule->GetSource32() );
- // Nicht zu viele Leerzeilen erzeugen...
+ // don't produce too many empty lines...
sal_Int32 nSourceLen = aOUSource.getLength();
if ( nSourceLen > 2 )
{
@@ -294,7 +294,7 @@ BasicManager* FindBasicManager( StarBASIC* pLib )
void MarkDocumentModified( const ScriptDocument& rDocument )
{
- // Muss ja nicht aus einem Document kommen...
+ // does not have to come from a document...
if ( rDocument.isApplication() )
{
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
@@ -314,7 +314,7 @@ void MarkDocumentModified( const ScriptDocument& rDocument )
pBindings->Update( SID_SAVEDOC );
}
- // Objectcatalog updaten...
+
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
ObjectCatalog* pObjCatalog = pIDEShell ? pIDEShell->GetObjectCatalog() : 0;
if ( pObjCatalog )
@@ -342,8 +342,8 @@ void StopBasic()
IDEBaseWindow* pWin = rWindows.First();
while ( pWin )
{
- // BasicStopped von Hand rufen, da das Stop-Notify ggf. sonst nicht
- // durchkommen kann.
+ // call BasicStopped manually because the Stop-Notify
+ // might not get through otherwise
pWin->BasicStopped();
pWin = rWindows.Next();
}
@@ -357,8 +357,8 @@ void BasicStopped( sal_Bool* pbAppWindowDisabled,
sal_Bool* pbDispatcherLocked, sal_uInt16* pnWaitCount,
SfxUInt16Item** ppSWActionCount, SfxUInt16Item** ppSWLockViewCount )
{
- // Nach einem Error oder dem expliziten abbrechen des Basics muessen
- // ggf. einige Locks entfernt werden...
+ // maybe there are some locks to be removed after an error
+ // or an explicit cancelling of the basic...
if ( pbAppWindowDisabled )
*pbAppWindowDisabled = sal_False;
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index 1fd2953c5175..5244a9fb88a5 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -197,7 +197,7 @@ BasicTreeListBox::BasicTreeListBox( Window* pParent, const ResId& rRes ) :
{
SetNodeDefaultImages();
SetSelectionMode( SINGLE_SELECTION );
- nMode = 0xFF; // Alles
+ nMode = 0xFF; // everything
}
@@ -206,7 +206,7 @@ BasicTreeListBox::~BasicTreeListBox()
{
m_aNotifier.dispose();
- // UserDaten zerstoeren
+ // destroy user data
SvLBoxEntry* pEntry = First();
while ( pEntry )
{
@@ -223,7 +223,7 @@ void BasicTreeListBox::ScanEntry( const ScriptDocument& rDocument, LibraryLocati
// can be called multiple times for updating!
- // eigentlich prueffen, ob Basic bereits im Baum ?!
+ // actually test if basic's in the tree already?!
SetUpdateMode( sal_False );
// level 1: BasicManager (application, document, ...)
@@ -584,7 +584,7 @@ void BasicTreeListBox::UpdateEntries()
{
BasicEntryDescriptor aCurDesc( GetEntryDescriptor( FirstSelected() ) );
- // Erstmal die vorhandenen Eintraege auf existens pruefen:
+
SvLBoxEntry* pLastValid = 0;
SvLBoxEntry* pEntry = First();
while ( pEntry )
@@ -599,7 +599,7 @@ void BasicTreeListBox::UpdateEntries()
pEntry = pLastValid ? Next( pLastValid ) : First();
}
- // Jetzt ueber die Basics rennen und in die Zweige eintragen
+
ScanAllEntries();
SetCurrentEntry( aCurDesc );
@@ -636,7 +636,7 @@ SvLBoxEntry* BasicTreeListBox::FindEntry( SvLBoxEntry* pParent, const String& rT
long BasicTreeListBox::ExpandingHdl()
{
- // Expanding oder Collaps?
+ // expanding or collapsing?
sal_Bool bOK = sal_True;
if ( GetModel()->GetDepth( GetHdlEntry() ) == 1 )
{
diff --git a/basctl/source/basicide/bastype2.hxx b/basctl/source/basicide/bastype2.hxx
index 6300f6c28e0a..a23b99aed386 100644
--- a/basctl/source/basicide/bastype2.hxx
+++ b/basctl/source/basicide/bastype2.hxx
@@ -138,8 +138,8 @@ public:
};
-/****************************************
- Zuordnung von Typen und Pointern in BasicEntrys:
+/************************************************************
+ Classification of types and pointers in the BasicEntries:
OBJ_TYPE_DOCUMENT BasicDocumentEntry
OBJ_TYPE_LIBRARY BasicEntry
@@ -147,7 +147,7 @@ public:
OBJ_TYPE_DIALOG BasicEntry
OBJ_TYPE_METHOD BasicEntry
-******************************************/
+**************************************************************/
class BasicTreeListBox :public SvTreeListBox
,public ::basctl::DocumentEventListener
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index 6f49212dd2c1..267ff9457863 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -147,14 +147,13 @@ void BasicTreeListBox::ExpandedHdl()
{
SvLBoxEntry* pEntry = GetHdlEntry();
DBG_ASSERT( pEntry, "Was wurde zugeklappt?" );
- // Die OnDemand erzeugten Childs loeschen,
- // SubChilds werden automatisch geloescht.
+
if ( !IsExpanded( pEntry ) && pEntry->HasChildsOnDemand() )
{
SvLBoxEntry* pChild = FirstChild( pEntry );
while ( pChild )
{
- GetModel()->Remove( pChild ); // Ruft auch den DTOR
+ GetModel()->Remove( pChild ); // does also call the DTOR
pChild = FirstChild( pEntry );
}
}
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index 10a78a57494f..4d10d024c441 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -41,7 +41,7 @@
#include <basidesh.hrc>
#include <bastypes.hxx>
#include <bastype2.hxx>
-#include <baside2.hxx> // Leider brauche ich teilweise pModulWindow...
+#include <baside2.hxx> // unfortunately pModulWindow is needed partly...
#include <baside3.hxx>
#include <baside2.hrc>
#include <svtools/textview.hxx>
@@ -100,7 +100,7 @@ void IDEBaseWindow::Init()
pShellVScrollBar->SetScrollHdl( LINK( this, IDEBaseWindow, ScrollHdl ) );
if ( pShellHScrollBar )
pShellHScrollBar->SetScrollHdl( LINK( this, IDEBaseWindow, ScrollHdl ) );
- DoInit(); // virtuell...
+ DoInit(); // virtual...
}
@@ -116,7 +116,7 @@ void IDEBaseWindow::GrabScrollBars( ScrollBar* pHScroll, ScrollBar* pVScroll )
DBG_CHKTHIS( IDEBaseWindow, 0 );
pShellHScrollBar = pHScroll;
pShellVScrollBar = pVScroll;
-// Init(); // macht kein Sinn, fuehrt zu flackern, fuehr zu Fehlern...
+// Init(); // does not make sense, leads to flickering and errors...
}
@@ -303,7 +303,7 @@ void BreakPointList::InsertSorted( BreakPoint* pNewBrk )
return;
}
}
- // Keine Einfuegeposition gefunden => LIST_APPEND
+ // no insert position found => LIST_APPEND
maBreakPoints.push_back( pNewBrk );
}
@@ -441,7 +441,7 @@ sal_Bool BasicDockingWindow::Docking( const Point& rPos, Rectangle& rRect )
{
rRect.SetSize( aTmpRec.GetSize() );
}
- else // Alte Groesse einstellen
+ else // adjust old size
{
if ( !aFloatingPosAndSize.IsEmpty() )
rRect.SetSize( aFloatingPosAndSize.GetSize() );
@@ -483,7 +483,7 @@ sal_Bool BasicDockingWindow::PrepareToggleFloatingMode()
{
if ( IsFloatingMode() )
{
- // Position und Groesse auf dem Desktop merken...
+ // memorize position and size on the desktop...
aFloatingPosAndSize.SetPos( GetParent()->OutputToScreenPixel( GetPosPixel() ) );
aFloatingPosAndSize.SetSize( GetSizePixel() );
}
@@ -494,7 +494,6 @@ sal_Bool BasicDockingWindow::PrepareToggleFloatingMode()
void BasicDockingWindow::StartDocking()
{
- // Position und Groesse auf dem Desktop merken...
if ( IsFloatingMode() )
{
aFloatingPosAndSize.SetPos( GetParent()->OutputToScreenPixel( GetPosPixel() ) );
@@ -577,7 +576,7 @@ void BasicIDETabBar::Command( const CommandEvent& rCEvt )
if ( ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU ) && !IsInEditMode() )
{
Point aPos( rCEvt.IsMouseEvent() ? rCEvt.GetMousePosPixel() : Point(1,1) );
- if ( rCEvt.IsMouseEvent() ) // Richtige Tab selektieren
+ if ( rCEvt.IsMouseEvent() ) // select right tab
{
Point aP = PixelToLogic( aPos );
MouseEvent aMouseEvent( aP, 1, MOUSE_SIMPLECLICK, MOUSE_LEFT );
@@ -737,7 +736,7 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, sa
nStartPos = searchEOL( rStr, nStartPos );
if( nStartPos == -1 )
break;
- nStartPos++; // nicht das \n.
+ nStartPos++; // not the \n.
nLine++;
}
@@ -750,7 +749,7 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, sa
for ( sal_Int32 i = 0; i < nLines; i++ )
nEndPos = searchEOL( rStr, nEndPos+1 );
- if ( nEndPos == -1 ) // kann bei letzter Zeile passieren
+ if ( nEndPos == -1 ) // might happen at the last line
nEndPos = rStr.getLength();
else
nEndPos++;
diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx
index 7c640c5a6979..2cdff12b4b48 100644
--- a/basctl/source/basicide/brkdlg.cxx
+++ b/basctl/source/basicide/brkdlg.cxx
@@ -194,7 +194,7 @@ IMPL_LINK( BreakPointDialog, ButtonHdl, Button *, pButton )
}
else if ( pButton == &aNewButton )
{
- // Checkbox beruecksichtigen!
+ // keep checkbox in mind!
String aText( aComboBox.GetText() );
size_t nLine;
bool bValid = lcl_ParseText( aText, nLine );
diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx
index ea882751e178..db1f3cd90770 100644
--- a/basctl/source/basicide/iderdll.cxx
+++ b/basctl/source/basicide/iderdll.cxx
@@ -80,7 +80,7 @@ BasicIDEDLL::BasicIDEDLL()
pShell = 0;
pExtraData = 0;
- GetExtraData(); // damit GlobalErrorHdl gesetzt wird.
+ GetExtraData(); // to cause GlobalErrorHdl to be set
}
BasicIDEDLL::~BasicIDEDLL()
@@ -136,10 +136,10 @@ BasicIDEData::BasicIDEData() : aObjCatPos( INVPOSITION, INVPOSITION )
BasicIDEData::~BasicIDEData()
{
- // ErrorHdl zuruecksetzen ist zwar sauberer, aber diese Instanz wird
- // sowieso sehr spaet, nach dem letzten Basic, zerstoert.
- // Durch den Aufruf werden dann aber wieder AppDaten erzeugt und nicht
- // mehr zerstoert => MLK's beim Purify
+ // Resetting ErrorHdl is cleaner indeed but this instance is destroyed
+ // pretty late, after the last Basic, anyway.
+ // Due to the call there is AppData created then though and not
+ // destroyed anymore => MLK's at Purify
// StarBASIC::SetGlobalErrorHdl( Link() );
// StarBASIC::SetGlobalBreakHdl( Link() );
// StarBASIC::setGlobalStarScriptListener( XEngineListenerRef() );
@@ -168,10 +168,10 @@ IMPL_LINK( BasicIDEData, GlobalBasicBreakHdl, StarBASIC *, pBasic )
BasicManager* pBasMgr = BasicIDE::FindBasicManager( pBasic );
if ( pBasMgr )
{
- // Hier lande ich zweimal, wenn Step into protected Basic
- // => schlecht, wenn Passwortabfrage 2x, ausserdem sieht man in
- // dem PasswordDlg nicht, fuer welche Lib...
- // => An dieser Stelle keine Passwort-Abfrage starten
+ // I do get here twice if Step into protected Basic
+ // => bad, if password query twice, also you don't see
+ // the lib in the PasswordDlg...
+ // => start no password query at this point
ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) );
OSL_ENSURE( aDocument.isValid(), "BasicIDEData::GlobalBasicBreakHdl: no document for the basic manager!" );
if ( aDocument.isValid() )
@@ -183,7 +183,7 @@ IMPL_LINK( BasicIDEData, GlobalBasicBreakHdl, StarBASIC *, pBasic )
Reference< script::XLibraryContainerPassword > xPasswd( xModLibContainer, UNO_QUERY );
if ( xPasswd.is() && xPasswd->isLibraryPasswordProtected( aOULibName ) && !xPasswd->isLibraryPasswordVerified( aOULibName ) )
{
- // Ein Step-Out muesste mich aus den geschuetzten Bereich befoerdern...
+ // a step-out should get me out of the protected area...
nRet = SbDEBUG_STEPOUT;
}
else
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index f6fdd7754805..d9e20d7cb461 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -87,15 +87,14 @@ MacroChooser::MacroChooser( Window* pParnt, sal_Bool bCreateEntries ) :
nMode = MACROCHOOSER_ALL;
bNewDelIsDel = sal_True;
- // Der Sfx fragt den BasicManager nicht, ob modified
- // => Speichern anschmeissen, wenn Aenderung, aber kein Sprung in
- // die BasicIDE.
+ // the Sfx doesn't aske the BasicManger whether modified or not
+ // => start saving in case of a change without a into the BasicIDE.
bForceStoreBasic = sal_False;
aMacrosInTxtBaseStr = aMacrosInTxt.GetText();
aMacroBox.SetSelectionMode( SINGLE_SELECTION );
- aMacroBox.SetHighlightRange(); // ueber ganze Breite selektieren
+ aMacroBox.SetHighlightRange(); // select over the whole width
aRunButton.SetClickHdl( LINK( this, MacroChooser, ButtonHdl ) );
aCloseButton.SetClickHdl( LINK( this, MacroChooser, ButtonHdl ) );
@@ -255,7 +254,7 @@ short MacroChooser::Execute()
Window* pPrevDlgParent = Application::GetDefDialogParent();
Application::SetDefDialogParent( this );
short nRet = ModalDialog::Execute();
- // #57314# Wenn die BasicIDE aktiviert wurde, dann nicht den DefModalDialogParent auf das inaktive Dokument zuruecksetzen.
+ // #57314# If the BasicIDE has been activated, don't reset the DefModalDialogParent to the inactive document.
if ( Application::GetDefDialogParent() == this )
Application::SetDefDialogParent( pPrevDlgParent );
return nRet;
@@ -268,7 +267,6 @@ void MacroChooser::EnableButton( Button& rButton, sal_Bool bEnable )
{
if ( nMode == MACROCHOOSER_CHOOSEONLY || nMode == MACROCHOOSER_RECORDING )
{
- // Nur der RunButton kann enabled werden
if ( &rButton == &aRunButton )
rButton.Enable();
else
@@ -316,13 +314,13 @@ void MacroChooser::DeleteMacro()
pDispatcher->Execute( SID_BASICIDE_STOREALLMODULESOURCES );
}
- // Aktuelles Doc als geaendert markieren:
+ // mark current doc as modified:
StarBASIC* pBasic = BasicIDE::FindBasic( pMethod );
DBG_ASSERT( pBasic, "Basic?!" );
BasicManager* pBasMgr = BasicIDE::FindBasicManager( pBasic );
DBG_ASSERT( pBasMgr, "BasMgr?" );
ScriptDocument aDocument( ScriptDocument::getDocumentForBasicManager( pBasMgr ) );
- if ( aDocument.isDocument() ) // Muss ja nicht aus einem Document kommen...
+ if ( aDocument.isDocument() )
{
aDocument.setDocumentModified();
SfxBindings* pBindings = BasicIDE::GetBindingsPtr();
@@ -411,7 +409,7 @@ SbMethod* MacroChooser::CreateMacro()
void MacroChooser::SaveSetCurEntry( SvTreeListBox& rBox, SvLBoxEntry* pEntry )
{
- // Durch das Highlight wird das Edit sonst platt gemacht:
+ // the edit would be killed by the highlight otherwise:
String aSaveText( aMacroNameEdit.GetText() );
Selection aCurSel( aMacroNameEdit.GetSelection() );
@@ -453,7 +451,7 @@ void MacroChooser::CheckButtons()
EnableButton( aRunButton, bEnable );
}
- // Organisieren immer moeglich ?
+ // organising still possible?
// Assign...
EnableButton( aAssignButton, pMethod ? sal_True : sal_False );
@@ -518,10 +516,10 @@ IMPL_LINK_INLINE_END( MacroChooser, MacroDoubleClickHdl, SvTreeListBox *, EMPTYA
IMPL_LINK( MacroChooser, MacroSelectHdl, SvTreeListBox *, pBox )
{
- // Wird auch gerufen, wenn Deselektiert!
- // 2 Funktionsaufrufe in jedem SelectHdl, nur weil Olli
- // keinen separatren DeselctHdl einfuehren wollte:
- // Also: Feststellen, ob Select oder Deselect:
+ // Is also called if deselected!
+ // Two function calls in every SelectHdl because
+ // there's no separate DeselectHDL.
+ // So find out if select or deselect:
if ( pBox->IsSelected( pBox->GetHdlEntry() ) )
{
UpdateFields();
@@ -534,10 +532,10 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox )
{
static String aSpaceStr = String::CreateFromAscii(" ");
- // Wird auch gerufen, wenn Deselektiert!
- // 2 Funktionsaufrufe in jedem SelectHdl, nur weil Olli
- // keinen separatren DeselctHdl einfuehren wollte:
- // Also: Feststellen, ob Select oder Deselect:
+ // Is also called if deselected!
+ // Two function calls in every SelectHdl because
+ // there's no separate DeselectHDL.
+ // So find out if select or deselect:
if ( !pBox->IsSelected( pBox->GetHdlEntry() ) )
return 0;
@@ -552,8 +550,8 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox )
aMacrosInTxt.SetText( aStr );
- // Die Macros sollen in der Reihenfolge angezeigt werden,
- // wie sie im Modul stehen.
+ // The macros should be called in the same order that they
+ // are written down in the module.
map< sal_uInt16, SbMethod* > aMacros;
size_t nMacroCount = pModule->GetMethods()->Count();
@@ -563,7 +561,6 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox )
if( pMethod->IsHidden() )
continue;
DBG_ASSERT( pMethod, "Methode nicht gefunden! (NULL)" );
- // Eventuell weiter vorne ?
sal_uInt16 nStart, nEnd;
pMethod->GetLineRange( nStart, nEnd );
aMacros.insert( map< sal_uInt16, SbMethod*>::value_type( nStart, pMethod ) );
@@ -593,15 +590,15 @@ IMPL_LINK( MacroChooser, EditModifyHdl, Edit *, pEdit )
{
(void)pEdit;
- // Das Modul, in dem bei Neu das Macro landet, selektieren,
- // wenn BasicManager oder Lib selektiert.
+ // select the module in which the macro is put at Neu (new),
+ // if BasicManager or Lib is selecting
SvLBoxEntry* pCurEntry = aBasicBox.GetCurEntry();
if ( pCurEntry )
{
sal_uInt16 nDepth = aBasicBox.GetModel()->GetDepth( pCurEntry );
if ( ( nDepth == 1 ) && ( aBasicBox.IsEntryProtected( pCurEntry ) ) )
{
- // Dann auf die entsprechende Std-Lib stellen...
+ // then put to the respective Std-Lib...
SvLBoxEntry* pManagerEntry = aBasicBox.GetModel()->GetParent( pCurEntry );
pCurEntry = aBasicBox.GetModel()->FirstChild( pManagerEntry );
}
@@ -637,7 +634,7 @@ IMPL_LINK( MacroChooser, EditModifyHdl, Edit *, pEdit )
if ( !bFound )
{
SvLBoxEntry* pEntry = aMacroBox.FirstSelected();
- // Wenn es den Eintrag gibt ->Select ->Desription...
+ // if the entry exists ->Select ->Desription...
if ( pEntry )
aMacroBox.Select( pEntry, sal_False );
}
@@ -652,7 +649,7 @@ IMPL_LINK( MacroChooser, EditModifyHdl, Edit *, pEdit )
IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
{
- // ausser bei New/Record wird die Description durch LoseFocus uebernommen.
+ // apart from New/Record the Description is done by LoseFocus
if ( pButton == &aRunButton )
{
StoreMacroDescription();
@@ -831,7 +828,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
sal_uInt16 nRet = pDlg->Execute();
delete pDlg;
- if ( nRet ) // Nicht einfach nur geschlossen
+ if ( nRet ) // not only closed
{
EndDialog( MACRO_EDIT );
return 0;
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index e12c469b8acf..f4396a52ac21 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -168,8 +168,8 @@ BasicCheckBox::BasicCheckBox( Window* pParent, const ResId& rResId )
,m_aDocument( ScriptDocument::getApplicationScriptDocument() )
{
nMode = LIBMODE_MANAGER;
- long aTabs_[] = { 1, 12 }; // Mindestens einen braucht die TabPos...
- // 12 wegen der Checkbox
+ long aTabs_[] = { 1, 12 }; // TabPos needs at least one...
+ // 12 because of the CheckBox
SetTabs( aTabs_ );
Init();
}
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index 9a29fd200326..ac77118f436f 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -146,7 +146,7 @@ sal_Bool ExtBasicTreeListBox::EditedEntry( SvLBoxEntry* pEntry, const String& rN
SetCurEntry( pEntry );
SetCurEntry( pEntry );
Select( pEntry, sal_False );
- Select( pEntry ); // damit Handler gerufen wird => Edit updaten
+ Select( pEntry ); // so that handler is called => update edit
return sal_True;
}
@@ -269,7 +269,7 @@ sal_Bool ExtBasicTreeListBox::NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* p
sal_Bool ExtBasicTreeListBox::NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, sal_uLong& rNewChildPos )
{
-// return sal_False; // Wie kopiere ich ein SBX ?!
+// return sal_False; // how do I copy an SBX?!
return NotifyCopyingMoving( pTarget, pEntry,
rpNewParent, rNewChildPos, sal_False );
}
@@ -335,19 +335,19 @@ sal_Bool ExtBasicTreeListBox::NotifyCopyingMoving( SvLBoxEntry* pTarget, SvLBoxE
SvLBoxEntry*& rpNewParent, sal_uLong& rNewChildPos, sal_Bool bMove )
{
(void)pEntry;
- DBG_ASSERT( pEntry, "Kein Eintrag?" ); // Hier ASS ok, sollte nicht mit
- DBG_ASSERT( pTarget, "Kein Ziel?" ); // NULL (ganz vorne) erreicht werden
+ DBG_ASSERT( pEntry, "Kein Eintrag?" ); // ASS is ok here, should not be reached
+ DBG_ASSERT( pTarget, "Kein Ziel?" ); // with NULL (right at the beginning)
sal_uInt16 nDepth = GetModel()->GetDepth( pTarget );
DBG_ASSERT( nDepth, "Tiefe?" );
if ( nDepth == 1 )
{
- // Target = Basic => Modul/Dialog unter das Basic haengen...
+ // Target = Basic => put module/dialog under the Basic
rpNewParent = pTarget;
rNewChildPos = 0;
}
else if ( nDepth >= 2 )
{
- // Target = Modul/Dialog => Modul/Dialog unter das uebergeordnete Basic haengen...
+ // Target = module/dialog => put module/dialog under the superordinate Basic
rpNewParent = GetParent( pTarget );
rNewChildPos = GetModel()->GetRelPos( pTarget ) + 1;
}
@@ -474,7 +474,7 @@ sal_Bool ExtBasicTreeListBox::NotifyCopyingMoving( SvLBoxEntry* pTarget, SvLBoxE
}
}
- return 2; // Aufklappen...
+ return 2; // open...
}
OrganizeDialog::OrganizeDialog( Window* pParent, sal_Int16 tabId, BasicEntryDescriptor& rDesc )
@@ -527,7 +527,7 @@ short OrganizeDialog::Execute()
IMPL_LINK( OrganizeDialog, ActivatePageHdl, TabControl *, pTabCtrl )
{
sal_uInt16 nId = pTabCtrl->GetCurPageId();
- // Wenn TabPage noch nicht erzeugt wurde, dann erzeugen
+
if ( !pTabCtrl->GetTabPage( nId ) )
{
TabPage* pNewTabPage = 0;
diff --git a/basctl/source/basicide/objdlg.cxx b/basctl/source/basicide/objdlg.cxx
index b630fd048aba..0bae4d95d994 100644
--- a/basctl/source/basicide/objdlg.cxx
+++ b/basctl/source/basicide/objdlg.cxx
@@ -113,7 +113,7 @@ ObjectCatalog::ObjectCatalog( Window * pParent )
Size aSize = IDE_DLL()->GetExtraData()->GetObjectCatalogSize();
if ( aPos.X() == INVPOSITION )
{
- // Zentriert nach AppWin:
+ // centered after AppWin:
Window* pWin = GetParent();
aPos = pWin->OutputToScreenPixel( Point( 0, 0 ) );
Size aAppWinSz = pWin->GetSizePixel();
@@ -127,7 +127,7 @@ ObjectCatalog::ObjectCatalog( Window * pParent )
if ( aSize.Width() )
SetOutputSizePixel( aSize );
- Resize(); // damit der Resize-Handler die Controls anordnet
+ Resize(); // so that the resize-handler arranges the controls
// make object catalog keyboard accessible
pParent->GetSystemWindow()->GetTaskPaneList()->AddWindow( this );
@@ -176,7 +176,7 @@ void ObjectCatalog::Resize()
aMacroDescr.SetText(aDesc);
}
- // Die Buttons oben bleiben immer unveraendert stehen...
+ // the buttons above always stay unmodified
}
IMPL_LINK( ObjectCatalog, ToolBoxHdl, ToolBox*, pToolBox )
diff --git a/basctl/source/basicide/tbxctl.cxx b/basctl/source/basicide/tbxctl.cxx
index a0b9ff05bb33..186c941d6d26 100644
--- a/basctl/source/basicide/tbxctl.cxx
+++ b/basctl/source/basicide/tbxctl.cxx
@@ -147,9 +147,9 @@ void TbxControls::Select( sal_uInt16 nModifier )
/*************************************************************************
|*
-|* Hier wird das Fenster erzeugt
-|* Lage der Toolbox mit GetToolBox() abfragbar
-|* rItemRect sind die Screen-Koordinaten
+|* the window is created here
+|* position of the toolbox can be requested with GetToolBox()
+|* rItemRect are the screen coordinates
|*
\************************************************************************/
SfxPopupWindow* TbxControls::CreatePopupWindow()
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 110bdb89f2c6..ab2e056119e8 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -1213,7 +1213,7 @@ void lcl_PrintHeader( Printer* pPrinter, const String& rTitle ) // not working y
long nFontHeight = pPrinter->GetTextHeight();
- // 1.Border => Strich, 2+3 Border = Freiraum.
+ // 1st border => line, 2+3 border = free space
long nYTop = TMARGPRN-3*nBorder-nFontHeight;
long nXLeft = nLeftMargin-nBorder;
diff --git a/basctl/source/inc/basobj.hxx b/basctl/source/inc/basobj.hxx
index 08126ad33bdf..95d24310e414 100644
--- a/basctl/source/inc/basobj.hxx
+++ b/basctl/source/inc/basobj.hxx
@@ -53,7 +53,7 @@ namespace BasicIDE
void Organize( sal_Int16 tabId );
- // Hilfsmethoden fuer den allg. Gebrauch:
+ // help methods for the general use:
SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName );
void RunMethod( SbMethod* pMethod );
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx
index 3d57ce7da634..0e7b639be64e 100644
--- a/basctl/source/inc/bastypes.hxx
+++ b/basctl/source/inc/bastypes.hxx
@@ -61,11 +61,10 @@ class SfxItemSet;
sal_Int32 searchEOL( const ::rtl::OUString& rStr, sal_Int32 fromIndex );
-// Bedeutung von bToBeKilled:
-// Wenn in Reschedule-Schleife, darf ich das Fenster nicht zerstoeren.
-// Es muss erst aus der Reschedule-Schleife Fallen, um sich dann
-// selbst zu zerstoeren.
-// Geht so leider nicht: Destroying Window with living Child!
+// Meaning of bToBeKilled:
+// While being in a reschedule-loop, I may not destroy the window.
+// It must first break from the reschedule-loop to self-destroy then.
+// Does unfortunately not work that way: Destroying Window with living Child!
struct BasicStatus