Kaydet (Commit) 80748411 authored tarafından Thomas Viehmann's avatar Thomas Viehmann Kaydeden (comit) Noel Grandin

fdo#39468 Translate German comments in sc/source/ui/miscdlgs

Change-Id: I3b15d653206e7c55422a08951466916947052a24
Reviewed-on: https://gerrit.libreoffice.org/11155Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 1babe37e
...@@ -1786,8 +1786,8 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo) ...@@ -1786,8 +1786,8 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo)
{ {
sal_Int32 nPos = pInfo->aExtraString.indexOf("AcceptChgDat:"); sal_Int32 nPos = pInfo->aExtraString.indexOf("AcceptChgDat:");
// Versuche, den Alignment-String "ALIGN:(...)" einzulesen; wenn // Try to read the alignment string "ALIGN:(...)"; if it is missing
// er nicht vorhanden ist, liegt eine "altere Version vor // we have an old version
if ( nPos != -1 ) if ( nPos != -1 )
{ {
sal_Int32 n1 = pInfo->aExtraString.indexOf('(', nPos); sal_Int32 n1 = pInfo->aExtraString.indexOf('(', nPos);
...@@ -1796,7 +1796,7 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo) ...@@ -1796,7 +1796,7 @@ void ScAcceptChgDlg::Initialize(SfxChildWinInfo *pInfo)
sal_Int32 n2 = pInfo->aExtraString.indexOf(')', n1); sal_Int32 n2 = pInfo->aExtraString.indexOf(')', n1);
if ( n2 != -1 ) if ( n2 != -1 )
{ {
// Alignment-String herausschneiden // cut out alignment string
aStr = pInfo->aExtraString.copy(nPos, n2 - nPos + 1); aStr = pInfo->aExtraString.copy(nPos, n2 - nPos + 1);
pInfo->aExtraString = pInfo->aExtraString.replaceAt(nPos, n2 - nPos + 1, ""); pInfo->aExtraString = pInfo->aExtraString.replaceAt(nPos, n2 - nPos + 1, "");
aStr = aStr.copy( n1-nPos+1 ); aStr = aStr.copy( n1-nPos+1 );
......
...@@ -351,7 +351,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced ) ...@@ -351,7 +351,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
{ {
if ( CanInputDone( bForced ) ) if ( CanInputDone( bForced ) )
{ {
if (bAccInserted) // Accelerator wieder abschalten if (bAccInserted) // disable accelerator
{ {
Application::RemoveAccel( pAccel.get() ); Application::RemoveAccel( pAccel.get() );
bAccInserted = false; bAccInserted = false;
...@@ -365,7 +365,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced ) ...@@ -365,7 +365,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
// restore the parent of the edit field // restore the parent of the edit field
pRefEdit->SetParent(mpOldEditParent); pRefEdit->SetParent(mpOldEditParent);
// Fenster wieder gross // the window is at the old size again
m_pWindow->SetOutputSizePixel(aOldDialogSize); m_pWindow->SetOutputSizePixel(aOldDialogSize);
// set button parent // set button parent
...@@ -377,7 +377,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced ) ...@@ -377,7 +377,7 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
if (!mbOldEditParentLayoutEnabled) if (!mbOldEditParentLayoutEnabled)
{ {
// pEditCell an alte Position // set pEditCell to old position
pRefEdit->SetPosSizePixel(aOldEditPos, aOldEditSize); pRefEdit->SetPosSizePixel(aOldEditPos, aOldEditSize);
// set button position // set button position
...@@ -387,14 +387,14 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced ) ...@@ -387,14 +387,14 @@ void ScFormulaReferenceHelper::RefInputDone( bool bForced )
} }
} }
// Fenstertitel anpassen // Adjust window title
m_pWindow->SetText(sOldDialogText); m_pWindow->SetText(sOldDialogText);
// set button image // set button image
if( pRefBtn ) if( pRefBtn )
pRefBtn->SetStartImage(); pRefBtn->SetStartImage();
// Alle anderen: Show(); // All others: Show();
for (winvec::iterator aI = m_aHiddenWidgets.begin(); aI != m_aHiddenWidgets.end(); ++aI) for (winvec::iterator aI = m_aHiddenWidgets.begin(); aI != m_aHiddenWidgets.end(); ++aI)
{ {
Window *pWindow = *aI; Window *pWindow = *aI;
...@@ -460,7 +460,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula:: ...@@ -460,7 +460,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
//this is widget-layout-ified //this is widget-layout-ified
if (!mbOldEditParentLayoutEnabled) if (!mbOldEditParentLayoutEnabled)
{ {
// Alte Daten merken // Save current state
aOldDialogSize = m_pWindow->GetOutputSizePixel(); aOldDialogSize = m_pWindow->GetOutputSizePixel();
aOldEditPos = pRefEdit->GetPosPixel(); aOldEditPos = pRefEdit->GetPosPixel();
if (pRefBtn) if (pRefBtn)
...@@ -474,7 +474,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula:: ...@@ -474,7 +474,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
pRefBtn->SetParent(m_pWindow); pRefBtn->SetParent(m_pWindow);
} }
// Fenstertitel anpassen // Save and adjust window title
sOldDialogText = m_pWindow->GetText(); sOldDialogText = m_pWindow->GetText();
if (Window *pLabel = pRefEdit->GetLabelWidgetForShrinkMode()) if (Window *pLabel = pRefEdit->GetLabelWidgetForShrinkMode())
{ {
...@@ -535,7 +535,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula:: ...@@ -535,7 +535,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
if (!mbOldDlgLayoutEnabled) if (!mbOldDlgLayoutEnabled)
{ {
// Edit-Feld verschieben und anpassen // move and adapt edit field
Size aNewDlgSize(aOldDialogSize.Width(), aOldEditSize.Height()); Size aNewDlgSize(aOldDialogSize.Width(), aOldEditSize.Height());
Size aNewEditSize(aNewDlgSize); Size aNewEditSize(aNewDlgSize);
long nOffset = 0; long nOffset = 0;
...@@ -558,7 +558,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula:: ...@@ -558,7 +558,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
if( pRefBtn ) if( pRefBtn )
pRefBtn->SetPosPixel( Point( aOldDialogSize.Width() - pRefBtn->GetSizePixel().Width(), 0 ) ); pRefBtn->SetPosPixel( Point( aOldDialogSize.Width() - pRefBtn->GetSizePixel().Width(), 0 ) );
// Fenster verkleinern // shrink window
m_pWindow->SetOutputSizePixel(aNewDlgSize); m_pWindow->SetOutputSizePixel(aNewDlgSize);
} }
...@@ -617,9 +617,9 @@ bool ScFormulaReferenceHelper::DoClose( sal_uInt16 nId ) ...@@ -617,9 +617,9 @@ bool ScFormulaReferenceHelper::DoClose( sal_uInt16 nId )
SfxViewFrame* pViewFrm = SfxViewFrame::Current(); SfxViewFrame* pViewFrm = SfxViewFrame::Current();
if ( pViewFrm && pViewFrm->HasChildWindow(FID_INPUTLINE_STATUS) ) if ( pViewFrm && pViewFrm->HasChildWindow(FID_INPUTLINE_STATUS) )
{ {
// Die Eingabezeile wird per ToolBox::Disable disabled, muss darum auch // The input row is disabled with ToolBox::Disable disabled, thus it must be
// per ToolBox::Enable wieder aktiviert werden (vor dem Enable des AppWindow), // reenabled with ToolBox::Enable (before the AppWindow is enabled)
// damit die Buttons auch wieder enabled gezeichnet werden. // for the buttons to be drawn as enabled.
SfxChildWindow* pChild = pViewFrm->GetChildWindow(FID_INPUTLINE_STATUS); SfxChildWindow* pChild = pViewFrm->GetChildWindow(FID_INPUTLINE_STATUS);
if (pChild) if (pChild)
{ {
...@@ -890,7 +890,7 @@ bool ScRefHandler::IsDocAllowed(SfxObjectShell* pDocSh) const // pDocSh may be ...@@ -890,7 +890,7 @@ bool ScRefHandler::IsDocAllowed(SfxObjectShell* pDocSh) const // pDocSh may be
bool ScRefHandler::IsRefInputMode() const 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 ) bool ScRefHandler::DoClose( sal_uInt16 nId )
...@@ -911,18 +911,18 @@ void ScRefHandler::ViewShellChanged() ...@@ -911,18 +911,18 @@ void ScRefHandler::ViewShellChanged()
void ScRefHandler::AddRefEntry() void ScRefHandler::AddRefEntry()
{ {
// wenn nicht ueberladen, gibt es keine Mehrfach-Referenzen // needs to be overloaded for multi-references
} }
bool ScRefHandler::IsTableLocked() const 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; return false;
} }
// RefInputStart/Done: Zoom-In (AutoHide) auf einzelnes Feld // RefInputStart/Done: Zoom-In (AutoHide) on single field
// (per Button oder Bewegung) // (using button oder movement)
void ScRefHandler::RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton ) void ScRefHandler::RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton )
{ {
......
...@@ -185,7 +185,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow ) ...@@ -185,7 +185,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
if ( pCurData ) if ( pCurData )
{ {
// Ausgabe des Zelltextes: // Emit the cell text
OUString cellString; OUString cellString;
bool bNumFormat = pCurData->GetIncludeValueFormat(); bool bNumFormat = pCurData->GetIncludeValueFormat();
...@@ -251,7 +251,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow ) ...@@ -251,7 +251,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
SvxHorJustifyItem aHorJustifyItem( SVX_HOR_JUSTIFY_STANDARD, ATTR_HOR_JUSTIFY ); SvxHorJustifyItem aHorJustifyItem( SVX_HOR_JUSTIFY_STANDARD, ATTR_HOR_JUSTIFY );
SvxCellHorJustify eJustification; SvxCellHorJustify eJustification;
// Ausrichtung: // Justification:
eJustification = mbRTL ? SVX_HOR_JUSTIFY_RIGHT : bJustify ? eJustification = mbRTL ? SVX_HOR_JUSTIFY_RIGHT : bJustify ?
(SvxCellHorJustify)(((const SvxHorJustifyItem*)pCurData->GetItem( nFmtIndex, ATTR_HOR_JUSTIFY ))->GetValue()) : (SvxCellHorJustify)(((const SvxHorJustifyItem*)pCurData->GetItem( nFmtIndex, ATTR_HOR_JUSTIFY ))->GetValue()) :
...@@ -274,9 +274,8 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow ) ...@@ -274,9 +274,8 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
if ( theMaxStrSize.Height() < aStrSize.Height() ) if ( theMaxStrSize.Height() < aStrSize.Height() )
{ {
// wenn der String in diesem Font nicht // if the string does not fit in the row using this font,
// in die Zelle passt, wird wieder der // the default font is used
// Standard-Font genommen:
aScriptedText.SetDefaultFont(); aScriptedText.SetDefaultFont();
aStrSize = aScriptedText.GetTextSize(); aStrSize = aScriptedText.GetTextSize();
} }
...@@ -303,7 +302,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow ) ...@@ -303,7 +302,7 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
- aStrSize.Width() - aStrSize.Width()
- FRAME_OFFSET ); - FRAME_OFFSET );
// vertikal (immer zentrieren): // vertical (always center):
aPos.Y() += (mnRowHeight - (sal_uInt16)aStrSize.Height()) / 2; aPos.Y() += (mnRowHeight - (sal_uInt16)aStrSize.Height()) / 2;
...@@ -329,23 +328,23 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow ) ...@@ -329,23 +328,23 @@ void ScAutoFmtPreview::DrawString( size_t nCol, size_t nRow )
break; break;
case SVX_HOR_JUSTIFY_STANDARD: case SVX_HOR_JUSTIFY_STANDARD:
default: default:
// Standard wird hier nicht behandelt // Standard is not handled here
break; break;
} }
} }
else else
{ {
// Standardausrichtung: // Standard justification
if ( (nCol == 0) || (nRow == 0) ) if ( (nCol == 0) || (nRow == 0) )
{ {
// Text-Label links oder Summe linksbuendig // Text label to the left or sum left adjusted
aPos.X() += FRAME_OFFSET; aPos.X() += FRAME_OFFSET;
} }
else else
{ {
// Zahlen/Datum rechtsbuendig // Numbers/Dates right adjusted
aPos.X() += nRightX; aPos.X() += nRightX;
} }
} }
......
...@@ -130,8 +130,8 @@ void ScHighlightChgDlg::Init() ...@@ -130,8 +130,8 @@ void ScHighlightChgDlg::Init()
HighlightHandle(m_pHighlightBox); HighlightHandle(m_pHighlightBox);
} }
// Uebergabe eines mit der Maus selektierten Tabellenbereiches, der dann als // Set the reference to a cell range selected with the mouse. This is then
// neue Selektion im Referenz-Edit angezeigt wird. // shown as the new selection in the reference field.
void ScHighlightChgDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) void ScHighlightChgDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
{ {
......
...@@ -363,7 +363,7 @@ ScInsertContentsDlg::~ScInsertContentsDlg() ...@@ -363,7 +363,7 @@ ScInsertContentsDlg::~ScInsertContentsDlg()
if( mpBtnLink->IsChecked() ) if( mpBtnLink->IsChecked() )
ScInsertContentsDlg::nPreviousChecks2 |= INS_CONT_LINK; 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() ) if ( mpRbMoveNone->IsChecked() )
ScInsertContentsDlg::nPreviousMoveMode = INS_NONE; ScInsertContentsDlg::nPreviousMoveMode = INS_NONE;
...@@ -385,7 +385,6 @@ sal_uInt16 ScInsertContentsDlg::GetFormulaCmdBits() const ...@@ -385,7 +385,6 @@ sal_uInt16 ScInsertContentsDlg::GetFormulaCmdBits() const
ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_MUL; ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_MUL;
else if(mpRbDiv->IsChecked()) else if(mpRbDiv->IsChecked())
ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_DIV; ScInsertContentsDlg::nPreviousFormulaChecks = PASTE_DIV;
// Bits fuer Checkboxen ausblenden
if (bUsedShortCut) if (bUsedShortCut)
return nShortCutFormulaCmdBits; return nShortCutFormulaCmdBits;
return ScInsertContentsDlg::nPreviousFormulaChecks; return ScInsertContentsDlg::nPreviousFormulaChecks;
......
...@@ -312,11 +312,11 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ...@@ -312,11 +312,11 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
SfxMedium* pMed = pDocInserter->CreateMedium(); SfxMedium* pMed = pDocInserter->CreateMedium();
if ( pMed ) if ( pMed )
{ {
// ERRCTX_SFX_OPENDOC -> "Fehler beim Laden des Dokumentes" // ERRCTX_SFX_OPENDOC -> "Error loading document"
SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() ); SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() );
if ( pDocShTables ) 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 pMed->UseInteractionHandler( true ); // to enable the filter options dialog
...@@ -330,9 +330,9 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ...@@ -330,9 +330,9 @@ IMPL_LINK( ScInsertTableDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
sal_uLong nErr = pDocShTables->GetErrorCode(); sal_uLong nErr = pDocShTables->GetErrorCode();
if ( nErr ) 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() ); FillTables_Impl( &pDocShTables->GetDocument() );
m_pFtPath->SetText( pDocShTables->GetTitle( SFX_TITLE_FULLNAME ) ); m_pFtPath->SetText( pDocShTables->GetTitle( SFX_TITLE_FULLNAME ) );
......
...@@ -220,7 +220,7 @@ IMPL_LINK( ScLinkedAreaDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ...@@ -220,7 +220,7 @@ IMPL_LINK( ScLinkedAreaDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg
pMed->SetFilter( pNewFilter ); pMed->SetFilter( pNewFilter );
} }
// ERRCTX_SFX_OPENDOC -> "Fehler beim Laden des Dokumentes" // ERRCTX_SFX_OPENDOC -> "Error loading document"
SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() ); SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, pMed->GetName() );
if (pSourceShell) if (pSourceShell)
......
...@@ -61,7 +61,7 @@ ScMetricInputDlg::ScMetricInputDlg( Window* pParent, ...@@ -61,7 +61,7 @@ ScMetricInputDlg::ScMetricInputDlg( Window* pParent,
long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const
{ {
/* /*
mit Nachkommastellen: with decimal digits
double nVal = m_pEdValue->GetValue( eUnit ); double nVal = m_pEdValue->GetValue( eUnit );
sal_uInt16 nDecs = m_pEdValue->GetDecimalDigits(); sal_uInt16 nDecs = m_pEdValue->GetDecimalDigits();
...@@ -77,7 +77,7 @@ long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const ...@@ -77,7 +77,7 @@ long ScMetricInputDlg::GetInputValue( FieldUnit eUnit ) const
return nVal / nFactor; 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 ) ) ); return sal::static_int_cast<long>( m_pEdValue->Denormalize( m_pEdValue->GetValue( eUnit ) ) );
} }
......
...@@ -330,8 +330,7 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, RenameHdl) ...@@ -330,8 +330,7 @@ IMPL_LINK_NOARG(ScAutoFormatDlg, RenameHdl)
} }
if (it == itEnd) if (it == itEnd)
{ {
// Format mit dem Namen noch nicht vorhanden, also // no format with this name yet, so we can rename
// umbenennen
m_pLbFormat->RemoveEntry(nIndex ); m_pLbFormat->RemoveEntry(nIndex );
const ScAutoFormatData* p = pFormat->findByIndex(nIndex); const ScAutoFormatData* p = pFormat->findByIndex(nIndex);
......
...@@ -54,14 +54,14 @@ ScSimpleRefDlg::ScSimpleRefDlg(SfxBindings* pB, SfxChildWindow* pCW, Window* pPa ...@@ -54,14 +54,14 @@ ScSimpleRefDlg::ScSimpleRefDlg(SfxBindings* pB, SfxChildWindow* pCW, Window* pPa
get(m_pBtnOk, "ok"); get(m_pBtnOk, "ok");
get(m_pBtnCancel, "cancel"); 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(); Init();
SetDispatcherLock( true ); // Modal-Modus einschalten SetDispatcherLock( true ); // activate modal mode
} }
ScSimpleRefDlg::~ScSimpleRefDlg() ScSimpleRefDlg::~ScSimpleRefDlg()
{ {
SetDispatcherLock( false ); // Modal-Modus einschalten SetDispatcherLock( false ); // deactivate modal mode
} }
void ScSimpleRefDlg::FillInfo(SfxChildWinInfo& rWinInfo) const void ScSimpleRefDlg::FillInfo(SfxChildWinInfo& rWinInfo) const
...@@ -82,8 +82,8 @@ void ScSimpleRefDlg::Init() ...@@ -82,8 +82,8 @@ void ScSimpleRefDlg::Init()
bCloseFlag=false; bCloseFlag=false;
} }
// Uebergabe eines mit der Maus selektierten Tabellenbereiches, der dann als // Set the reference to a cell range selected with the mouse. This is then
// neue Selektion im Referenz-Fenster angezeigt wird. // shown as the new selection in the reference field.
void ScSimpleRefDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) void ScSimpleRefDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
{ {
if ( m_pEdAssign->IsEnabled() ) if ( m_pEdAssign->IsEnabled() )
...@@ -128,9 +128,9 @@ void ScSimpleRefDlg::SetActive() ...@@ -128,9 +128,9 @@ void ScSimpleRefDlg::SetActive()
{ {
m_pEdAssign->GrabFocus(); m_pEdAssign->GrabFocus();
// kein NameModifyHdl, weil sonst Bereiche nicht geaendert werden koennen // no NameModifyHdl. Otherwise ranges could not be altered
// (nach dem Aufziehen der Referenz wuerde der alte Inhalt wieder angezeigt) // (after marking the reference, the old field content would be shown)
// (der ausgewaehlte DB-Name hat sich auch nicht veraendert) // (also, the selected DB name has also not been altered)
RefInputDone(); RefInputDone();
} }
......
...@@ -189,10 +189,10 @@ IMPL_LINK( ScSolverDlg, BtnHdl, PushButton*, pBtn ) ...@@ -189,10 +189,10 @@ IMPL_LINK( ScSolverDlg, BtnHdl, PushButton*, pBtn )
{ {
theTargetValStr = m_pEdTargetVal->GetText(); theTargetValStr = m_pEdTargetVal->GetText();
// Zu ueberpruefen: // The following code checks:
// 1. enthalten die Strings korrekte Tabellenkoordinaten/def.Namen? // 1. do the strings contain correct references / defined names?
// 2. verweist die Formel-Koordinate wirklich auf eine Formelzelle? // 2. does the formula coordinate refer to a cell containing a formula?
// 3. wurde ein korrekter Zielwert eingegeben // 3. has a valid target value been entered?
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention(); const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
sal_uInt16 nRes1 = theFormulaCell .Parse( m_pEdFormulaCell->GetText(), pDoc, eConv ); sal_uInt16 nRes1 = theFormulaCell .Parse( m_pEdFormulaCell->GetText(), pDoc, eConv );
......
...@@ -103,7 +103,7 @@ void ScTabOpDlg::Init() ...@@ -103,7 +103,7 @@ void ScTabOpDlg::Init()
m_pEdFormulaRange->GrabFocus(); m_pEdFormulaRange->GrabFocus();
pEdActive = m_pEdFormulaRange; pEdActive = m_pEdFormulaRange;
//@BugID 54702 Enablen/Disablen nur noch in Basisklasse //@BugID 54702 Enable/Disable only in the base class
//SFX_APPWINDOW->Enable(); //SFX_APPWINDOW->Enable();
} }
...@@ -232,11 +232,11 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn ) ...@@ -232,11 +232,11 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn )
ScTabOpParam::Mode eMode = ScTabOpParam::Column; ScTabOpParam::Mode eMode = ScTabOpParam::Column;
sal_uInt16 nError = 0; sal_uInt16 nError = 0;
// Zu ueberpruefen: // The following code checks:
// 1. enthalten die Strings korrekte Tabellenkoordinaten/def.Namen? // 1. do the strings contain correct cell references / defined names?
// 2. IstFormelRang Zeile bei leerer Zeile bzw. Spalte bei leerer Spalte // 2. is formula range row if row is empty or column if column is empty
// bzw. Einfachreferenz bei beidem? // or single reference if both?
// 3. Ist mindestens Zeile oder Spalte und Formel voll? // 3. is at least one of row or column non-empty?
if (m_pEdFormulaRange->GetText().isEmpty()) if (m_pEdFormulaRange->GetText().isEmpty())
nError = TABOPERR_NOFORMULA; nError = TABOPERR_NOFORMULA;
...@@ -270,7 +270,7 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn ) ...@@ -270,7 +270,7 @@ IMPL_LINK( ScTabOpDlg, BtnHdl, PushButton*, pBtn )
nError = TABOPERR_WRONGCOL; nError = TABOPERR_WRONGCOL;
else else
{ {
if (eMode == ScTabOpParam::Row) // beides if (eMode == ScTabOpParam::Row) // both
{ {
eMode = ScTabOpParam::Both; eMode = ScTabOpParam::Both;
ConvertSingleRef( pDoc, m_pEdFormulaRange->GetText(), nCurTab, ConvertSingleRef( pDoc, m_pEdFormulaRange->GetText(), nCurTab,
......
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