diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 14:10:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | 27caeb631927a3e9dd8510768535afcd8f393773 (patch) | |
tree | 05b975dd555bab7aa2fe2212d74281551fbe6dd7 /svx/source/dialog/svxruler.cxx | |
parent | 70d76c8165bc9393a92fa6d0dc9922364988abe2 (diff) |
convert UpdateType to scoped enum
Change-Id: I1000875c186ee21d065e97b522f464ed6b635758
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 7d05af05d1ad..1d3e1a0b5a9f 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -1714,13 +1714,13 @@ void SvxRuler::UpdateParaContents_Impl( /* Helper function; carry Tabs and Paragraph Margins */ switch(eType) { - case MOVE_RIGHT: + case UpdateType::MoveRight: mpIndents[INDENT_RIGHT_MARGIN].nPos += lDifference; break; - case MOVE_ALL: + case UpdateType::MoveAll: mpIndents[INDENT_RIGHT_MARGIN].nPos += lDifference; SAL_FALLTHROUGH; - case MOVE_LEFT: + case UpdateType::MoveLeft: { mpIndents[INDENT_FIRST_LINE].nPos += lDifference; mpIndents[INDENT_LEFT_MARGIN].nPos += lDifference; @@ -1783,13 +1783,13 @@ ADD_DEBUG_TEXT("lLastLMargin: ", OUString::number(mxRulerImpl->lLastLMargin)) // RR update the column if(i == GetActRightColumn()) { - UpdateParaContents_Impl(mpBorders[i].nPos - l, MOVE_RIGHT); + UpdateParaContents_Impl(mpBorders[i].nPos - l, UpdateType::MoveRight); bRightIndentsCorrected = true; } // LAR, EZE update the column else if(i == GetActLeftColumn()) { - UpdateParaContents_Impl(mpBorders[i].nPos - l, MOVE_LEFT); + UpdateParaContents_Impl(mpBorders[i].nPos - l, UpdateType::MoveLeft); bLeftIndentsCorrected = true; } } @@ -1857,13 +1857,13 @@ ADD_DEBUG_TEXT("lLastLMargin: ", OUString::number(mxRulerImpl->lLastLMargin)) { if(i == GetActRightColumn()) { - UpdateParaContents_Impl(mpBorders[i].nPos - l, MOVE_RIGHT); + UpdateParaContents_Impl(mpBorders[i].nPos - l, UpdateType::MoveRight); bRightIndentsCorrected = true; } // LAR, EZE update the column else if(i == GetActLeftColumn()) { - UpdateParaContents_Impl(mpBorders[i].nPos - l, MOVE_LEFT); + UpdateParaContents_Impl(mpBorders[i].nPos - l, UpdateType::MoveLeft); bLeftIndentsCorrected = true; } } @@ -1946,14 +1946,14 @@ ADD_DEBUG_TEXT("lLastLMargin: ", OUString::number(mxRulerImpl->lLastLMargin)) !mpIndents.empty() && !mxRulerImpl->bIsTableRows) { - UpdateParaContents_Impl(lDiff, MOVE_RIGHT); + UpdateParaContents_Impl(lDiff, UpdateType::MoveRight); } else if(!bLeftIndentsCorrected && GetActLeftColumn() == nIndex && nDragSize != RulerDragSize::N1 && !mpIndents.empty()) { - UpdateParaContents_Impl(lDiff, MOVE_LEFT); + UpdateParaContents_Impl(lDiff, UpdateType::MoveLeft); } SetBorders(mxColumnItem->Count() - 1, &mpBorders[0]); } |