summaryrefslogtreecommitdiff
path: root/vcl/source/window/syswin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-21 13:51:35 +0200
committerNoel Grandin <noel@peralex.com>2015-05-22 10:37:59 +0200
commit321b34419160da6829e30fc67f3d107fcb936390 (patch)
tree56ba938925bf854233453b349894c0087bdce158 /vcl/source/window/syswin.cxx
parentfc36c689cad5b76a3b256f19cf7caeaa9359560c (diff)
convert TITLE_BUTTON constants to scoped enum
Change-Id: Ibfee4c394724570d9f64098d3703a08b7246ad2c
Diffstat (limited to 'vcl/source/window/syswin.cxx')
-rw-r--r--vcl/source/window/syswin.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index e595f6f84769..34859d2e3b62 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -233,7 +233,7 @@ bool SystemWindow::Close()
return true;
}
-void SystemWindow::TitleButtonClick( sal_uInt16 )
+void SystemWindow::TitleButtonClick( TitleButton )
{
}
@@ -309,9 +309,9 @@ bool SystemWindow::IsSaveBackgroundEnabled() const
return false;
}
-void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
+void SystemWindow::ShowTitleButton( TitleButton nButton, bool bVisible )
{
- if ( nButton == TITLE_BUTTON_DOCKING )
+ if ( nButton == TitleButton::Docking )
{
if ( mbDockBtn != bVisible )
{
@@ -320,7 +320,7 @@ void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->SetDockButton( bVisible );
}
}
- else if ( nButton == TITLE_BUTTON_HIDE )
+ else if ( nButton == TitleButton::Hide )
{
if ( mbHideBtn != bVisible )
{
@@ -329,7 +329,7 @@ void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->SetHideButton( bVisible );
}
}
- else if ( nButton == TITLE_BUTTON_MENU )
+ else if ( nButton == TitleButton::Menu )
{
if ( mpWindowImpl->mpBorderWindow )
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->SetMenuButton( bVisible );
@@ -338,11 +338,11 @@ void SystemWindow::ShowTitleButton( sal_uInt16 nButton, bool bVisible )
return;
}
-bool SystemWindow::IsTitleButtonVisible( sal_uInt16 nButton ) const
+bool SystemWindow::IsTitleButtonVisible( TitleButton nButton ) const
{
- if ( nButton == TITLE_BUTTON_DOCKING )
+ if ( nButton == TitleButton::Docking )
return mbDockBtn;
- else /* if ( nButton == TITLE_BUTTON_HIDE ) */
+ else /* if ( nButton == TitleButton::Hide ) */
return mbHideBtn;
}