Kaydet (Commit) fefa76cf authored tarafından Winfried Donkers's avatar Winfried Donkers Kaydeden (comit) Noel Power

german comments translated to english On branch master Changes to be committed:…

german comments translated to english On branch master Changes to be committed: modified: sc/source/ui/view/cellsh.cxx modified: sc/source/ui/view/cellsh1.cxx modified: sc/source/ui/view/cellsh2.cxx modified: sc/source/ui/view/cellsh4.cxx
üst 0e6f0400
...@@ -137,59 +137,59 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) ...@@ -137,59 +137,59 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
while ( nWhich ) while ( nWhich )
{ {
sal_Bool bDisable = false; sal_Bool bDisable = false;
sal_Bool bNeedEdit = sal_True; // muss Selektion editierbar sein? sal_Bool bNeedEdit = sal_True; // need selection be editable?
switch ( nWhich ) switch ( nWhich )
{ {
case FID_FILL_TO_BOTTOM: // Fuellen oben/unten case FID_FILL_TO_BOTTOM: // fill to top / bottom
case FID_FILL_TO_TOP: // mind. 2 Zeilen markiert? case FID_FILL_TO_TOP: // are at least 2 rows marked?
bDisable = (!bSimpleArea) || (nRow1 == nRow2); bDisable = (!bSimpleArea) || (nRow1 == nRow2);
if ( !bDisable && bEditable ) if ( !bDisable && bEditable )
{ // Matrix nicht zerreissen { // do not damage matrix
if ( nWhich == FID_FILL_TO_BOTTOM ) if ( nWhich == FID_FILL_TO_BOTTOM )
bDisable = pDoc->HasSelectedBlockMatrixFragment( bDisable = pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow1, nCol2, nRow1, rMark ); // erste Zeile nCol1, nRow1, nCol2, nRow1, rMark ); // first row
else else
bDisable = pDoc->HasSelectedBlockMatrixFragment( bDisable = pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow2, nCol2, nRow2, rMark ); // letzte Zeile nCol1, nRow2, nCol2, nRow2, rMark ); // last row
} }
break; break;
case FID_FILL_TO_RIGHT: // Fuellen links/rechts case FID_FILL_TO_RIGHT: // fill to left / right
case FID_FILL_TO_LEFT: // mind. 2 Spalten markiert? case FID_FILL_TO_LEFT: // are at least 2 columns marked?
bDisable = (!bSimpleArea) || (nCol1 == nCol2); bDisable = (!bSimpleArea) || (nCol1 == nCol2);
if ( !bDisable && bEditable ) if ( !bDisable && bEditable )
{ // Matrix nicht zerreissen { // Matrix nicht zerreissen
if ( nWhich == FID_FILL_TO_RIGHT ) if ( nWhich == FID_FILL_TO_RIGHT )
bDisable = pDoc->HasSelectedBlockMatrixFragment( bDisable = pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow1, nCol1, nRow2, rMark ); // erste Spalte nCol1, nRow1, nCol1, nRow2, rMark ); // first column
else else
bDisable = pDoc->HasSelectedBlockMatrixFragment( bDisable = pDoc->HasSelectedBlockMatrixFragment(
nCol2, nRow1, nCol2, nRow2, rMark ); // letzte Spalte nCol2, nRow1, nCol2, nRow2, rMark ); // last column
} }
break; break;
case FID_FILL_SERIES: // Block fuellen case FID_FILL_SERIES: // fill block
case SID_OPENDLG_TABOP: // Mehrfachoperationen, mind. 2 Zellen markiert? case SID_OPENDLG_TABOP: // multiple-cell operations, are at least 2 cells marked?
if (pDoc->GetChangeTrack()!=NULL &&nWhich ==SID_OPENDLG_TABOP) if (pDoc->GetChangeTrack()!=NULL &&nWhich ==SID_OPENDLG_TABOP)
bDisable = sal_True; bDisable = sal_True;
else else
bDisable = (!bSimpleArea) || (nCol1 == nCol2 && nRow1 == nRow2); bDisable = (!bSimpleArea) || (nCol1 == nCol2 && nRow1 == nRow2);
if ( !bDisable && bEditable && nWhich == FID_FILL_SERIES ) if ( !bDisable && bEditable && nWhich == FID_FILL_SERIES )
{ // Matrix nicht zerreissen { // do not damage matrix
bDisable = pDoc->HasSelectedBlockMatrixFragment( bDisable = pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow1, nCol2, nRow1, rMark ) // erste Zeile nCol1, nRow1, nCol2, nRow1, rMark ) // first row
|| pDoc->HasSelectedBlockMatrixFragment( || pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow2, nCol2, nRow2, rMark ) // letzte Zeile nCol1, nRow2, nCol2, nRow2, rMark ) // last row
|| pDoc->HasSelectedBlockMatrixFragment( || pDoc->HasSelectedBlockMatrixFragment(
nCol1, nRow1, nCol1, nRow2, rMark ) // erste Spalte nCol1, nRow1, nCol1, nRow2, rMark ) // first column
|| pDoc->HasSelectedBlockMatrixFragment( || pDoc->HasSelectedBlockMatrixFragment(
nCol2, nRow1, nCol2, nRow2, rMark ); // letzte Spalte nCol2, nRow1, nCol2, nRow2, rMark ); // last column
} }
break; break;
case SID_CUT: // Ausschneiden, case SID_CUT: // cut
case FID_INS_CELL: // Zellen einfuegen, nur einf. Selektion case FID_INS_CELL: // insert cells, just simple selection
bDisable = (!bSimpleArea); bDisable = (!bSimpleArea);
break; break;
...@@ -203,16 +203,16 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) ...@@ -203,16 +203,16 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
bDisable = (!bSimpleArea) || GetViewData()->SimpleRowMarked(); bDisable = (!bSimpleArea) || GetViewData()->SimpleRowMarked();
break; break;
case SID_COPY: // Kopieren case SID_COPY: // copy
// nur wegen Matrix nicht editierbar? Matrix nicht zerreissen // not editable because of matrix only? Do not damage matrix
//! schlaegt nicht zu, wenn geschuetzt UND Matrix, aber damit //! is not called, when protected AND matrix, we will have
//! muss man leben.. wird in Copy-Routine abgefangen, sonst //! to live with this... is caught in Copy-Routine, otherwise
//! muesste hier nochmal Aufwand getrieben werden //! work is to be done once more
if ( !(!bEditable && bOnlyNotBecauseOfMatrix) ) if ( !(!bEditable && bOnlyNotBecauseOfMatrix) )
bNeedEdit = false; // erlaubt, wenn geschuetzt/ReadOnly bNeedEdit = false; // allowed when protected/ReadOnly
break; break;
case SID_AUTOFORMAT: // Autoformat, mind. 3x3 selektiert case SID_AUTOFORMAT: // Autoformat, at least 3x3 selected
bDisable = (!bSimpleArea) bDisable = (!bSimpleArea)
|| ((nCol2 - nCol1) < 2) || ((nRow2 - nRow1) < 2); || ((nCol2 - nCol1) < 2) || ((nRow2 - nRow1) < 2);
break; break;
...@@ -234,7 +234,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) ...@@ -234,7 +234,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
case SID_CELL_FORMAT_RESET : case SID_CELL_FORMAT_RESET :
case FID_CELL_FORMAT : case FID_CELL_FORMAT :
case SID_ENABLE_HYPHENATION : case SID_ENABLE_HYPHENATION :
// nur wegen Matrix nicht editierbar? Attribute trotzdem ok // not editable because of matrix only? Attribute ok nonetheless
if ( !bEditable && bOnlyNotBecauseOfMatrix ) if ( !bEditable && bOnlyNotBecauseOfMatrix )
bNeedEdit = false; bNeedEdit = false;
break; break;
...@@ -269,7 +269,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) ...@@ -269,7 +269,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
} }
} }
// Funktionen, die je nach Cursorposition disabled sind // functionen, disabled depending on cursor position
// Default: // Default:
// SID_INSERT_POSTIT, SID_CHARMAP, SID_OPENDLG_FUNCTION // SID_INSERT_POSTIT, SID_CHARMAP, SID_OPENDLG_FUNCTION
...@@ -285,7 +285,7 @@ void ScCellShell::GetCellState( SfxItemSet& rSet ) ...@@ -285,7 +285,7 @@ void ScCellShell::GetCellState( SfxItemSet& rSet )
while ( nWhich ) while ( nWhich )
{ {
sal_Bool bDisable = false; sal_Bool bDisable = false;
sal_Bool bNeedEdit = sal_True; // muss Cursorposition editierbar sein? sal_Bool bNeedEdit = sal_True; // need cursor position be editable?
switch ( nWhich ) switch ( nWhich )
{ {
case SID_THESAURUS: case SID_THESAURUS:
...@@ -400,7 +400,7 @@ void ScCellShell::GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats ) ...@@ -400,7 +400,7 @@ void ScCellShell::GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats )
lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE ); lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE );
} }
// Einfuegen, Inhalte einfuegen // insert, insert contents
sal_Bool lcl_IsCellPastePossible( const TransferableDataHelper& rData ) sal_Bool lcl_IsCellPastePossible( const TransferableDataHelper& rData )
{ {
...@@ -510,7 +510,7 @@ void ScCellShell::GetClipState( SfxItemSet& rSet ) ...@@ -510,7 +510,7 @@ void ScCellShell::GetClipState( SfxItemSet& rSet )
bool bDisable = !bPastePossible; bool bDisable = !bPastePossible;
// Zellschutz / Multiselektion // cell protection / multiple selection
if (!bDisable) if (!bDisable)
{ {
...@@ -648,16 +648,16 @@ void ScCellShell::GetState(SfxItemSet &rSet) ...@@ -648,16 +648,16 @@ void ScCellShell::GetState(SfxItemSet &rSet)
case SID_STATUS_SELMODE: case SID_STATUS_SELMODE:
{ {
/* 0: STD Click hebt Sel auf /* 0: STD Click cancels Sel
* 1: ER Click erweitert Selektion * 1: ER Click extends selection
* 2: ERG Click definiert weitere Selektion * 2: ERG Click defines further selection
*/ */
sal_uInt16 nMode = pTabViewShell->GetLockedModifiers(); sal_uInt16 nMode = pTabViewShell->GetLockedModifiers();
switch ( nMode ) switch ( nMode )
{ {
case KEY_SHIFT: nMode = 1; break; case KEY_SHIFT: nMode = 1; break;
case KEY_MOD1: nMode = 2; break; // Control-Taste case KEY_MOD1: nMode = 2; break; // Control-key
case 0: case 0:
default: default:
nMode = 0; nMode = 0;
...@@ -679,14 +679,14 @@ void ScCellShell::GetState(SfxItemSet &rSet) ...@@ -679,14 +679,14 @@ void ScCellShell::GetState(SfxItemSet &rSet)
} }
break; break;
// Summe etc. mit Datum/Zeit/Fehler/Pos&Groesse zusammengefasst // calculations etc. with date/time/Fail/position&size together
// #i34458# The SfxStringItem belongs only into SID_TABLE_CELL. It no longer has to be // #i34458# The SfxStringItem belongs only into SID_TABLE_CELL. It no longer has to be
// duplicated in SID_ATTR_POSITION or SID_ATTR_SIZE for SvxPosSizeStatusBarControl. // duplicated in SID_ATTR_POSITION or SID_ATTR_SIZE for SvxPosSizeStatusBarControl.
case SID_TABLE_CELL: case SID_TABLE_CELL:
{ {
// Testen, ob Fehler unter Cursor // Test, if error under cursor
// (nicht pDoc->GetErrCode, um keine zirkulaeren Referenzen auszuloesen) // (not pDoc->GetErrCode, to avoid erasing circular references)
// In interpreter may happen via rescheduled Basic // In interpreter may happen via rescheduled Basic
if ( pDoc->IsInInterpreter() ) if ( pDoc->IsInInterpreter() )
...@@ -883,7 +883,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) ...@@ -883,7 +883,7 @@ void ScCellShell::GetState(SfxItemSet &rSet)
if ( pDocSh->IsReadOnly()) if ( pDocSh->IsReadOnly())
rSet.DisableItem( nWhich ); rSet.DisableItem( nWhich );
//XXX Disablen wenn nicht eindeutig //XXX disable if not conclusive
} }
break; break;
...@@ -892,7 +892,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) ...@@ -892,7 +892,7 @@ void ScCellShell::GetState(SfxItemSet &rSet)
//GetViewData()->GetCurY(); //GetViewData()->GetCurY();
SfxUInt16Item aHeightItem( FID_ROW_HEIGHT, pDoc->GetRowHeight( nPosY , nTab) ); SfxUInt16Item aHeightItem( FID_ROW_HEIGHT, pDoc->GetRowHeight( nPosY , nTab) );
rSet.Put( aHeightItem ); rSet.Put( aHeightItem );
//XXX Disablen wenn nicht eindeutig //XXX disable if not conclusive
if ( pDocSh->IsReadOnly()) if ( pDocSh->IsReadOnly())
rSet.DisableItem( nWhich ); rSet.DisableItem( nWhich );
} }
...@@ -906,8 +906,8 @@ void ScCellShell::GetState(SfxItemSet &rSet) ...@@ -906,8 +906,8 @@ void ScCellShell::GetState(SfxItemSet &rSet)
OSL_FAIL( "Old update method. Use ScTabViewShell::UpdateInputHandler()." ); OSL_FAIL( "Old update method. Use ScTabViewShell::UpdateInputHandler()." );
break; break;
case SID_SCENARIOS: // Szenarios: case SID_SCENARIOS: // scenarios:
if (!(rMark.IsMarked() || rMark.IsMultiMarked())) // nur, wenn etwas selektiert if (!(rMark.IsMarked() || rMark.IsMultiMarked())) // only, if something selected
rSet.DisableItem( nWhich ); rSet.DisableItem( nWhich );
break; break;
......
...@@ -136,7 +136,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -136,7 +136,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox
// Eingabe beenden // finish input
if ( GetViewData()->HasEditView( GetViewData()->GetActivePart() ) ) if ( GetViewData()->HasEditView( GetViewData()->GetActivePart() ) )
{ {
switch ( nSlot ) switch ( nSlot )
...@@ -159,7 +159,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -159,7 +159,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
switch ( nSlot ) switch ( nSlot )
{ {
// //
// Einfuegen / Loeschen von Zellen / Zeilen / Spalten // insert / delete cells / rows / columns
// //
case FID_INS_ROW: case FID_INS_ROW:
...@@ -337,7 +337,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -337,7 +337,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
break; break;
// //
// Inhalte von Zellen loeschen // delete contents from cells
// //
case SID_DELETE_CONTENTS: case SID_DELETE_CONTENTS:
...@@ -364,9 +364,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -364,9 +364,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
switch( aFlags.GetChar(i) ) switch( aFlags.GetChar(i) )
{ {
case 'A': // Alle case 'A': // all
nFlags |= IDF_ALL; nFlags |= IDF_ALL;
bCont = false; // nicht mehr weitermachen! bCont = false; // don't continue!
break; break;
case 'S': nFlags |= IDF_STRING; break; case 'S': nFlags |= IDF_STRING; break;
case 'V': nFlags |= IDF_VALUE; break; case 'V': nFlags |= IDF_VALUE; break;
...@@ -433,7 +433,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -433,7 +433,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
break; break;
// //
// Ausfuellen... // fill...
// //
case FID_FILL_TO_BOTTOM: case FID_FILL_TO_BOTTOM:
...@@ -478,9 +478,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -478,9 +478,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
switch( aFlags.GetChar(i) ) switch( aFlags.GetChar(i) )
{ {
case 'A': // Alle case 'A': // all
nFlags |= IDF_ALL; nFlags |= IDF_ALL;
bCont = false; // nicht mehr weitermachen! bCont = false; // don't continue!
break; break;
case 'S': nFlags |= IDF_STRING; break; case 'S': nFlags |= IDF_STRING; break;
case 'V': nFlags |= IDF_VALUE; break; case 'V': nFlags |= IDF_VALUE; break;
...@@ -508,7 +508,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -508,7 +508,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
nFunction = pDlg->GetFormulaCmdBits(); nFunction = pDlg->GetFormulaCmdBits();
bSkipEmpty = pDlg->IsSkipEmptyCells(); bSkipEmpty = pDlg->IsSkipEmptyCells();
bAsLink = pDlg->IsLink(); bAsLink = pDlg->IsLink();
// MoveMode gibt's bei Tabelle fuellen nicht // there is no MoveMode with fill tabs
} }
delete pDlg; delete pDlg;
} }
...@@ -643,9 +643,8 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -643,9 +643,8 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
bDoIt = sal_True; bDoIt = sal_True;
} }
else // (pReqArgs == NULL) => Dialog hochziehen else // (pReqArgs == NULL) => raise Dialog
{ {
//
sal_uInt32 nPrivFormat; sal_uInt32 nPrivFormat;
CellType eCellType; CellType eCellType;
pDoc->GetNumberFormat( nStartCol, nStartRow, nStartTab, nPrivFormat ); pDoc->GetNumberFormat( nStartCol, nStartRow, nStartTab, nPrivFormat );
...@@ -653,7 +652,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -653,7 +652,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
const SvNumberformat* pPrivEntry = pFormatter->GetEntry( nPrivFormat ); const SvNumberformat* pPrivEntry = pFormatter->GetEntry( nPrivFormat );
if (!pPrivEntry) if (!pPrivEntry)
{ {
OSL_FAIL("Zahlformat nicht gefunden !!!"); OSL_FAIL("Numberformat not found !!!");
} }
else else
{ {
...@@ -671,7 +670,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -671,7 +670,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
// //
String aStartStr; String aStartStr;
// Startwert nur vorbelegen, wenn nur 1 Zeile oder Spalte: // suggest default Startvalue only, when just 1 row or column
if ( nStartCol == nEndCol || nStartRow == nEndRow ) if ( nStartCol == nEndCol || nStartRow == nEndRow )
{ {
double fInputEndVal = 0.0; double fInputEndVal = 0.0;
...@@ -765,7 +764,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -765,7 +764,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if( bDoIt ) if( bDoIt )
{ {
//nScFillModeMouseModifier = 0; // kein Ctrl/Copy //nScFillModeMouseModifier = 0; // no Ctrl/Copy
pTabViewShell->FillSeries( eFillDir, eFillCmd, eFillDateCmd, fStartVal, fIncVal, fMaxVal ); pTabViewShell->FillSeries( eFillDir, eFillCmd, eFillDateCmd, fStartVal, fIncVal, fMaxVal );
if( ! rReq.IsAPI() ) if( ! rReq.IsAPI() )
...@@ -854,9 +853,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -854,9 +853,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
GetViewData()->GetSimpleArea( nStartCol,nStartRow,nStartTab, GetViewData()->GetSimpleArea( nStartCol,nStartRow,nStartTab,
nEndCol,nEndRow,nEndTab ); nEndCol,nEndRow,nEndTab );
} }
else // Aufruf per Maus else // call via mouse
{ {
// nicht innerhalb einer zusammengefassten Zelle // not in a merged cell
if ( nStartCol == nEndCol && nStartRow == nEndRow ) if ( nStartCol == nEndCol && nStartRow == nEndRow )
{ {
...@@ -926,14 +925,14 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -926,14 +925,14 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
else else
{ {
OSL_FAIL( "Richtung nicht eindeutig fuer AutoFill" ); OSL_FAIL( "Direction not unique for autofill" );
} }
} }
} }
break; break;
// //
// Gliederung (Outlines) // disposal (Outlines)
// SID_AUTO_OUTLINE, SID_OUTLINE_DELETEALL in Execute (in docsh.idl) // SID_AUTO_OUTLINE, SID_OUTLINE_DELETEALL in Execute (in docsh.idl)
// //
...@@ -1042,7 +1041,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1042,7 +1041,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
} }
} }
else // Dialog, wenn nicht ganze Zeilen/Spalten markiert else // Dialog, when not whole rows/columns are marked
{ {
if ( GetViewData()->SimpleColMarked() && !GetViewData()->SimpleRowMarked() ) if ( GetViewData()->SimpleColMarked() && !GetViewData()->SimpleRowMarked() )
bColumns = sal_True; bColumns = sal_True;
...@@ -1104,7 +1103,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1104,7 +1103,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
} }
} }
else // Dialog nur, wenn Aufheben fuer Zeilen und Spalten moeglich else // Dialog only when removal for rows and columns is possible
{ {
sal_Bool bColPoss, bRowPoss; sal_Bool bColPoss, bRowPoss;
pTabViewShell->TestRemoveOutline( bColPoss, bRowPoss ); pTabViewShell->TestRemoveOutline( bColPoss, bRowPoss );
...@@ -1147,7 +1146,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1147,7 +1146,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
// //
case SID_COPY: // fuer Grafiken in DrawShell case SID_COPY: // for graphs in DrawShell
{ {
WaitObject aWait( GetViewData()->GetDialogParent() ); WaitObject aWait( GetViewData()->GetDialogParent() );
pTabViewShell->CopyToClip( NULL, false, false, true ); pTabViewShell->CopyToClip( NULL, false, false, true );
...@@ -1158,7 +1157,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1158,7 +1157,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
break; break;
case SID_CUT: // fuer Grafiken in DrawShell case SID_CUT: // for graphs in DrawShell
{ {
WaitObject aWait( GetViewData()->GetDialogParent() ); WaitObject aWait( GetViewData()->GetDialogParent() );
pTabViewShell->CutToClip( NULL, true ); pTabViewShell->CutToClip( NULL, true );
...@@ -1243,9 +1242,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1243,9 +1242,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
switch( aFlags.GetChar(i) ) switch( aFlags.GetChar(i) )
{ {
case 'A': // Alle case 'A': // all
nFlags |= IDF_ALL; nFlags |= IDF_ALL;
bCont = false; // nicht mehr weitermachen! bCont = false; // don't continue!
break; break;
case 'S': nFlags |= IDF_STRING; break; case 'S': nFlags |= IDF_STRING; break;
case 'V': nFlags |= IDF_VALUE; break; case 'V': nFlags |= IDF_VALUE; break;
...@@ -1284,7 +1283,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1284,7 +1283,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
RID_SCDLG_INSCONT); RID_SCDLG_INSCONT);
OSL_ENSURE(pDlg, "Dialog create fail!"); OSL_ENSURE(pDlg, "Dialog create fail!");
pDlg->SetOtherDoc( bOtherDoc ); pDlg->SetOtherDoc( bOtherDoc );
// bei ChangeTrack MoveMode disablen // if ChangeTrack MoveMode disable
pDlg->SetChangeTrack( pDoc->GetChangeTrack() != NULL ); pDlg->SetChangeTrack( pDoc->GetChangeTrack() != NULL );
// cut/move references may disable shift // cut/move references may disable shift
// directions if source and destination ranges intersect // directions if source and destination ranges intersect
...@@ -1335,7 +1334,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1335,7 +1334,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
WaitObject aWait( GetViewData()->GetDialogParent() ); WaitObject aWait( GetViewData()->GetDialogParent() );
if ( bAsLink && bOtherDoc ) if ( bAsLink && bOtherDoc )
pTabViewShell->PasteFromSystem(SOT_FORMATSTR_ID_LINK); // DDE einfuegen pTabViewShell->PasteFromSystem(SOT_FORMATSTR_ID_LINK); // DDE insert
else else
pTabViewShell->PasteFromClip( nFlags, pOwnClip->GetDocument(), pTabViewShell->PasteFromClip( nFlags, pOwnClip->GetDocument(),
nFunction, bSkipEmpty, bTranspose, bAsLink, nFunction, bSkipEmpty, bTranspose, bAsLink,
...@@ -1375,12 +1374,12 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1375,12 +1374,12 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
break; break;
case SID_PASTE_SPECIAL: case SID_PASTE_SPECIAL:
// Unterscheidung, ob eigene oder fremde Daten, // differentiate between own cell data and draw objects/external data
// dadurch FID_INS_CELL_CONTENTS ueberfluessig // this makes FID_INS_CELL_CONTENTS superfluous
{ {
Window* pWin = GetViewData()->GetActiveWin(); Window* pWin = GetViewData()->GetActiveWin();
// Clipboard-ID als Parameter angegeben? Basic "PasteSpecial(Format)" // Clipboard-ID given as parameter? Basic "PasteSpecial(Format)"
const SfxPoolItem* pItem=NULL; const SfxPoolItem* pItem=NULL;
if ( pReqArgs && if ( pReqArgs &&
pReqArgs->GetItemState(nSlot, sal_True, &pItem) == SFX_ITEM_SET && pReqArgs->GetItemState(nSlot, sal_True, &pItem) == SFX_ITEM_SET &&
...@@ -1394,12 +1393,12 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1394,12 +1393,12 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if ( bDraw && nFormat == SOT_FORMATSTR_ID_EMBED_SOURCE ) if ( bDraw && nFormat == SOT_FORMATSTR_ID_EMBED_SOURCE )
pTabViewShell->PasteDraw(); pTabViewShell->PasteDraw();
else else
bRet = pTabViewShell->PasteFromSystem(nFormat, sal_True); // TRUE: keine Fehlermeldungen bRet = pTabViewShell->PasteFromSystem(nFormat, sal_True); // TRUE: no error messages
} }
if ( bRet ) if ( bRet )
{ {
rReq.SetReturnValue(SfxInt16Item(nSlot, bRet)); // 1 = Erfolg, 0 = Fehler rReq.SetReturnValue(SfxInt16Item(nSlot, bRet)); // 1 = success, 0 = fail
rReq.Done(); rReq.Done();
} }
else else
...@@ -1413,9 +1412,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1413,9 +1412,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
rReq.SetSlot( FID_INS_CELL_CONTENTS ); rReq.SetSlot( FID_INS_CELL_CONTENTS );
ExecuteSlot( rReq, GetInterface() ); ExecuteSlot( rReq, GetInterface() );
rReq.SetReturnValue(SfxInt16Item(nSlot, 1)); // 1 = Erfolg rReq.SetReturnValue(SfxInt16Item(nSlot, 1)); // 1 = success
} }
else // Zeichenobjekte oder fremde Daten else // draw objects or external data
{ {
sal_Bool bDraw = ( ScDrawTransferObj::GetOwnClipboard( pWin ) != NULL ); sal_Bool bDraw = ( ScDrawTransferObj::GetOwnClipboard( pWin ) != NULL );
...@@ -1451,13 +1450,13 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1451,13 +1450,13 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
else else
pTabViewShell->PasteFromSystem(nFormat); pTabViewShell->PasteFromSystem(nFormat);
} }
rReq.SetReturnValue(SfxInt16Item(nSlot, 1)); // 1 = Erfolg rReq.SetReturnValue(SfxInt16Item(nSlot, 1)); // 1 = success
rReq.AppendItem( SfxUInt32Item( nSlot, nFormat ) ); rReq.AppendItem( SfxUInt32Item( nSlot, nFormat ) );
rReq.Done(); rReq.Done();
} }
else else
{ {
rReq.SetReturnValue(SfxInt16Item(nSlot, 0)); // 0 = Fehler rReq.SetReturnValue(SfxInt16Item(nSlot, 0)); // 0 = fail
rReq.Ignore(); rReq.Ignore();
} }
...@@ -1465,7 +1464,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1465,7 +1464,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
} }
else else
rReq.SetReturnValue(SfxInt16Item(nSlot, 0)); // 0 = Fehler rReq.SetReturnValue(SfxInt16Item(nSlot, 0)); // 0 = fail
} }
} }
} }
...@@ -1473,7 +1472,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1473,7 +1472,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
break; break;
// //
// sonstiges // other
// //
case FID_INS_ROWBRK: case FID_INS_ROWBRK:
...@@ -1732,7 +1731,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1732,7 +1731,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if (pTabViewShell->InsertName( aName, aSymbol, aAttrib )) if (pTabViewShell->InsertName( aName, aSymbol, aAttrib ))
rReq.Done(); rReq.Done();
else else
SbxBase::SetError( SbxERR_BAD_PARAMETER ); // Basic-Fehler SbxBase::SetError( SbxERR_BAD_PARAMETER ); // Basic-error
} }
} }
else else
...@@ -1825,11 +1824,11 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1825,11 +1824,11 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
ScInputHandler* pHdl = pScMod->GetInputHdl( pTabViewShell ); ScInputHandler* pHdl = pScMod->GetInputHdl( pTabViewShell );
if (pHdl) if (pHdl)
{ {
// das "=" per Key-Event, schaltet in den Eingabe-Modus // "=" in KeyEvent, switches to input-mode
pScMod->InputKeyEvent( KeyEvent('=',KeyCode()) ); pScMod->InputKeyEvent( KeyEvent('=',KeyCode()) );
String aName = pDlg->GetSelectedName(); String aName = pDlg->GetSelectedName();
pHdl->InsertFunction( aName, false ); // ohne "()" pHdl->InsertFunction( aName, false ); // without "()"
} }
} }
break; break;
...@@ -1843,7 +1842,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1843,7 +1842,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
{ {
const SfxStringItem& rTextItem = (const SfxStringItem&)pReqArgs->Get( SID_RANGE_NOTETEXT ); const SfxStringItem& rTextItem = (const SfxStringItem&)pReqArgs->Get( SID_RANGE_NOTETEXT );
// immer Cursorposition // always cursor position
ScAddress aPos( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() ); ScAddress aPos( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
pTabViewShell->SetNoteText( aPos, rTextItem.GetValue() ); pTabViewShell->SetNoteText( aPos, rTextItem.GetValue() );
rReq.Done(); rReq.Done();
...@@ -1863,7 +1862,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1863,7 +1862,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
} }
else else
{ {
pTabViewShell->EditNote(); // Zeichenobjekt zum Editieren pTabViewShell->EditNote(); // note object to edit
} }
break; break;
...@@ -1978,7 +1977,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1978,7 +1977,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if( pItem ) if( pItem )
{ {
pTabViewShell->UseScenario( pItem->GetValue() ); pTabViewShell->UseScenario( pItem->GetValue() );
//! wofuer soll der Return-Wert gut sein?!?! //! why should the return value be valid?!?!
rReq.SetReturnValue( SfxStringItem( SID_SELECT_SCENARIO, pItem->GetValue() ) ); rReq.SetReturnValue( SfxStringItem( SID_SELECT_SCENARIO, pItem->GetValue() ) );
rReq.Done(); rReq.Done();
} }
...@@ -2016,8 +2015,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -2016,8 +2015,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
const SfxPoolItem* pItem; const SfxPoolItem* pItem;
if( IS_AVAILABLE( FID_CONDITIONAL_FORMAT, &pItem ) ) if( IS_AVAILABLE( FID_CONDITIONAL_FORMAT, &pItem ) )
{ {
// Wenn RefInput auf andere Tabelle als Datentabelle umgeschaltet // when RefInput has switched to other tabs as data table, switch back
// hat wieder zurueckschalten:
if ( GetViewData()->GetTabNo() != GetViewData()->GetRefTabNo() ) if ( GetViewData()->GetTabNo() != GetViewData()->GetRefTabNo() )
{ {
pTabViewShell->SetTabNo( GetViewData()->GetRefTabNo() ); pTabViewShell->SetTabNo( GetViewData()->GetRefTabNo() );
...@@ -2080,7 +2078,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -2080,7 +2078,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
// //
default: default:
OSL_FAIL("falscher Slot bei ExecuteEdit"); OSL_FAIL("incorrect slot in ExecuteEdit");
break; break;
} }
} }
......
...@@ -291,7 +291,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -291,7 +291,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
ScDBData* pDBData = pTabViewShell->GetDBData(sal_True,SC_DB_OLD); ScDBData* pDBData = pTabViewShell->GetDBData(sal_True,SC_DB_OLD);
if (pDBData) if (pDBData)
{ {
// Import wiederholen wie SID_REIMPORT_DATA // repeat import like SID_REIMPORT_DATA
sal_Bool bContinue = sal_True; sal_Bool bContinue = sal_True;
ScImportParam aImportParam; ScImportParam aImportParam;
...@@ -301,21 +301,21 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -301,21 +301,21 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
bContinue = pTabViewShell->ImportData( aImportParam ); bContinue = pTabViewShell->ImportData( aImportParam );
pDBData->SetImportParam( aImportParam ); //! Undo ?? pDBData->SetImportParam( aImportParam ); //! Undo ??
// markieren (Groesse kann sich geaendert haben) // mark (size may have been changed)
ScRange aNewRange; ScRange aNewRange;
pDBData->GetArea(aNewRange); pDBData->GetArea(aNewRange);
pTabViewShell->MarkRange(aNewRange); pTabViewShell->MarkRange(aNewRange);
} }
if ( bContinue ) // Fehler beim Import -> Abbruch if ( bContinue ) // fail at import -> break
{ {
// interne Operationen, wenn welche gespeichert // internal operations, when any stored
if ( pDBData->HasQueryParam() || pDBData->HasSortParam() || if ( pDBData->HasQueryParam() || pDBData->HasSortParam() ||
pDBData->HasSubTotalParam() ) pDBData->HasSubTotalParam() )
pTabViewShell->RepeatDB(); pTabViewShell->RepeatDB();
// Pivottabellen die den Bereich als Quelldaten haben // pivot tables that have the range as data source
ScRange aRange; ScRange aRange;
pDBData->GetArea(aRange); pDBData->GetArea(aRange);
...@@ -391,7 +391,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -391,7 +391,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
aArgSet.Put( ScSortItem( SCITEM_SORTDATA, GetViewData(), &aSortParam ) ); aArgSet.Put( ScSortItem( SCITEM_SORTDATA, GetViewData(), &aSortParam ) );
pTabViewShell->UISort( aSortParam ); // Teilergebnisse bei Bedarf neu pTabViewShell->UISort( aSortParam ); // subtotal when needed new
rReq.Done(); rReq.Done();
} }
...@@ -422,7 +422,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -422,7 +422,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
if( bHasHeader ) if( bHasHeader )
aSortParam.bHasHeader = bHasHeader; aSortParam.bHasHeader = bHasHeader;
aSortParam.bInplace = sal_True; // von Basic immer aSortParam.bInplace = sal_True; // from Basic always
const SfxPoolItem* pItem; const SfxPoolItem* pItem;
if ( pArgs->GetItemState( SID_SORT_BYROW, sal_True, &pItem ) == SFX_ITEM_SET ) if ( pArgs->GetItemState( SID_SORT_BYROW, sal_True, &pItem ) == SFX_ITEM_SET )
...@@ -440,7 +440,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -440,7 +440,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
sal_uInt16 nUserIndex = ((const SfxUInt16Item*)pItem)->GetValue(); sal_uInt16 nUserIndex = ((const SfxUInt16Item*)pItem)->GetValue();
aSortParam.bUserDef = ( nUserIndex != 0 ); aSortParam.bUserDef = ( nUserIndex != 0 );
if ( nUserIndex ) if ( nUserIndex )
aSortParam.nUserIndex = nUserIndex - 1; // Basic: 1-basiert aSortParam.nUserIndex = nUserIndex - 1; // Basic: 1-based
} }
SCCOLROW nField0 = 0; SCCOLROW nField0 = 0;
...@@ -465,7 +465,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -465,7 +465,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
if ( pArgs->GetItemState( FN_PARAM_6, sal_True, &pItem ) == SFX_ITEM_SET ) if ( pArgs->GetItemState( FN_PARAM_6, sal_True, &pItem ) == SFX_ITEM_SET )
aSortParam.bAscending[2] = ((const SfxBoolItem*)pItem)->GetValue(); aSortParam.bAscending[2] = ((const SfxBoolItem*)pItem)->GetValue();
// Teilergebnisse bei Bedarf neu // subtotal when needed new
pTabViewShell->UISort( aSortParam ); pTabViewShell->UISort( aSortParam );
rReq.Done(); rReq.Done();
} }
...@@ -504,7 +504,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -504,7 +504,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
const ScSortParam& rOutParam = ((const ScSortItem&) const ScSortParam& rOutParam = ((const ScSortItem&)
pOutSet->Get( SCITEM_SORTDATA )).GetSortData(); pOutSet->Get( SCITEM_SORTDATA )).GetSortData();
// Teilergebnisse bei Bedarf neu // subtotal when needed new
pTabViewShell->UISort( rOutParam ); pTabViewShell->UISort( rOutParam );
if ( rOutParam.bInplace ) if ( rOutParam.bInplace )
...@@ -661,8 +662,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -661,8 +662,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
SCTAB nCurTab = GetViewData()->GetTabNo(); SCTAB nCurTab = GetViewData()->GetTabNo();
SCTAB nRefTab = GetViewData()->GetRefTabNo(); SCTAB nRefTab = GetViewData()->GetRefTabNo();
// Wenn RefInput auf andere Tabelle als Datentabelle umgeschaltet // If RefInput switched to a different sheet from the data sheet,
// hat wieder zurueckschalten: // switch back:
if ( nCurTab != nRefTab ) if ( nCurTab != nRefTab )
{ {
...@@ -761,7 +762,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -761,7 +762,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
const SfxItemSet* pArgs = rReq.GetArgs(); const SfxItemSet* pArgs = rReq.GetArgs();
if ( pArgs ) if ( pArgs )
{ {
OSL_FAIL("spaeter..."); OSL_FAIL("later...");
} }
else else
{ {
...@@ -902,13 +903,13 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ...@@ -902,13 +903,13 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
aData.SetIgnoreBlank( bBlank ); aData.SetIgnoreBlank( bBlank );
aData.SetListType( nListType ); aData.SetListType( nListType );
aData.SetInput(aHelpTitle, aHelpText); // sets bShowInput to TRUE aData.SetInput(aHelpTitle, aHelpText); // sets bShowInput to TRUE
if (!bShowHelp) if (!bShowHelp)
aData.ResetInput(); // reset only bShowInput aData.ResetInput(); // reset only bShowInput
aData.SetError(aErrTitle, aErrText, eErrStyle); // sets bShowError to TRUE aData.SetError(aErrTitle, aErrText, eErrStyle); // sets bShowError to TRUE
if (!bShowError) if (!bShowError)
aData.ResetError(); // reset only bShowError aData.ResetError(); // reset only bShowError
pTabViewShell->SetValidation( aData ); pTabViewShell->SetValidation( aData );
rReq.Done( *pOutSet ); rReq.Done( *pOutSet );
...@@ -995,8 +996,8 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) ...@@ -995,8 +996,8 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
{ {
case SID_REFRESH_DBAREA: case SID_REFRESH_DBAREA:
{ {
// importierte Daten ohne Selektion // imported data without selection
// oder Filter,Sortierung,Teilergebis (auch ohne Import) // or filter,sort,subtotal (also without import)
sal_Bool bOk = false; sal_Bool bOk = false;
ScDBData* pDBData = pTabViewShell->GetDBData(false,SC_DB_OLD); ScDBData* pDBData = pTabViewShell->GetDBData(false,SC_DB_OLD);
if (pDBData && pDoc->GetChangeTrack() == NULL) if (pDBData && pDoc->GetChangeTrack() == NULL)
...@@ -1028,7 +1029,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) ...@@ -1028,7 +1029,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
break; break;
//Bei Redlining und Multiselektion Disablen //in case of Redlining and multiselection disable
case SID_SORT_ASCENDING: case SID_SORT_ASCENDING:
case SID_SORT_DESCENDING: case SID_SORT_DESCENDING:
case SCITEM_SORTDATA: case SCITEM_SORTDATA:
...@@ -1047,7 +1048,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) ...@@ -1047,7 +1048,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
case SID_REIMPORT_DATA: case SID_REIMPORT_DATA:
{ {
// nur importierte Daten ohne Selektion // only imported data without selection
ScDBData* pDBData = pTabViewShell->GetDBData(false,SC_DB_OLD); ScDBData* pDBData = pTabViewShell->GetDBData(false,SC_DB_OLD);
if (!pDBData || !pDBData->HasImportParam() || pDBData->HasImportSelection() || if (!pDBData || !pDBData->HasImportParam() || pDBData->HasImportSelection() ||
pDoc->GetChangeTrack()!=NULL) pDoc->GetChangeTrack()!=NULL)
...@@ -1068,7 +1069,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) ...@@ -1068,7 +1069,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
break; break;
case SID_SBA_BRW_INSERT: case SID_SBA_BRW_INSERT:
{ {
// SBA will ein sal_Bool-Item, damit ueberhaupt enabled // SBA wants a sal_Bool-item, enabled
sal_Bool bEnable = sal_True; sal_Bool bEnable = sal_True;
rSet.Put(SfxBoolItem(nWhich, bEnable)); rSet.Put(SfxBoolItem(nWhich, bEnable));
......
...@@ -144,10 +144,10 @@ void ScCellShell::ExecuteCursor( SfxRequest& rReq ) ...@@ -144,10 +144,10 @@ void ScCellShell::ExecuteCursor( SfxRequest& rReq )
nRTLSign = -1; nRTLSign = -1;
} }
// einmal extra, damit der Cursor bei ExecuteInputDirect nicht zuoft gemalt wird: // once extra, so that the cursor will not be painted too often with ExecuteInputDirect:
pTabViewShell->HideAllCursors(); pTabViewShell->HideAllCursors();
//OS: einmal fuer alle wird doch reichen! //OS: once for all should do, however!
pTabViewShell->ExecuteInputDirect(); pTabViewShell->ExecuteInputDirect();
switch ( nSlotId ) switch ( nSlotId )
{ {
...@@ -200,7 +200,7 @@ void ScCellShell::ExecuteCursor( SfxRequest& rReq ) ...@@ -200,7 +200,7 @@ void ScCellShell::ExecuteCursor( SfxRequest& rReq )
break; break;
default: default:
OSL_FAIL("Unbekannte Message bei ViewShell (Cursor)"); OSL_FAIL("Unknown message in ViewShell (Cursor)");
return; return;
} }
...@@ -312,8 +312,8 @@ void ScCellShell::ExecuteMove( SfxRequest& rReq ) ...@@ -312,8 +312,8 @@ void ScCellShell::ExecuteMove( SfxRequest& rReq )
pTabViewShell->SelectNextTab( -1, (nSlotId == SID_PREV_TABLE_SEL) ); pTabViewShell->SelectNextTab( -1, (nSlotId == SID_PREV_TABLE_SEL) );
break; break;
// Cursorbewegungen in Bloecken gehen nicht von Basic aus, // cursor movements in range do not originate from Basic,
// weil das ScSbxRange-Objekt bei Eingaben die Markierung veraendert // because the ScSbxRange-object changes the marking at input
case SID_NEXT_UNPROTECT: case SID_NEXT_UNPROTECT:
pTabViewShell->FindNextUnprot( false, !rReq.IsAPI() ); pTabViewShell->FindNextUnprot( false, !rReq.IsAPI() );
...@@ -386,7 +386,7 @@ void ScCellShell::ExecuteMove( SfxRequest& rReq ) ...@@ -386,7 +386,7 @@ void ScCellShell::ExecuteMove( SfxRequest& rReq )
break; break;
default: default:
OSL_FAIL("Unbekannte Message bei ViewShell (Cursor)"); OSL_FAIL("Unknown message in ViewShell (Cursor)");
return; return;
} }
...@@ -403,7 +403,7 @@ void ScCellShell::ExecutePageSel( SfxRequest& rReq ) ...@@ -403,7 +403,7 @@ void ScCellShell::ExecutePageSel( SfxRequest& rReq )
case SID_CURSORTOPOFFILE_SEL: rReq.SetSlot( SID_CURSORTOPOFFILE ); break; case SID_CURSORTOPOFFILE_SEL: rReq.SetSlot( SID_CURSORTOPOFFILE ); break;
case SID_CURSORENDOFFILE_SEL: rReq.SetSlot( SID_CURSORENDOFFILE ); break; case SID_CURSORENDOFFILE_SEL: rReq.SetSlot( SID_CURSORENDOFFILE ); break;
default: default:
OSL_FAIL("Unbekannte Message bei ViewShell (ExecutePageSel)"); OSL_FAIL("Unknown message in ViewShell (ExecutePageSel)");
return; return;
} }
rReq.AppendItem( SfxBoolItem(FN_PARAM_2, sal_True) ); rReq.AppendItem( SfxBoolItem(FN_PARAM_2, sal_True) );
...@@ -458,7 +458,7 @@ void ScCellShell::ExecutePage( SfxRequest& rReq ) ...@@ -458,7 +458,7 @@ void ScCellShell::ExecutePage( SfxRequest& rReq )
break; break;
default: default:
OSL_FAIL("Unbekannte Message bei ViewShell (ExecutePage)"); OSL_FAIL("Unknown message in ViewShell (ExecutePage)");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment