summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/crstrvl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-24 12:06:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-24 14:18:23 +0200
commita910081e0634120118d6f32996591928677d504f (patch)
tree186345c33254ca7b7a55e0ec664070acb69970bf /sw/source/core/crsr/crstrvl.cxx
parent2be4afe53a94fc051aae9ba9b20443f7a350fb18 (diff)
convert SwFillMode to scoped enum
Change-Id: I03230496aac57f8855ce8d3dcd8576d265060aa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92845 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/crsr/crstrvl.cxx')
-rw-r--r--sw/source/core/crsr/crstrvl.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index c9ced018ee83..dd0d50c58d2c 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -2101,7 +2101,7 @@ bool SwCursorShell::SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode )
// If only the paragraph attributes "Adjust" or "LRSpace" are set,
// then the following should not delete those again.
if( 0 == aFPos.nParaCnt + aFPos.nColumnCnt &&
- ( FILL_INDENT == aFPos.eMode ||
+ ( SwFillMode::Indent == aFPos.eMode ||
( text::HoriOrientation::NONE != aFPos.eOrient &&
0 == aFPos.nTabCnt + aFPos.nSpaceCnt )) &&
pCNd && pCNd->Len() )
@@ -2147,7 +2147,7 @@ bool SwCursorShell::SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode )
*m_pCurrentCursor->GetPoint() = aPos;
switch( aFPos.eMode )
{
- case FILL_INDENT:
+ case SwFillMode::Indent:
if( nullptr != (pCNd = aPos.nNode.GetNode().GetContentNode() ))
{
SfxItemSet aSet(
@@ -2173,12 +2173,12 @@ bool SwCursorShell::SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode )
}
break;
- case FILL_TAB:
- case FILL_TAB_SPACE:
- case FILL_SPACE:
+ case SwFillMode::Tab:
+ case SwFillMode::TabSpace:
+ case SwFillMode::Space:
{
OUStringBuffer sInsert;
- if (aFPos.eMode == FILL_SPACE)
+ if (aFPos.eMode == SwFillMode::Space)
{
comphelper::string::padToLength(sInsert, sInsert.getLength() + aFPos.nSpaceOnlyCnt, ' ');
}
@@ -2193,7 +2193,7 @@ bool SwCursorShell::SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode )
GetDoc()->getIDocumentContentOperations().InsertString( *m_pCurrentCursor, sInsert.makeStringAndClear());
}
[[fallthrough]]; // still need to set orientation
- case FILL_MARGIN:
+ case SwFillMode::Margin:
if( text::HoriOrientation::NONE != aFPos.eOrient )
{
SvxAdjustItem aAdj( SvxAdjust::Left, RES_PARATR_ADJUST );