summaryrefslogtreecommitdiff
path: root/vcl/source/window/floatwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-10 13:02:36 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-11 06:52:14 +0000
commit36028d9010b697ac97da2acc0fa21610ea8731b0 (patch)
treea331a9394eb84a7bcfbbfc593f30e6b5edee1307 /vcl/source/window/floatwin.cxx
parent6104a9807500c59196ff007d24cfe111f0b2754a (diff)
Convert BORDERWINDOW_TITLE to scoped enum
Change-Id: I9e3088c4ba51010a013f5bbaa2bb545ffa11409b Reviewed-on: https://gerrit.libreoffice.org/24836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r--vcl/source/window/floatwin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index f3b8e2b1cc97..1a6107b08774 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -648,15 +648,15 @@ void FloatingWindow::SetTitleType( FloatWinTitleType nTitle )
{
mnTitle = nTitle;
Size aOutSize = GetOutputSizePixel();
- sal_uInt16 nTitleStyle;
+ BorderWindowTitleType nTitleStyle;
if ( nTitle == FloatWinTitleType::Normal )
- nTitleStyle = BORDERWINDOW_TITLE_SMALL;
+ nTitleStyle = BorderWindowTitleType::Small;
else if ( nTitle == FloatWinTitleType::TearOff )
- nTitleStyle = BORDERWINDOW_TITLE_TEAROFF;
+ nTitleStyle = BorderWindowTitleType::Tearoff;
else if ( nTitle == FloatWinTitleType::Popup )
- nTitleStyle = BORDERWINDOW_TITLE_POPUP;
+ nTitleStyle = BorderWindowTitleType::Popup;
else // nTitle == FloatWinTitleType::NONE
- nTitleStyle = BORDERWINDOW_TITLE_NONE;
+ nTitleStyle = BorderWindowTitleType::NONE;
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->SetTitleType( nTitleStyle, aOutSize );
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->GetBorder( mpWindowImpl->mnLeftBorder, mpWindowImpl->mnTopBorder, mpWindowImpl->mnRightBorder, mpWindowImpl->mnBottomBorder );
}