Kaydet (Commit) 961563d1 authored tarafından Katarina Behrens's avatar Katarina Behrens

Translate some German comments in sc

you beat me to it, mmeeks

Change-Id: I3191a506363ebfd9299e9c94857aacdffdb28946
Reviewed-on: https://gerrit.libreoffice.org/33855Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 22326cb4
...@@ -35,12 +35,12 @@ static void lcl_InvalidateOutliner( SfxBindings* pBindings ) ...@@ -35,12 +35,12 @@ static void lcl_InvalidateOutliner( SfxBindings* pBindings )
pBindings->Invalidate( SID_OUTLINE_HIDE ); pBindings->Invalidate( SID_OUTLINE_HIDE );
pBindings->Invalidate( SID_OUTLINE_REMOVE ); pBindings->Invalidate( SID_OUTLINE_REMOVE );
pBindings->Invalidate( SID_STATUS_SUM ); // wegen ein-/ausblenden pBindings->Invalidate( SID_STATUS_SUM ); // because of enabling/disabling
pBindings->Invalidate( SID_ATTR_SIZE ); pBindings->Invalidate( SID_ATTR_SIZE );
} }
} }
//! PaintWidthHeight zur DocShell verschieben? //! Move PaintWidthHeight to DocShell ?
static void lcl_PaintWidthHeight( ScDocShell& rDocShell, SCTAB nTab, static void lcl_PaintWidthHeight( ScDocShell& rDocShell, SCTAB nTab,
bool bColumns, SCCOLROW nStart, SCCOLROW nEnd ) bool bColumns, SCCOLROW nStart, SCCOLROW nEnd )
...@@ -50,7 +50,7 @@ static void lcl_PaintWidthHeight( ScDocShell& rDocShell, SCTAB nTab, ...@@ -50,7 +50,7 @@ static void lcl_PaintWidthHeight( ScDocShell& rDocShell, SCTAB nTab,
PaintPartFlags nParts = PaintPartFlags::Grid; PaintPartFlags nParts = PaintPartFlags::Grid;
SCCOL nStartCol = 0; SCCOL nStartCol = 0;
SCROW nStartRow = 0; SCROW nStartRow = 0;
SCCOL nEndCol = MAXCOL; // fuer Test auf Merge SCCOL nEndCol = MAXCOL; // for testing if merged
SCROW nEndRow = MAXROW; SCROW nEndRow = MAXROW;
if ( bColumns ) if ( bColumns )
{ {
...@@ -113,7 +113,7 @@ void ScOutlineDocFunc::MakeOutline( const ScRange& rRange, bool bColumns, bool b ...@@ -113,7 +113,7 @@ void ScOutlineDocFunc::MakeOutline( const ScRange& rRange, bool bColumns, bool b
if (rDoc.IsStreamValid(nTab)) if (rDoc.IsStreamValid(nTab))
rDoc.SetStreamValid(nTab, false); rDoc.SetStreamValid(nTab, false);
PaintPartFlags nParts = PaintPartFlags::NONE; // Datenbereich nicht geaendert PaintPartFlags nParts = PaintPartFlags::NONE; // Data range hasn't been changed
if ( bColumns ) if ( bColumns )
nParts |= PaintPartFlags::Top; nParts |= PaintPartFlags::Top;
else else
...@@ -128,7 +128,7 @@ void ScOutlineDocFunc::MakeOutline( const ScRange& rRange, bool bColumns, bool b ...@@ -128,7 +128,7 @@ void ScOutlineDocFunc::MakeOutline( const ScRange& rRange, bool bColumns, bool b
else else
{ {
if (!bApi) if (!bApi)
rDocShell.ErrorMessage(STR_MSSG_MAKEOUTLINE_0); // "Gruppierung nicht moeglich" rDocShell.ErrorMessage(STR_MSSG_MAKEOUTLINE_0); // "Grouping not possible"
delete pUndoTab; delete pUndoTab;
} }
} }
...@@ -176,7 +176,7 @@ void ScOutlineDocFunc::RemoveOutline( const ScRange& rRange, bool bColumns, bool ...@@ -176,7 +176,7 @@ void ScOutlineDocFunc::RemoveOutline( const ScRange& rRange, bool bColumns, bool
if (rDoc.IsStreamValid(nTab)) if (rDoc.IsStreamValid(nTab))
rDoc.SetStreamValid(nTab, false); rDoc.SetStreamValid(nTab, false);
PaintPartFlags nParts = PaintPartFlags::NONE; // Datenbereich nicht geaendert PaintPartFlags nParts = PaintPartFlags::NONE; // Data range hasn't been changed
if ( bColumns ) if ( bColumns )
nParts |= PaintPartFlags::Top; nParts |= PaintPartFlags::Top;
else else
...@@ -189,14 +189,14 @@ void ScOutlineDocFunc::RemoveOutline( const ScRange& rRange, bool bColumns, bool ...@@ -189,14 +189,14 @@ void ScOutlineDocFunc::RemoveOutline( const ScRange& rRange, bool bColumns, bool
bDone = true; bDone = true;
lcl_InvalidateOutliner( rDocShell.GetViewBindings() ); lcl_InvalidateOutliner( rDocShell.GetViewBindings() );
// es wird nicht wieder eingeblendet -> kein UpdatePageBreaks // we are not enabling again -> no UpdatePageBreaks
} }
else else
delete pUndoTab; delete pUndoTab;
} }
if (!bDone && !bApi) if (!bDone && !bApi)
rDocShell.ErrorMessage(STR_MSSG_REMOVEOUTLINE_0); // "Aufheben nicht moeglich" rDocShell.ErrorMessage(STR_MSSG_REMOVEOUTLINE_0); // "Ungrouping not possible"
} }
bool ScOutlineDocFunc::RemoveAllOutlines( SCTAB nTab, bool bRecord ) bool ScOutlineDocFunc::RemoveAllOutlines( SCTAB nTab, bool bRecord )
...@@ -289,7 +289,7 @@ void ScOutlineDocFunc::AutoOutline( const ScRange& rRange, bool bRecord ) ...@@ -289,7 +289,7 @@ void ScOutlineDocFunc::AutoOutline( const ScRange& rRange, bool bRecord )
rDoc.CopyToDocument(0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, InsertDeleteFlags::NONE, false, *pUndoDoc); rDoc.CopyToDocument(0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, InsertDeleteFlags::NONE, false, *pUndoDoc);
} }
// einblenden // enable
SelectLevel( nTab, true, pTable->GetColArray().GetDepth(), false, false ); SelectLevel( nTab, true, pTable->GetColArray().GetDepth(), false, false );
SelectLevel( nTab, false, pTable->GetRowArray().GetDepth(), false, false ); SelectLevel( nTab, false, pTable->GetRowArray().GetDepth(), false, false );
rDoc.SetOutlineTable( nTab, nullptr ); rDoc.SetOutlineTable( nTab, nullptr );
...@@ -321,7 +321,7 @@ bool ScOutlineDocFunc::SelectLevel( SCTAB nTab, bool bColumns, sal_uInt16 nLevel ...@@ -321,7 +321,7 @@ bool ScOutlineDocFunc::SelectLevel( SCTAB nTab, bool bColumns, sal_uInt16 nLevel
if (bRecord && !rDoc.IsUndoEnabled()) if (bRecord && !rDoc.IsUndoEnabled())
bRecord = false; bRecord = false;
ScOutlineTable* pTable = rDoc.GetOutlineTable( nTab ); // ist schon da ScOutlineTable* pTable = rDoc.GetOutlineTable( nTab ); // already there
if (!pTable) if (!pTable)
return false; return false;
ScOutlineArray& rArray = bColumns ? pTable->GetColArray() : pTable->GetRowArray(); ScOutlineArray& rArray = bColumns ? pTable->GetColArray() : pTable->GetRowArray();
...@@ -348,28 +348,28 @@ bool ScOutlineDocFunc::SelectLevel( SCTAB nTab, bool bColumns, sal_uInt16 nLevel ...@@ -348,28 +348,28 @@ bool ScOutlineDocFunc::SelectLevel( SCTAB nTab, bool bColumns, sal_uInt16 nLevel
rDocShell.GetUndoManager()->AddUndoAction( rDocShell.GetUndoManager()->AddUndoAction(
new ScUndoOutlineLevel( &rDocShell, new ScUndoOutlineLevel( &rDocShell,
nStart, nEnd, nTab, //! start und end berechnen nStart, nEnd, nTab, //! calculate start and end
pUndoDoc, pUndoTab, pUndoDoc, pUndoTab,
bColumns, nLevel ) ); bColumns, nLevel ) );
} }
ScSubOutlineIterator aIter( &rArray ); // alle Eintraege ScSubOutlineIterator aIter( &rArray ); // all entries
ScOutlineEntry* pEntry; ScOutlineEntry* pEntry;
while ((pEntry=aIter.GetNext()) != nullptr) while ((pEntry=aIter.GetNext()) != nullptr)
{ {
sal_uInt16 nThisLevel = aIter.LastLevel(); sal_uInt16 nThisLevel = aIter.LastLevel();
bool bShow = (nThisLevel < nLevel); bool bShow = (nThisLevel < nLevel);
if (bShow) // einblenden if (bShow) // enable
{ {
pEntry->SetHidden( false ); pEntry->SetHidden( false );
pEntry->SetVisible( true ); pEntry->SetVisible( true );
} }
else if ( nThisLevel == nLevel ) // ausblenden else if ( nThisLevel == nLevel ) // disable
{ {
pEntry->SetHidden( true ); pEntry->SetHidden( true );
pEntry->SetVisible( true ); pEntry->SetVisible( true );
} }
else // verdeckt else // hidden below
{ {
pEntry->SetVisible( false ); pEntry->SetVisible( false );
} }
......
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