Kaydet (Commit) 89c4a6a3 authored tarafından Johnny_M's avatar Johnny_M Kaydeden (comit) Bartosz Kosiorek

Translate German variable names

Akt -> Current in table

Change-Id: I108136bd79dcc603649c996ecd58c74d67d7dab9
Reviewed-on: https://gerrit.libreoffice.org/51805Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarBartosz Kosiorek <gang65@poczta.onet.pl>
üst 0562808a
...@@ -982,7 +982,7 @@ void SwTableColumnPage::ModifyHdl( MetricField const * pField ) ...@@ -982,7 +982,7 @@ void SwTableColumnPage::ModifyHdl( MetricField const * pField )
UpdateCols( aValueTable[i] ); UpdateCols( aValueTable[i] );
} }
void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) void SwTableColumnPage::UpdateCols( sal_uInt16 nCurrentPos )
{ {
SwTwips nSum = 0; SwTwips nSum = 0;
...@@ -1001,9 +1001,9 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1001,9 +1001,9 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
sal_uInt16 nLoopCount = 0; sal_uInt16 nLoopCount = 0;
while( nDiff ) while( nDiff )
{ {
if( ++nAktPos == nNoOfVisibleCols) if( ++nCurrentPos == nNoOfVisibleCols)
{ {
nAktPos = 0; nCurrentPos = 0;
++nLoopCount; ++nLoopCount;
//#i101353# in small tables it might not be possible to balance column width //#i101353# in small tables it might not be possible to balance column width
if( nLoopCount > 1 ) if( nLoopCount > 1 )
...@@ -1011,25 +1011,25 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1011,25 +1011,25 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
} }
if( nDiff < 0 ) if( nDiff < 0 )
{ {
SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff);
nDiff = 0; nDiff = 0;
} }
else if( GetVisibleWidth(nAktPos) >= nDiff + nMinWidth ) else if( GetVisibleWidth(nCurrentPos) >= nDiff + nMinWidth )
{ {
SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff);
nDiff = 0; nDiff = 0;
} }
if( nDiff > 0 && GetVisibleWidth(nAktPos) > nMinWidth ) if( nDiff > 0 && GetVisibleWidth(nCurrentPos) > nMinWidth )
{ {
if( nDiff >= (GetVisibleWidth(nAktPos) - nMinWidth) ) if( nDiff >= (GetVisibleWidth(nCurrentPos) - nMinWidth) )
{ {
nDiff -= (GetVisibleWidth(nAktPos) - nMinWidth); nDiff -= (GetVisibleWidth(nCurrentPos) - nMinWidth);
SetVisibleWidth(nAktPos, nMinWidth); SetVisibleWidth(nCurrentPos, nMinWidth);
} }
else else
{ {
nDiff = 0; nDiff = 0;
SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff);
} }
OSL_ENSURE(nDiff >= 0, "nDiff < 0 cannot be here!"); OSL_ENSURE(nDiff >= 0, "nDiff < 0 cannot be here!");
} }
...@@ -1044,7 +1044,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1044,7 +1044,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
if(nDiff > nActSpace) if(nDiff > nActSpace)
{ {
nTableWidth = pTableData->GetSpace(); nTableWidth = pTableData->GetSpace();
SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nActSpace ); SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) - nDiff + nActSpace );
} }
else else
{ {
...@@ -1060,13 +1060,13 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) ...@@ -1060,13 +1060,13 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos )
if(nDiff * nNoOfVisibleCols > pTableData->GetSpace() - nTableWidth) if(nDiff * nNoOfVisibleCols > pTableData->GetSpace() - nTableWidth)
{ {
nAdd = (pTableData->GetSpace() - nTableWidth) / nNoOfVisibleCols; nAdd = (pTableData->GetSpace() - nTableWidth) / nNoOfVisibleCols;
SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nAdd ); SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) - nDiff + nAdd );
nDiff = nAdd; nDiff = nAdd;
} }
if(nAdd) if(nAdd)
for( sal_uInt16 i = 0; i < nNoOfVisibleCols; i++ ) for( sal_uInt16 i = 0; i < nNoOfVisibleCols; i++ )
{ {
if(i == nAktPos) if(i == nCurrentPos)
continue; continue;
SwTwips nVisWidth; SwTwips nVisWidth;
if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY) if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY)
......
...@@ -124,7 +124,7 @@ class SwTableColumnPage : public SfxTabPage ...@@ -124,7 +124,7 @@ class SwTableColumnPage : public SfxTabPage
DECL_LINK( DownHdl, SpinField&, void ); DECL_LINK( DownHdl, SpinField&, void );
DECL_LINK( LoseFocusHdl, Control&, void ); DECL_LINK( LoseFocusHdl, Control&, void );
DECL_LINK( ModeHdl, Button *, void ); DECL_LINK( ModeHdl, Button *, void );
void UpdateCols( sal_uInt16 nAktPos ); void UpdateCols( sal_uInt16 nCurrentPos );
SwTwips GetVisibleWidth(sal_uInt16 nPos); SwTwips GetVisibleWidth(sal_uInt16 nPos);
void SetVisibleWidth(sal_uInt16 nPos, SwTwips nNewWidth); void SetVisibleWidth(sal_uInt16 nPos, SwTwips nNewWidth);
......
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