Kaydet (Commit) a49d4ead authored tarafından Albert Thuswaldner's avatar Albert Thuswaldner Kaydeden (comit) Markus Mohrhard

tdf#39468 translated german comments in printfun.cxx and tabcont.cxx

Change-Id: I33618d35285506798492a96af98fc8d7edff9173
Reviewed-on: https://gerrit.libreoffice.org/18415Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 5aa58e49
...@@ -205,7 +205,7 @@ void ScPrintFunc::Construct( const ScPrintOptions* pOptions ) ...@@ -205,7 +205,7 @@ void ScPrintFunc::Construct( const ScPrintOptions* pOptions )
InitParam(pOptions); InitParam(pOptions);
pPageData = NULL; // wird nur zur Initialisierung gebraucht pPageData = NULL; // is only needed for initialisation
} }
ScPrintFunc::ScPrintFunc( ScDocShell* pShell, SfxPrinter* pNewPrinter, SCTAB nTab, ScPrintFunc::ScPrintFunc( ScDocShell* pShell, SfxPrinter* pNewPrinter, SCTAB nTab,
...@@ -650,7 +650,7 @@ bool ScPrintFunc::AdjustPrintArea( bool bNew ) ...@@ -650,7 +650,7 @@ bool ScPrintFunc::AdjustPrintArea( bool bNew )
nStartCol = 0; nStartCol = 0;
nStartRow = 0; nStartRow = 0;
if (!pDoc->GetPrintArea( nPrintTab, nEndCol, nEndRow, bNotes )) if (!pDoc->GetPrintArea( nPrintTab, nEndCol, nEndRow, bNotes ))
return false; // nix return false; // nothing
} }
else else
{ {
...@@ -1213,13 +1213,13 @@ static void lcl_DrawGraphic( const SvxBrushItem &rBrush, vcl::RenderContext *pOu ...@@ -1213,13 +1213,13 @@ static void lcl_DrawGraphic( const SvxBrushItem &rBrush, vcl::RenderContext *pOu
} }
} }
// Rahmen wird nach innen gezeichnet // The frame is drawn inwards
void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH, void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH,
const SvxBoxItem* pBorderData, const SvxBrushItem* pBackground, const SvxBoxItem* pBorderData, const SvxBrushItem* pBackground,
const SvxShadowItem* pShadow ) const SvxShadowItem* pShadow )
{ {
//! direkte Ausgabe aus SvxBoxItem !!! //! direct output from SvxBoxItem !!!
if (pBorderData) if (pBorderData)
if ( !pBorderData->GetTop() && !pBorderData->GetBottom() && !pBorderData->GetLeft() && if ( !pBorderData->GetTop() && !pBorderData->GetBottom() && !pBorderData->GetLeft() &&
...@@ -1227,7 +1227,7 @@ void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH, ...@@ -1227,7 +1227,7 @@ void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH,
pBorderData = NULL; pBorderData = NULL;
if (!pBorderData && !pBackground && !pShadow) if (!pBorderData && !pBackground && !pShadow)
return; // nichts zu tun return; // nothing to do
long nLeft = 0; long nLeft = 0;
long nRight = 0; long nRight = 0;
...@@ -2877,7 +2877,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calcu ...@@ -2877,7 +2877,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calcu
} }
else else
{ {
OSL_ENSURE( aTableParam.bScaleNone, "kein Scale-Flag gesetzt" ); OSL_ENSURE( aTableParam.bScaleNone, "no scale flag is set" );
nZoom = 100; nZoom = 100;
CalcPages(); CalcPages();
} }
......
...@@ -167,8 +167,8 @@ void ScTabControl::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -167,8 +167,8 @@ void ScTabControl::MouseButtonDown( const MouseEvent& rMEvt )
ScModule* pScMod = SC_MOD(); ScModule* pScMod = SC_MOD();
if ( !pScMod->IsModalMode() && !pScMod->IsFormulaMode() && !IsInEditMode() ) if ( !pScMod->IsModalMode() && !pScMod->IsFormulaMode() && !IsInEditMode() )
{ {
// View aktivieren // activate View
pViewData->GetViewShell()->SetActive(); // Appear und SetViewFrame pViewData->GetViewShell()->SetActive(); // Appear and SetViewFrame
pViewData->GetView()->ActiveGrabFocus(); pViewData->GetView()->ActiveGrabFocus();
} }
...@@ -237,9 +237,9 @@ void ScTabControl::Select() ...@@ -237,9 +237,9 @@ void ScTabControl::Select()
SCTAB nCount = pDoc->GetTableCount(); SCTAB nCount = pDoc->GetTableCount();
SCTAB i; SCTAB i;
if ( pScMod->IsTableLocked() ) // darf jetzt nicht umgeschaltet werden ? if ( pScMod->IsTableLocked() ) // may not be switched now ?
{ {
// den alten Zustand des TabControls wiederherstellen: // restore the old state of TabControls
for (i=0; i<nCount; i++) for (i=0; i<nCount; i++)
SelectPage( static_cast<sal_uInt16>(i)+1, rMark.GetTableSelect(i) ); SelectPage( static_cast<sal_uInt16>(i)+1, rMark.GetTableSelect(i) );
...@@ -249,14 +249,14 @@ void ScTabControl::Select() ...@@ -249,14 +249,14 @@ void ScTabControl::Select()
} }
sal_uInt16 nCurId = GetCurPageId(); sal_uInt16 nCurId = GetCurPageId();
if (!nCurId) return; // kann vorkommen, wenn bei Excel-Import alles versteckt ist if (!nCurId) return; // for Excel import it can happen that everything is hidden
sal_uInt16 nPage = nCurId - 1; sal_uInt16 nPage = nCurId - 1;
// OLE-inplace deaktivieren // OLE-inplace deactivate
if ( nPage != static_cast<sal_uInt16>(pViewData->GetTabNo()) ) if ( nPage != static_cast<sal_uInt16>(pViewData->GetTabNo()) )
pViewData->GetView()->DrawMarkListHasChanged(); pViewData->GetView()->DrawMarkListHasChanged();
// InputEnterHandler nur wenn nicht Referenzeingabe // InputEnterHandler onlw when not reference input
bool bRefMode = pScMod->IsFormulaMode(); bool bRefMode = pScMod->IsFormulaMode();
if (!bRefMode) if (!bRefMode)
...@@ -270,7 +270,7 @@ void ScTabControl::Select() ...@@ -270,7 +270,7 @@ void ScTabControl::Select()
pViewData->GetView()->SetTabNo( static_cast<SCTAB>(nPage) ); pViewData->GetView()->SetTabNo( static_cast<SCTAB>(nPage) );
else else
{ {
// Tabelle fuer Basic ist 1-basiert // sheet for basic is 1-based
SfxUInt16Item aItem( SID_CURRENTTAB, nPage + 1 ); SfxUInt16Item aItem( SID_CURRENTTAB, nPage + 1 );
rDisp.Execute( SID_CURRENTTAB, SfxCallMode::SLOT | SfxCallMode::RECORD, rDisp.Execute( SID_CURRENTTAB, SfxCallMode::SLOT | SfxCallMode::RECORD,
&aItem, nullptr ); &aItem, nullptr );
...@@ -289,9 +289,9 @@ void ScTabControl::Select() ...@@ -289,9 +289,9 @@ void ScTabControl::Select()
rBind.Invalidate( FID_TABLE_HIDE ); rBind.Invalidate( FID_TABLE_HIDE );
rBind.Invalidate( FID_TAB_SET_TAB_BG_COLOR ); rBind.Invalidate( FID_TAB_SET_TAB_BG_COLOR );
// SetReference nur wenn der Konsolidieren-Dialog offen ist // SetReference onlw when the consolidate dialog is open
// (fuer Referenzen ueber mehrere Tabellen) // (for referenzes over multiple sheets)
// bei anderen gibt das nur unnoetiges Gezappel // for others this is only uneeded fidgeting
if ( bRefMode && pViewData->GetRefType() == SC_REFTYPE_REF ) if ( bRefMode && pViewData->GetRefType() == SC_REFTYPE_REF )
if ( pViewData->GetViewShell()->GetViewFrame()->HasChildWindow(SID_OPENDLG_CONSOLIDATE) ) if ( pViewData->GetViewShell()->GetViewFrame()->HasChildWindow(SID_OPENDLG_CONSOLIDATE) )
...@@ -300,7 +300,7 @@ void ScTabControl::Select() ...@@ -300,7 +300,7 @@ void ScTabControl::Select()
pViewData->GetRefStartX(), pViewData->GetRefStartY(), pViewData->GetRefStartZ(), pViewData->GetRefStartX(), pViewData->GetRefStartY(), pViewData->GetRefStartZ(),
pViewData->GetRefEndX(), pViewData->GetRefEndY(), pViewData->GetRefEndZ() ); pViewData->GetRefEndX(), pViewData->GetRefEndY(), pViewData->GetRefEndZ() );
pScMod->SetReference( aRange, pDoc, &rMark ); pScMod->SetReference( aRange, pDoc, &rMark );
pScMod->EndReference(); // wegen Auto-Hide pScMod->EndReference(); // due to Auto-Hide
} }
} }
...@@ -327,7 +327,7 @@ void ScTabControl::UpdateStatus() ...@@ -327,7 +327,7 @@ void ScTabControl::UpdateStatus()
SCTAB nMaxCnt = std::max( nCount, static_cast<SCTAB>(GetMaxId()) ); SCTAB nMaxCnt = std::max( nCount, static_cast<SCTAB>(GetMaxId()) );
Color aTabBgColor; Color aTabBgColor;
bool bModified = false; // Tabellen-Namen bool bModified = false; // sheet name
for (i=0; i<nMaxCnt && !bModified; i++) for (i=0; i<nMaxCnt && !bModified; i++)
{ {
if (pDoc->IsVisible(i)) if (pDoc->IsVisible(i))
...@@ -370,7 +370,7 @@ void ScTabControl::UpdateStatus() ...@@ -370,7 +370,7 @@ void ScTabControl::UpdateStatus()
if (bActive) if (bActive)
{ {
bModified = false; // Selektion bModified = false; // selection
for (i=0; i<nMaxCnt && !bModified; i++) for (i=0; i<nMaxCnt && !bModified; i++)
if ( rMark.GetTableSelect(i) != (bool) IsPageSelected(static_cast<sal_uInt16>(i)+1) ) if ( rMark.GetTableSelect(i) != (bool) IsPageSelected(static_cast<sal_uInt16>(i)+1) )
bModified = true; bModified = true;
...@@ -416,7 +416,7 @@ void ScTabControl::Command( const CommandEvent& rCEvt ) ...@@ -416,7 +416,7 @@ void ScTabControl::Command( const CommandEvent& rCEvt )
ScTabViewShell* pViewSh = pViewData->GetViewShell(); ScTabViewShell* pViewSh = pViewData->GetViewShell();
bool bDisable = pScMod->IsFormulaMode() || pScMod->IsModalMode(); bool bDisable = pScMod->IsFormulaMode() || pScMod->IsModalMode();
// ViewFrame erstmal aktivieren (Bug 19493): // first activate ViewFrame (Bug 19493):
pViewSh->SetActive(); pViewSh->SetActive();
if ( rCEvt.GetCommand() == CommandEventId::ContextMenu && !bDisable) if ( rCEvt.GetCommand() == CommandEventId::ContextMenu && !bDisable)
...@@ -498,7 +498,7 @@ static sal_uInt16 lcl_DocShellNr( ScDocument* pDoc ) ...@@ -498,7 +498,7 @@ static sal_uInt16 lcl_DocShellNr( ScDocument* pDoc )
pShell = SfxObjectShell::GetNext( *pShell ); pShell = SfxObjectShell::GetNext( *pShell );
} }
OSL_FAIL("Dokument nicht gefunden"); OSL_FAIL("Document not found");
return 0; return 0;
} }
......
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