[Libreoffice-commits] core.git: sc/source
Albert Thuswaldner
albert.thuswaldner at gmail.com
Tue Sep 8 20:17:36 PDT 2015
sc/source/ui/view/printfun.cxx | 12 ++++++------
sc/source/ui/view/tabcont.cxx | 32 ++++++++++++++++----------------
2 files changed, 22 insertions(+), 22 deletions(-)
New commits:
commit a49d4ead6f3e90e5acc0ac264933a2472915b891
Author: Albert Thuswaldner <albert.thuswaldner at gmail.com>
Date: Tue Sep 8 18:50:32 2015 +0200
tdf#39468 translated german comments in printfun.cxx and tabcont.cxx
Change-Id: I33618d35285506798492a96af98fc8d7edff9173
Reviewed-on: https://gerrit.libreoffice.org/18415
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index cff117f..e6e6f7b 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -205,7 +205,7 @@ void ScPrintFunc::Construct( const ScPrintOptions* 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,
@@ -650,7 +650,7 @@ bool ScPrintFunc::AdjustPrintArea( bool bNew )
nStartCol = 0;
nStartRow = 0;
if (!pDoc->GetPrintArea( nPrintTab, nEndCol, nEndRow, bNotes ))
- return false; // nix
+ return false; // nothing
}
else
{
@@ -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,
const SvxBoxItem* pBorderData, const SvxBrushItem* pBackground,
const SvxShadowItem* pShadow )
{
- //! direkte Ausgabe aus SvxBoxItem !!!
+ //! direct output from SvxBoxItem !!!
if (pBorderData)
if ( !pBorderData->GetTop() && !pBorderData->GetBottom() && !pBorderData->GetLeft() &&
@@ -1227,7 +1227,7 @@ void ScPrintFunc::DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH,
pBorderData = NULL;
if (!pBorderData && !pBackground && !pShadow)
- return; // nichts zu tun
+ return; // nothing to do
long nLeft = 0;
long nRight = 0;
@@ -2877,7 +2877,7 @@ void ScPrintFunc::CalcZoom( sal_uInt16 nRangeNo ) // calcu
}
else
{
- OSL_ENSURE( aTableParam.bScaleNone, "kein Scale-Flag gesetzt" );
+ OSL_ENSURE( aTableParam.bScaleNone, "no scale flag is set" );
nZoom = 100;
CalcPages();
}
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index abe0aac..53f5e85 100644
--- a/sc/source/ui/view/tabcont.cxx
+++ b/sc/source/ui/view/tabcont.cxx
@@ -167,8 +167,8 @@ void ScTabControl::MouseButtonDown( const MouseEvent& rMEvt )
ScModule* pScMod = SC_MOD();
if ( !pScMod->IsModalMode() && !pScMod->IsFormulaMode() && !IsInEditMode() )
{
- // View aktivieren
- pViewData->GetViewShell()->SetActive(); // Appear und SetViewFrame
+ // activate View
+ pViewData->GetViewShell()->SetActive(); // Appear and SetViewFrame
pViewData->GetView()->ActiveGrabFocus();
}
@@ -237,9 +237,9 @@ void ScTabControl::Select()
SCTAB nCount = pDoc->GetTableCount();
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++)
SelectPage( static_cast<sal_uInt16>(i)+1, rMark.GetTableSelect(i) );
@@ -249,14 +249,14 @@ void ScTabControl::Select()
}
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;
- // OLE-inplace deaktivieren
+ // OLE-inplace deactivate
if ( nPage != static_cast<sal_uInt16>(pViewData->GetTabNo()) )
pViewData->GetView()->DrawMarkListHasChanged();
- // InputEnterHandler nur wenn nicht Referenzeingabe
+ // InputEnterHandler onlw when not reference input
bool bRefMode = pScMod->IsFormulaMode();
if (!bRefMode)
@@ -270,7 +270,7 @@ void ScTabControl::Select()
pViewData->GetView()->SetTabNo( static_cast<SCTAB>(nPage) );
else
{
- // Tabelle fuer Basic ist 1-basiert
+ // sheet for basic is 1-based
SfxUInt16Item aItem( SID_CURRENTTAB, nPage + 1 );
rDisp.Execute( SID_CURRENTTAB, SfxCallMode::SLOT | SfxCallMode::RECORD,
&aItem, nullptr );
@@ -289,9 +289,9 @@ void ScTabControl::Select()
rBind.Invalidate( FID_TABLE_HIDE );
rBind.Invalidate( FID_TAB_SET_TAB_BG_COLOR );
- // SetReference nur wenn der Konsolidieren-Dialog offen ist
- // (fuer Referenzen ueber mehrere Tabellen)
- // bei anderen gibt das nur unnoetiges Gezappel
+ // SetReference onlw when the consolidate dialog is open
+ // (for referenzes over multiple sheets)
+ // for others this is only uneeded fidgeting
if ( bRefMode && pViewData->GetRefType() == SC_REFTYPE_REF )
if ( pViewData->GetViewShell()->GetViewFrame()->HasChildWindow(SID_OPENDLG_CONSOLIDATE) )
@@ -300,7 +300,7 @@ void ScTabControl::Select()
pViewData->GetRefStartX(), pViewData->GetRefStartY(), pViewData->GetRefStartZ(),
pViewData->GetRefEndX(), pViewData->GetRefEndY(), pViewData->GetRefEndZ() );
pScMod->SetReference( aRange, pDoc, &rMark );
- pScMod->EndReference(); // wegen Auto-Hide
+ pScMod->EndReference(); // due to Auto-Hide
}
}
@@ -327,7 +327,7 @@ void ScTabControl::UpdateStatus()
SCTAB nMaxCnt = std::max( nCount, static_cast<SCTAB>(GetMaxId()) );
Color aTabBgColor;
- bool bModified = false; // Tabellen-Namen
+ bool bModified = false; // sheet name
for (i=0; i<nMaxCnt && !bModified; i++)
{
if (pDoc->IsVisible(i))
@@ -370,7 +370,7 @@ void ScTabControl::UpdateStatus()
if (bActive)
{
- bModified = false; // Selektion
+ bModified = false; // selection
for (i=0; i<nMaxCnt && !bModified; i++)
if ( rMark.GetTableSelect(i) != (bool) IsPageSelected(static_cast<sal_uInt16>(i)+1) )
bModified = true;
@@ -416,7 +416,7 @@ void ScTabControl::Command( const CommandEvent& rCEvt )
ScTabViewShell* pViewSh = pViewData->GetViewShell();
bool bDisable = pScMod->IsFormulaMode() || pScMod->IsModalMode();
- // ViewFrame erstmal aktivieren (Bug 19493):
+ // first activate ViewFrame (Bug 19493):
pViewSh->SetActive();
if ( rCEvt.GetCommand() == CommandEventId::ContextMenu && !bDisable)
@@ -498,7 +498,7 @@ static sal_uInt16 lcl_DocShellNr( ScDocument* pDoc )
pShell = SfxObjectShell::GetNext( *pShell );
}
- OSL_FAIL("Dokument nicht gefunden");
+ OSL_FAIL("Document not found");
return 0;
}
More information about the Libreoffice-commits
mailing list