summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Viehmann <tv@beamnet.de>2014-08-27 22:38:23 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-08-28 01:40:30 -0500
commit80748411462c20d51d80eca63211285036af106c (patch)
treebdd82b53452768e9a02e0ecc48b0a360731a4167
parent1babe37e4871b47e37bef35378a5cf622948aeca (diff)
fdo#39468 Translate German comments in sc/source/ui/miscdlgs
Change-Id: I3b15d653206e7c55422a08951466916947052a24 Reviewed-on: https://gerrit.libreoffice.org/11155 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx6
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx34
-rw-r--r--sc/source/ui/miscdlgs/autofmt.cxx19
-rw-r--r--sc/source/ui/miscdlgs/crnrdlg.cxx375
-rw-r--r--sc/source/ui/miscdlgs/highred.cxx4
-rw-r--r--sc/source/ui/miscdlgs/inscodlg.cxx3
-rw-r--r--sc/source/ui/miscdlgs/instbdlg.cxx8
-rw-r--r--sc/source/ui/miscdlgs/linkarea.cxx2
-rw-r--r--sc/source/ui/miscdlgs/mtrindlg.cxx4
-rw-r--r--sc/source/ui/miscdlgs/scuiautofmt.cxx3
-rw-r--r--sc/source/ui/miscdlgs/simpref.cxx16
-rw-r--r--sc/source/ui/miscdlgs/solvrdlg.cxx8
-rw-r--r--sc/source/ui/miscdlgs/tabopdlg.cxx14
13 files changed, 100 insertions, 396 deletions
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index bfbd4f53fd5e..aa65b05f7da9 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -1786,8 +1786,8 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo)
{
sal_Int32 nPos = pInfo->aExtraString.indexOf("AcceptChgDat:");
- // Versuche, den Alignment-String "ALIGN:(...)" einzulesen; wenn
- // er nicht vorhanden ist, liegt eine "altere Version vor
+ // Try to read the alignment string "ALIGN:(...)"; if it is missing
+ // we have an old version
if ( nPos != -1 )
{
sal_Int32 n1 = pInfo->aExtraString.indexOf('(', nPos);
@@ -1796,7 +1796,7 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo)
sal_Int32 n2 = pInfo->aExtraString.indexOf(')', n1);
if ( n2 != -1 )
{
- // Alignment-String herausschneiden
+ // cut out alignment string
aStr = pInfo->aExtraString.copy(nPos, n2 - nPos + 1);
pInfo->aExtraString = pInfo->aExtraString.replaceAt(nPos, n2 - nPos + 1, "");
aStr = aStr.copy( n1-nPos+1 );
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 3e755930c139..6e1dd5c3d4ba 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -351,7 +351,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
{
if ( CanInputDone( bForced ) )
{
- if (bAccInserted) // Accelerator wieder abschalten
+ if (bAccInserted) // disable accelerator
{
Application::RemoveAccel( pAccel.get() );
bAccInserted = false;
@@ -365,7 +365,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
// restore the parent of the edit field
pRefEdit->SetParent(mpOldEditParent);
- // Fenster wieder gross
+ // the window is at the old size again
m_pWindow->SetOutputSizePixel(aOldDialogSize);
// set button parent
@@ -377,7 +377,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
if (!mbOldEditParentLayoutEnabled)
{
- // pEditCell an alte Position
+ // set pEditCell to old position
pRefEdit->SetPosSizePixel(aOldEditPos, aOldEditSize);
// set button position
@@ -387,14 +387,14 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
}
}
- // Fenstertitel anpassen
+ // Adjust window title
m_pWindow->SetText(sOldDialogText);
// set button image
if( pRefBtn )
pRefBtn->SetStartImage();
- // Alle anderen: Show();
+ // All others: Show();
for (winvec::iterator aI = m_aHiddenWidgets.begin(); aI != m_aHiddenWidgets.end(); ++aI)
{
Window *pWindow = *aI;
@@ -460,7 +460,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
//this is widget-layout-ified
if (!mbOldEditParentLayoutEnabled)
{
- // Alte Daten merken
+ // Save current state
aOldDialogSize = m_pWindow->GetOutputSizePixel();
aOldEditPos = pRefEdit->GetPosPixel();
if (pRefBtn)
@@ -474,7 +474,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
pRefBtn->SetParent(m_pWindow);
}
- // Fenstertitel anpassen
+ // Save and adjust window title
sOldDialogText = m_pWindow->GetText();
if (Window *pLabel = pRefEdit->GetLabelWidgetForShrinkMode())
{
@@ -535,7 +535,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
if (!mbOldDlgLayoutEnabled)
{
- // Edit-Feld verschieben und anpassen
+ // move and adapt edit field
Size aNewDlgSize(aOldDialogSize.Width(), aOldEditSize.Height());
Size aNewEditSize(aNewDlgSize);
long nOffset = 0;
@@ -558,7 +558,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
if( pRefBtn )
pRefBtn->SetPosPixel( Point( aOldDialogSize.Width() - pRefBtn->GetSizePixel().Width(), 0 ) );
- // Fenster verkleinern
+ // shrink window
m_pWindow->SetOutputSizePixel(aNewDlgSize);
}
@@ -617,9 +617,9 @@ bool ScFormulaReferenceHelper::DoClose( sal_uInt16 nId )
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
if ( pViewFrm && pViewFrm->HasChildWindow(FID_INPUTLINE_STATUS) )
{
- // Die Eingabezeile wird per ToolBox::Disable disabled, muss darum auch
- // per ToolBox::Enable wieder aktiviert werden (vor dem Enable des AppWindow),
- // damit die Buttons auch wieder enabled gezeichnet werden.
+ // The input row is disabled with ToolBox::Disable disabled, thus it must be
+ // reenabled with ToolBox::Enable (before the AppWindow is enabled)
+ // for the buttons to be drawn as enabled.
SfxChildWindow* pChild = pViewFrm->GetChildWindow(FID_INPUTLINE_STATUS);
if (pChild)
{
@@ -890,7 +890,7 @@ bool ScRefHandler::IsDocAllowed(SfxObjectShell* pDocSh) const // pDocSh may be
bool ScRefHandler::IsRefInputMode() const
{
- return m_rWindow.IsVisible(); // nur wer sichtbar ist kann auch Referenzen bekommen
+ return m_rWindow.IsVisible(); // references can only be input to visible windows
}
bool ScRefHandler::DoClose( sal_uInt16 nId )
@@ -911,18 +911,18 @@ void ScRefHandler::ViewShellChanged()
void ScRefHandler::AddRefEntry()
{
- // wenn nicht ueberladen, gibt es keine Mehrfach-Referenzen
+ // needs to be overloaded for multi-references
}
bool ScRefHandler::IsTableLocked() const
{
- // per Default kann bei Referenzeingabe auch die Tabelle umgeschaltet werden
+ // the default is that the sheet can be switched during while the reference is edited
return false;
}
-// RefInputStart/Done: Zoom-In (AutoHide) auf einzelnes Feld
-// (per Button oder Bewegung)
+// RefInputStart/Done: Zoom-In (AutoHide) on single field
+// (using button oder movement)
void ScRefHandler::RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton )
{
diff --git a/sc/source/ui/miscdlgs/autofmt.cxx b/sc/source/ui/miscdlgs/autofmt.cxx
index 653663f9e1c0..a66eb9ad6fcc 100644
--- a/sc/source/ui/miscdlgs/autofmt.cxx
+++ b/sc/source/ui/miscdlgs/autofmt.cxx
@@ -185,7 +185,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
if ( pCurData )
{
- // Ausgabe des Zelltextes:
+ // Emit the cell text
OUString cellString;
bool bNumFormat = pCurData->GetIncludeValueFormat();
@@ -251,7 +251,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
SvxHorJustifyItem aHorJustifyItem( SVX_HOR_JUSTIFY_STANDARD, ATTR_HOR_JUSTIFY );
SvxCellHorJustify eJustification;
- // Ausrichtung:
+ // Justification:
eJustification = mbRTL ? SVX_HOR_JUSTIFY_RIGHT : bJustify ?
(SvxCellHorJustify)(((const SvxHorJustifyItem*)pCurData->GetItem( nFmtIndex, ATTR_HOR_JUSTIFY ))->GetValue()) :
@@ -274,9 +274,8 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
if ( theMaxStrSize.Height() < aStrSize.Height() )
{
- // wenn der String in diesem Font nicht
- // in die Zelle passt, wird wieder der
- // Standard-Font genommen:
+ // if the string does not fit in the row using this font,
+ // the default font is used
aScriptedText.SetDefaultFont();
aStrSize = aScriptedText.GetTextSize();
}
@@ -303,7 +302,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
- aStrSize.Width()
- FRAME_OFFSET );
- // vertikal (immer zentrieren):
+ // vertical (always center):
aPos.Y() += (mnRowHeight - (sal_uInt16)aStrSize.Height()) / 2;
@@ -329,23 +328,23 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
break;
case SVX_HOR_JUSTIFY_STANDARD:
default:
- // Standard wird hier nicht behandelt
+ // Standard is not handled here
break;
}
}
else
{
- // Standardausrichtung:
+ // Standard justification
if ( (nCol == 0) || (nRow == 0) )
{
- // Text-Label links oder Summe linksbuendig
+ // Text label to the left or sum left adjusted
aPos.X() += FRAME_OFFSET;
}
else
{
- // Zahlen/Datum rechtsbuendig
+ // Numbers/Dates right adjusted
aPos.X() += nRightX;
}
}
diff --git a/sc/source/ui/miscdlgs/crnrdlg.cxx b/sc/source/ui/miscdlgs/crnrdlg.cxx
index ec6c4fda964d..a8496f6c0015 100644
--- a/sc/source/ui/miscdlgs/crnrdlg.cxx
+++ b/sc/source/ui/miscdlgs/crnrdlg.cxx
@@ -35,25 +35,7 @@ const sal_uLong nEntryDataDelim = 2;
// class ScColRowNameRangesDlg
-/*************************************************************************
-#* Member: ScColRowNameRangesDlg
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Konstruktor der Klasse ScColRowNameRangesDlg.
-#* Initialisieren der Klassen- Mitglieder,
-#* Uebernahme der Range- Angaben und Aufruf
-#* der eigentlichen Initialisierungsroutine
-#*
-#* Input: Sfx- Verknuepfungen
-#* Parent- Window
-#* SCViewData
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// note: some of the initialisation is done in Init
ScColRowNameRangesDlg::ScColRowNameRangesDlg( SfxBindings* pB,
SfxChildWindow* pCW,
Window* pParent,
@@ -90,40 +72,11 @@ ScColRowNameRangesDlg::ScColRowNameRangesDlg( SfxBindings* pB,
Init();
}
-/*************************************************************************
-#* Member: ~ScColRowNameRangesDlg
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Destruktor der Klasse
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
ScColRowNameRangesDlg::~ScColRowNameRangesDlg()
{
}
-/*************************************************************************
-#* Member: Init
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Initialisierungs- Routine:
-#* Umlenken der Event- Handler und einstellen der
-#* Startparameter.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// initialises event handlers and start parameters in the dialog
void ScColRowNameRangesDlg::Init()
{
pBtnOk->SetClickHdl ( LINK( this, ScColRowNameRangesDlg, OkBtnHdl ) );
@@ -185,22 +138,8 @@ void ScColRowNameRangesDlg::Init()
Range1SelectHdl( 0 );
}
-/*************************************************************************
-#* Member: SetColRowData
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: zugehoerigen Datenbereich eines Beschriftungsbereiches
-#* auf default Werte setzen und beide Referenz-Edit-Felder
-#* fuellen.
-#*
-#* Input: Einstellbereich fuer Labels
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// set data range of a labeled range to default values and set the
+// form elements for the reference
void ScColRowNameRangesDlg::SetColRowData( const ScRange& rLabelRange, bool bRef)
{
theCurData = theCurArea = rLabelRange;
@@ -210,36 +149,36 @@ void ScColRowNameRangesDlg::SetColRowData( const ScRange& rLabelRange, bool bRef
SCROW nRow1 = theCurArea.aStart.Row();
SCROW nRow2 = theCurArea.aEnd.Row();
if ( (static_cast<SCCOLROW>(nCol2 - nCol1) >= nRow2 - nRow1) || (nCol1 == 0 && nCol2 == MAXCOL) )
- { // Spaltenkoepfe und Grenzfall gesamte Tabelle
+ { // Column headers and the limiting case of the whole sheet
pBtnColHead->Check( true );
pBtnRowHead->Check( false );
if ( nRow2 == MAXROW )
{
if ( nRow1 == 0 )
- bValid = false; // Grenzfall gesamte Tabelle
+ bValid = false; // limiting case of the whole sheet
else
- { // Head unten, Data oben
+ { // Header at bottom, data above
theCurData.aStart.SetRow( 0 );
theCurData.aEnd.SetRow( nRow1 - 1 );
}
}
else
- { // Head oben, Data unten
+ { // Header at top, data below
theCurData.aStart.SetRow( nRow2 + 1 );
theCurData.aEnd.SetRow( MAXROW );
}
}
else
- { // Zeilenkoepfe
+ { // Column headers
pBtnRowHead->Check( true );
pBtnColHead->Check( false );
if ( nCol2 == MAXCOL )
- { // Head rechts, Data links
+ { // Header at the right, data to the left
theCurData.aStart.SetCol( 0 );
theCurData.aEnd.SetCol( nCol2 - 1 );
}
else
- { // Head links, Data rechts
+ { // Header at the left, data to the right
theCurData.aStart.SetCol( nCol2 + 1 );
theCurData.aEnd.SetCol( MAXCOL );
}
@@ -284,26 +223,12 @@ void ScColRowNameRangesDlg::SetColRowData( const ScRange& rLabelRange, bool bRef
}
}
-/*************************************************************************
-#* Member: AdjustColRowData
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: zugehoerigen Datenbereich eines Beschriftungsbereiches
-#* anpassen und Data-Referenz-Edit-Feld fuellen.
-#*
-#* Input: Bereich fuer Labels
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// adjust label range and set the data reference form element
void ScColRowNameRangesDlg::AdjustColRowData( const ScRange& rDataRange, bool bRef)
{
theCurData = rDataRange;
if ( pBtnColHead->IsChecked() )
- { // Datenbereich gleiche Spalten wie Koepfe
+ { // Data range is the same columns as the header
theCurData.aStart.SetCol( theCurArea.aStart.Col() );
theCurData.aEnd.SetCol( theCurArea.aEnd.Col() );
if ( theCurData.Intersects( theCurArea ) )
@@ -312,13 +237,13 @@ void ScColRowNameRangesDlg::AdjustColRowData( const ScRange& rDataRange, bool bR
SCROW nRow2 = theCurArea.aEnd.Row();
if ( nRow1 > 0
&& (theCurData.aEnd.Row() < nRow2 || nRow2 == MAXROW) )
- { // Data oben
+ { // Data above header
theCurData.aEnd.SetRow( nRow1 - 1 );
if ( theCurData.aStart.Row() > theCurData.aEnd.Row() )
theCurData.aStart.SetRow( theCurData.aEnd.Row() );
}
else
- { // Data unten
+ { // Data below header
theCurData.aStart.SetRow( nRow2 + 1 );
if ( theCurData.aStart.Row() > theCurData.aEnd.Row() )
theCurData.aEnd.SetRow( theCurData.aStart.Row() );
@@ -326,7 +251,7 @@ void ScColRowNameRangesDlg::AdjustColRowData( const ScRange& rDataRange, bool bR
}
}
else
- { // Datenbereich gleiche Zeilen wie Koepfe
+ { // Data range in the same rows as header
theCurData.aStart.SetRow( theCurArea.aStart.Row() );
theCurData.aEnd.SetRow( theCurArea.aEnd.Row() );
if ( theCurData.Intersects( theCurArea ) )
@@ -335,13 +260,13 @@ void ScColRowNameRangesDlg::AdjustColRowData( const ScRange& rDataRange, bool bR
SCCOL nCol2 = theCurArea.aEnd.Col();
if ( nCol1 > 0
&& (theCurData.aEnd.Col() < nCol2 || nCol2 == MAXCOL) )
- { // Data links
+ { // Data left of header
theCurData.aEnd.SetCol( nCol1 - 1 );
if ( theCurData.aStart.Col() > theCurData.aEnd.Col() )
theCurData.aStart.SetCol( theCurData.aEnd.Col() );
}
else
- { // Data rechts
+ { // Data right of header
theCurData.aStart.SetCol( nCol2 + 1 );
if ( theCurData.aStart.Col() > theCurData.aEnd.Col() )
theCurData.aEnd.SetCol( theCurData.aStart.Col() );
@@ -358,23 +283,8 @@ void ScColRowNameRangesDlg::AdjustColRowData( const ScRange& rDataRange, bool bR
pEdAssign2->SetSelection( Selection( SELECTION_MAX, SELECTION_MAX ) );
}
-/*************************************************************************
-#* Member: SetReference
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Uebergabe eines mit der Maus selektierten Tabellen-
-#* bereiches, der dann als neue Selektion im Referenz-
-#* Fenster angezeigt wird.
-#*
-#* Input: Bereich fuer Labels
-#* Dokumentklasse
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// Set the reference to a cell range selected with the mouse and update
+// the selection form element
void ScColRowNameRangesDlg::SetReference( const ScRange& rRef, ScDocument* /* pDoc */ )
{
if ( pEdActive )
@@ -393,39 +303,11 @@ void ScColRowNameRangesDlg::SetReference( const ScRange& rRef, ScDocument* /* pD
}
}
-/*************************************************************************
-#* Member: Close
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Schliessen des Fensters
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
bool ScColRowNameRangesDlg::Close()
{
return DoClose( ScColRowNameRangesDlgWrapper::GetChildWindowId() );
}
-/*************************************************************************
-#* Member: SetActive
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Aktivieren des Fensters
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
void ScColRowNameRangesDlg::SetActive()
{
if ( bDlgLostFocus )
@@ -445,20 +327,6 @@ void ScColRowNameRangesDlg::SetActive()
RefInputDone();
}
-/*************************************************************************
-#* Member: UpdateNames
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Aktualisieren der Namen
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
void ScColRowNameRangesDlg::UpdateNames()
{
pLbRange->SetUpdateMode( false );
@@ -468,10 +336,10 @@ void ScColRowNameRangesDlg::UpdateNames()
pEdAssign->SetText( EMPTY_OUSTRING );
size_t nCount, j;
- sal_uInt16 nPos; //@008 Hilfsvariable q eingefuegt
+ sal_uInt16 nPos; //@008 inserted auxiliary variable q
SCCOL nCol1;
- SCROW nRow1; //Erweiterung fuer Bereichsnamen
+ SCROW nRow1; //Extension for range names
SCTAB nTab1;
SCCOL nCol2;
SCROW nRow2;
@@ -496,12 +364,12 @@ void ScColRowNameRangesDlg::UpdateNames()
const ScRange aRange(ppSortArray[j]->GetRange(0));
aString = aRange.Format(SCR_ABS_3D, pDoc, aDetails);
- //@008 Hole Bereichsparameter aus Dok
+ //@008 get range parameters from document
ppSortArray[j]->GetRange(0).GetVars( nCol1, nRow1, nTab1,
nCol2, nRow2, nTab2 );
SCCOL q=nCol1+3;
if(q>nCol2) q=nCol2;
- //@008 Baue String zusammen
+ //@008 construct string
strShow = " [";
rString = pDoc->GetString(nCol1, nRow1, nTab1);
strShow += rString;
@@ -511,13 +379,13 @@ void ScColRowNameRangesDlg::UpdateNames()
rString = pDoc->GetString(i, nRow1, nTab1);
strShow += rString;
}
- if(q<nCol2) // Zu lang? Ergaenzen um ",..."
+ if(q<nCol2) // Too long? Add ",..."
{
strShow += ", ...";
}
strShow += "]";
- //@008 String einfuegen in Listbox
+ //@008 Add string to listbox
OUString aInsStr = aString;
aInsStr += strShow;
nPos = pLbRange->InsertEntry( aInsStr );
@@ -539,7 +407,7 @@ void ScColRowNameRangesDlg::UpdateNames()
const ScRange aRange(ppSortArray[j]->GetRange(0));
aString = aRange.Format(SCR_ABS_3D, pDoc, aDetails);
- //@008 Ab hier baue String fuer Zeilen
+ //@008 Build string for rows below
ppSortArray[j]->GetRange(0).GetVars( nCol1, nRow1, nTab1,
nCol2, nRow2, nTab2 );
SCROW q=nRow1+3;
@@ -571,21 +439,6 @@ void ScColRowNameRangesDlg::UpdateNames()
pLbRange->Invalidate();
}
-/*************************************************************************
-#* Member: UpdateRangeData
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Aktualisieren der Bereichsdaten
-#*
-#* Input: Bereichs-String
-#* Flag fuer Spalten
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
void ScColRowNameRangesDlg::UpdateRangeData( const ScRange& rRange, bool bColName )
{
ScRangePair* pPair = NULL;
@@ -620,21 +473,6 @@ void ScColRowNameRangesDlg::UpdateRangeData( const ScRange& rRange, bool bColNam
pRbAssign2->Enable();
}
-/*************************************************************************
-#* Member: IsRefInputMode
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Abfragefunktion fuer Referenz- Input- Mode.
-#*
-#* Input: Bereichs-String
-#* Flag fuer Spalten
-#*
-#* Output: true, wenn Referenz- Input- Mode
-#*
-#************************************************************************/
-
bool ScColRowNameRangesDlg::IsRefInputMode() const
{
return (pEdActive != NULL);
@@ -642,30 +480,16 @@ bool ScColRowNameRangesDlg::IsRefInputMode() const
// Handler:
-/*************************************************************************
-#* Handler: OkBtnHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Wird ausgeloest, wenn der OK- Button gedrueckt wurde.
-#* Hinzufuegen- Button ausloesen, und die neu einge-
-#* stellten Bereiche ans Dokument uebergeben.
-#* Fensterschliessen- Anweisung ausloesen.
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler called when OK is clicked, calls the add button handler before
+// passing the range lists to the document
IMPL_LINK_NOARG(ScColRowNameRangesDlg, OkBtnHdl)
{
AddBtnHdl( 0 );
- // die RangeLists den Refs am Doc zuweisen
+ // assign RangeLists to the den references in the document
pDoc->GetColNameRangesRef() = xColNameRanges;
pDoc->GetRowNameRangesRef() = xRowNameRanges;
- // geaenderte Datenbereiche muessen sich auswirken
+ // changed ranges need to take effect
pDoc->CompileColRowNameFormula();
ScDocShell* pDocShell = pViewData->GetDocShell();
pDocShell->PostPaint(ScRange(0, 0, 0, MAXCOL, MAXROW, MAXTAB), PAINT_GRID);
@@ -675,20 +499,6 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, OkBtnHdl)
return 0;
}
-/*************************************************************************
-#* Handler: CancelBtnHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Fensterschliessen- Anweisung ausloesen.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
IMPL_LINK_NOARG_INLINE_START(ScColRowNameRangesDlg, CancelBtnHdl)
{
Close();
@@ -696,22 +506,7 @@ IMPL_LINK_NOARG_INLINE_START(ScColRowNameRangesDlg, CancelBtnHdl)
}
IMPL_LINK_NOARG_INLINE_END(ScColRowNameRangesDlg, CancelBtnHdl)
-/*************************************************************************
-#* Handler: AddBtnHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Nach betaetigen des Hinzufuegen- Buttons, werden
-#* die Bereichsangaben eingestellt und in der
-#* Listbox dargestellt.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler called when add button clicked: set ranges and add to listbox
IMPL_LINK_NOARG(ScColRowNameRangesDlg, AddBtnHdl)
{
OUString aNewArea( pEdAssign->GetText() );
@@ -768,21 +563,6 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, AddBtnHdl)
return 0;
}
-/*************************************************************************
-#* Handler: RemoveBtnHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Nach betaetigen des Loeschen- Buttons, wird
-#* die markierte Bereichsangabe geloescht.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
IMPL_LINK_NOARG(ScColRowNameRangesDlg, RemoveBtnHdl)
{
OUString aRangeStr = pLbRange->GetSelectEntry();
@@ -828,7 +608,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, RemoveBtnHdl)
pLbRange->SelectEntryPos( nSelectPos );
if ( nSelectPos &&
(sal_uLong)pLbRange->GetEntryData( nSelectPos ) == nEntryDataDelim )
- pLbRange->SelectEntryPos( --nSelectPos ); // ---Zeile---
+ pLbRange->SelectEntryPos( --nSelectPos ); // ---Row---
pLbRange->GrabFocus();
pBtnAdd->Disable();
@@ -844,22 +624,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, RemoveBtnHdl)
return 0;
}
-/*************************************************************************
-#* Handler: Range1SelectHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Wenn Zeile in Listbox ausgewaehlt wird,
-#* werden die Eingabefelder entsprechend
-#* eingestellt.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler called when a row in the listbox is selected, updates form input fields
IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range1SelectHdl)
{
sal_uInt16 nSelectPos = pLbRange->GetSelectEntryPos();
@@ -875,15 +640,15 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range1SelectHdl)
if ( nMoves )
{
if ( nSelectPos > 1 && nSelectPos >= nCnt )
- { // am Ende nicht auf dem " --- Zeile --- " Delimiter stehenbleiben
- // wenn davor Eintraege existieren
+ { // if entries exist before the " --- Row --- " Delimiter then
+ // do not stop at the delimiter
nSelectPos = nCnt - 2;
pLbRange->SelectEntryPos( nSelectPos );
aRangeStr = pLbRange->GetSelectEntry();
}
else if ( nSelectPos > 2 && nSelectPos < nCnt && !aRangeStr.isEmpty()
&& aRangeStr == pEdAssign->GetText() )
- { // nach oben wandern statt nach unten auf die vorherige Position
+ { // move upwards instead of below to the previous position
nSelectPos -= 2;
pLbRange->SelectEntryPos( nSelectPos );
aRangeStr = pLbRange->GetSelectEntry();
@@ -929,21 +694,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range1SelectHdl)
return 0;
}
-/*************************************************************************
-#* Handler: Range1DataModifyHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Wird ausgeloest, wenn in der Tabelle, der Label-
-#* Bereich geaendert wurde.
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler called when the label range has changed
IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range1DataModifyHdl)
{
OUString aNewArea( pEdAssign->GetText() );
@@ -977,21 +728,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range1DataModifyHdl)
return 0;
}
-/*************************************************************************
-#* Handler: Range2DataModifyHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Wird ausgeloest, wenn in der Tabelle, der Daten-
-#* Bereich geaendert wurde
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler called when the data range has changed
IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range2DataModifyHdl)
{
OUString aNewData( pEdAssign2->GetText() );
@@ -1013,22 +750,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, Range2DataModifyHdl)
return 0;
}
-/*************************************************************************
-#* Handler: ColClickHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Radiobutton fuer Spalten wurde betaetigt,
-#* die entsprechenden Einstellungen werden
-#* vorgenommen
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler for the radio button for columns, adjust ranges
IMPL_LINK_NOARG(ScColRowNameRangesDlg, ColClickHdl)
{
if ( !pBtnColHead->GetSavedValue() )
@@ -1049,22 +771,7 @@ IMPL_LINK_NOARG(ScColRowNameRangesDlg, ColClickHdl)
return 0;
}
-/*************************************************************************
-#* Handler: RowClickHdl
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScColRowNameRangesDlg
-#*
-#* Funktion: Radiobutton fuer Zeilen wurde betaetigt,
-#* die entsprechenden Einstellungen werden
-#* vorgenommen
-#*
-#* Input: ---
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
+// handler for the radio buttom for columns, adjust range
IMPL_LINK_NOARG(ScColRowNameRangesDlg, RowClickHdl)
{
if ( !pBtnRowHead->GetSavedValue() )
diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx
index 631e8bb5d348..e44a966cddf0 100644
--- a/sc/source/ui/miscdlgs/highred.cxx
+++ b/sc/source/ui/miscdlgs/highred.cxx
@@ -130,8 +130,8 @@ void ScHighlightChgDlg::Init()
HighlightHandle(m_pHighlightBox);
}
-// Uebergabe eines mit der Maus selektierten Tabellenbereiches, der dann als
-// neue Selektion im Referenz-Edit angezeigt wird.
+// Set the reference to a cell range selected with the mouse. This is then
+// shown as the new selection in the reference field.
void ScHighlightChgDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
{
diff --git a/sc/source/ui/miscdlgs/inscodlg.cxx b/sc/source/ui/miscdlgs/inscodlg.cxx
index f35252e84cce..efd40b014896 100644
--- a/sc/source/ui/miscdlgs/inscodlg.cxx
+++ b/sc/source/ui/miscdlgs/inscodlg.cxx
@@ -363,7 +363,7 @@ ScInsertContentsDlg::~ScInsertContentsDlg()
if( mpBtnLink->IsChecked() )
ScInsertContentsDlg::nPreviousChecks2 |= INS_CONT_LINK;
- if (!bFillMode) // im FillMode ist None gecheckt und alle 3 disabled
+ if (!bFillMode) // in FillMode, None is checked and all three options are disabled
{
if ( mpRbMoveNone->IsChecked() )
ScInsertContentsDlg::nPreviousMoveMode = INS_NONE;
@@ -385,7 +385,6 @@ sal_uInt16 ScInsertContentsDlg::GetFormulaCmdBits() const
ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_MUL;
else if(mpRbDiv->IsChecked())
ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_DIV;
- // Bits fuer Checkboxen ausblenden
if (bUsedShortCut)
return nShortCutFormulaCmdBits;
return ScInsertContentsDlg::nPreviousFormulaChecks;
diff --git a/sc/source/ui/miscdlgs/instbdlg.cxx b/sc/source/ui/miscdlgs/instbdlg.cxx
index ffe119b0603c..8242d3b31740 100644
--- a/sc/source/ui/miscdlgs/instbdlg.cxx
+++ b/sc/source/ui/miscdlgs/instbdlg.cxx
@@ -312,11 +312,11 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
SfxMedium* pMed = pDocInserter->CreateMedium();
if ( pMed )
{
- // ERRCTX_SFX_OPENDOC -> "Fehler beim Laden des Dokumentes"
+ // ERRCTX_SFX_OPENDOC -> "Error loading document"
SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() );
if ( pDocShTables )
- pDocShTables->DoClose(); // delete passiert beim Zuweisen auf die Ref
+ pDocShTables->DoClose(); // deletion is done when assigning to the reference
pMed->UseInteractionHandler( true ); // to enable the filter options dialog
@@ -330,9 +330,9 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
sal_uLong nErr = pDocShTables->GetErrorCode();
if ( nErr )
- ErrorHandler::HandleError( nErr ); // auch Warnings
+ ErrorHandler::HandleError( nErr ); // warnings, too
- if ( !pDocShTables->GetError() ) // nur Errors
+ if ( !pDocShTables->GetError() ) // errors only
{
FillTables_Impl( &pDocShTables->GetDocument() );
m_pFtPath->SetText( pDocShTables->GetTitle( SFX_TITLE_FULLNAME ) );
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index 1228a3f51f1b..4b9d90ca84b2 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -220,7 +220,7 @@ IMPL_LINK( ScLinkedAreaDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
pMed->SetFilter( pNewFilter );
}
- // ERRCTX_SFX_OPENDOC -> "Fehler beim Laden des Dokumentes"
+ // ERRCTX_SFX_OPENDOC -> "Error loading document"
SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() );
if (pSourceShell)
diff --git a/sc/source/ui/miscdlgs/mtrindlg.cxx b/sc/source/ui/miscdlgs/mtrindlg.cxx
index bfa3eff1e350..107f0b5fe6bf 100644
--- a/sc/source/ui/miscdlgs/mtrindlg.cxx
+++ b/sc/source/ui/miscdlgs/mtrindlg.cxx
@@ -61,7 +61,7 @@ ScMetricInputDlg::ScMetricInputDlg( Window* pParent,
long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const
{
/*
- mit Nachkommastellen:
+ with decimal digits
double nVal = m_pEdValue->GetValue( eUnit );
sal_uInt16 nDecs = m_pEdValue->GetDecimalDigits();
@@ -77,7 +77,7 @@ long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const
return nVal / nFactor;
*/
- // erstmal Nachkommastellen abschneiden - nich so doll...
+ // first cut off the decimal digits - not that great...
return sal::static_int_cast<long>( m_pEdValue->Denormalize( m_pEdValue->GetValue( eUnit ) ) );
}
diff --git a/sc/source/ui/miscdlgs/scuiautofmt.cxx b/sc/source/ui/miscdlgs/scuiautofmt.cxx
index cfb075418e83..c36b40d5e3ce 100644
--- a/sc/source/ui/miscdlgs/scuiautofmt.cxx
+++ b/sc/source/ui/miscdlgs/scuiautofmt.cxx
@@ -330,8 +330,7 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, RenameHdl)
}
if (it == itEnd)
{
- // Format mit dem Namen noch nicht vorhanden, also
- // umbenennen
+ // no format with this name yet, so we can rename
m_pLbFormat->RemoveEntry(nIndex );
const ScAutoFormatData* p = pFormat->findByIndex(nIndex);
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx
index 35c33486ead2..484bb80cc0f7 100644
--- a/sc/source/ui/miscdlgs/simpref.cxx
+++ b/sc/source/ui/miscdlgs/simpref.cxx
@@ -54,14 +54,14 @@ ScSimpleRefDlg::ScSimpleRefDlg(SfxBindings* pB, SfxChildWindow* pCW, Window* pPa
get(m_pBtnOk, "ok");
get(m_pBtnCancel, "cancel");
- // damit die Strings in der Resource bei den FixedTexten bleiben koennen:
+ // in order to keep the the Strings with the FixedTexts in the resource:
Init();
- SetDispatcherLock( true ); // Modal-Modus einschalten
+ SetDispatcherLock( true ); // activate modal mode
}
ScSimpleRefDlg::~ScSimpleRefDlg()
{
- SetDispatcherLock( false ); // Modal-Modus einschalten
+ SetDispatcherLock( false ); // deactivate modal mode
}
void ScSimpleRefDlg::FillInfo(SfxChildWinInfo& rWinInfo) const
@@ -82,8 +82,8 @@ void ScSimpleRefDlg::Init()
bCloseFlag=false;
}
-// Uebergabe eines mit der Maus selektierten Tabellenbereiches, der dann als
-// neue Selektion im Referenz-Fenster angezeigt wird.
+// Set the reference to a cell range selected with the mouse. This is then
+// shown as the new selection in the reference field.
void ScSimpleRefDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
{
if ( m_pEdAssign->IsEnabled() )
@@ -128,9 +128,9 @@ void ScSimpleRefDlg::SetActive()
{
m_pEdAssign->GrabFocus();
- // kein NameModifyHdl, weil sonst Bereiche nicht geaendert werden koennen
- // (nach dem Aufziehen der Referenz wuerde der alte Inhalt wieder angezeigt)
- // (der ausgewaehlte DB-Name hat sich auch nicht veraendert)
+ // no NameModifyHdl. Otherwise ranges could not be altered
+ // (after marking the reference, the old field content would be shown)
+ // (also, the selected DB name has also not been altered)
RefInputDone();
}
diff --git a/sc/source/ui/miscdlgs/solvrdlg.cxx b/sc/source/ui/miscdlgs/solvrdlg.cxx
index bd3fa622b7d0..0cd255297ae0 100644
--- a/sc/source/ui/miscdlgs/solvrdlg.cxx
+++ b/sc/source/ui/miscdlgs/solvrdlg.cxx
@@ -189,10 +189,10 @@ IMPL_LINK( ScSolverDlg, BtnHdl, PushButton*, pBtn )
{
theTargetValStr = m_pEdTargetVal->GetText();
- // Zu ueberpruefen:
- // 1. enthalten die Strings korrekte Tabellenkoordinaten/def.Namen?
- // 2. verweist die Formel-Koordinate wirklich auf eine Formelzelle?
- // 3. wurde ein korrekter Zielwert eingegeben
+ // The following code checks:
+ // 1. do the strings contain correct references / defined names?
+ // 2. does the formula coordinate refer to a cell containing a formula?
+ // 3. has a valid target value been entered?
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
sal_uInt16 nRes1 = theFormulaCell .Parse( m_pEdFormulaCell->GetText(), pDoc, eConv );
diff --git a/sc/source/ui/miscdlgs/tabopdlg.cxx b/sc/source/ui/miscdlgs/tabopdlg.cxx
index c651e6155473..e81850f6d64a 100644
--- a/sc/source/ui/miscdlgs/tabopdlg.cxx
+++ b/sc/source/ui/miscdlgs/tabopdlg.cxx
@@ -103,7 +103,7 @@ void ScTabOpDlg::Init()
m_pEdFormulaRange->GrabFocus();
pEdActive = m_pEdFormulaRange;
- //@BugID 54702 Enablen/Disablen nur noch in Basisklasse
+ //@BugID 54702 Enable/Disable only in the base class
//SFX_APPWINDOW->Enable();
}
@@ -232,11 +232,11 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn )
ScTabOpParam::Mode eMode = ScTabOpParam::Column;
sal_uInt16 nError = 0;
- // Zu ueberpruefen:
- // 1. enthalten die Strings korrekte Tabellenkoordinaten/def.Namen?
- // 2. IstFormelRang Zeile bei leerer Zeile bzw. Spalte bei leerer Spalte
- // bzw. Einfachreferenz bei beidem?
- // 3. Ist mindestens Zeile oder Spalte und Formel voll?
+ // The following code checks:
+ // 1. do the strings contain correct cell references / defined names?
+ // 2. is formula range row if row is empty or column if column is empty
+ // or single reference if both?
+ // 3. is at least one of row or column non-empty?
if (m_pEdFormulaRange->GetText().isEmpty())
nError = TABOPERR_NOFORMULA;
@@ -270,7 +270,7 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn )
nError = TABOPERR_WRONGCOL;
else
{
- if (eMode == ScTabOpParam::Row) // beides
+ if (eMode == ScTabOpParam::Row) // both
{
eMode = ScTabOpParam::Both;
ConvertSingleRef( pDoc, m_pEdFormulaRange->GetText(), nCurTab,