diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-10 10:46:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-11 06:57:12 +0100 |
commit | 412ca1ff72d2031d327df658a94e63bdcb8583b0 (patch) | |
tree | 7f6b173d04d94967d6ac114c216a72e0e44a4940 /sw/source/uibase/shells/tabsh.cxx | |
parent | d5d8fa63282a433da9c49d811f04390b8d6ab9cc (diff) |
convert SwFrameSize to scoped enum
Change-Id: I7e1e641ff180035c7dcefdcfdd185eadbae32142
Reviewed-on: https://gerrit.libreoffice.org/84850
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/shells/tabsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/tabsh.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index 073fe280c924..2c292bd9b72e 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -375,7 +375,7 @@ void ItemSetToTableParam( const SfxItemSet& rSet, } else { - SwFormatFrameSize aSz( ATT_VAR_SIZE, nWidth ); + SwFormatFrameSize aSz( SwFrameSize::Variable, nWidth ); if(pRep->GetWidthPercent()) { aSz.SetWidthPercent( static_cast<sal_uInt8>(pRep->GetWidthPercent()) ); @@ -1126,8 +1126,8 @@ void SwTableShell::Execute(SfxRequest &rReq) std::unique_ptr<SwFormatFrameSize> pHeight = rSh.GetRowHeight(); if ( pHeight ) { - if (pHeight->GetHeightSizeType() == ATT_VAR_SIZE) - pHeight->SetHeightSizeType(ATT_MIN_SIZE); + if (pHeight->GetHeightSizeType() == SwFrameSize::Variable) + pHeight->SetHeightSizeType(SwFrameSize::Minimum); pHeight->SetHeight(nNewHeight); rSh.SetRowHeight(*pHeight); } @@ -1309,7 +1309,7 @@ void SwTableShell::GetState(SfxItemSet &rSet) std::unique_ptr<SwFormatFrameSize> pSz = rSh.GetRowHeight(); if ( pSz ) { - if ( ATT_VAR_SIZE == pSz->GetHeightSizeType() ) + if ( SwFrameSize::Variable == pSz->GetHeightSizeType() ) rSet.DisableItem( nSlot ); } break; |