diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-22 10:37:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-22 10:37:59 +0200 |
commit | ac3802da9ac7793c60a323bb8066c10fb40cf576 (patch) | |
tree | 659a60dafb818c327d3276b2a73a83498603d144 /sc/source/ui | |
parent | 566922a98d548529feacb7c21bfc8897ff5b61af (diff) |
convert WINDOW_POSSIZE constants to scoped enum
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/dbgui/csvruler.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/csvruler.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx index fb139634a1a2..aab46e9d2e5c 100644 --- a/sc/source/ui/dbgui/csvruler.cxx +++ b/sc/source/ui/dbgui/csvruler.cxx @@ -113,9 +113,9 @@ void ScCsvRuler::dispose() // common ruler handling ------------------------------------------------------ void ScCsvRuler::setPosSizePixel( - long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags ) + long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags ) { - if( nFlags & WINDOW_POSSIZE_HEIGHT ) + if( nFlags & PosSizeFlags::Height ) nHeight = GetTextHeight() + mnSplitSize + 2; ScCsvControl::setPosSizePixel( nX, nY, nWidth, nHeight, nFlags ); } diff --git a/sc/source/ui/inc/csvruler.hxx b/sc/source/ui/inc/csvruler.hxx index 6fc719db43f4..44f8a765bddb 100644 --- a/sc/source/ui/inc/csvruler.hxx +++ b/sc/source/ui/inc/csvruler.hxx @@ -63,7 +63,7 @@ public: virtual void setPosSizePixel( long nX, long nY, long nWidth, long nHeight, - sal_uInt16 nFlags = WINDOW_POSSIZE_ALL ) SAL_OVERRIDE; + PosSizeFlags nFlags = PosSizeFlags::All ) SAL_OVERRIDE; /** Apply current layout data to the ruler. */ void ApplyLayout( const ScCsvLayoutData& rOldData ); diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 77bf5a495731..04ec62ba7521 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -600,7 +600,7 @@ ScNavigatorDlg::ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, vcl (aTbxCmd->GetPosPixel().Y() + aTbxCmd->GetSizePixel().Height()), (aEdRow->GetPosPixel().Y() + aEdRow->GetSizePixel().Height()) ) + 4; - aLbEntries->setPosSizePixel( 0, nListboxYPos, 0, 0, WINDOW_POSSIZE_Y); + aLbEntries->setPosSizePixel( 0, nListboxYPos, 0, 0, PosSizeFlags::Y); nBorderOffset = aLbEntries->GetPosPixel().X(); |