diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-21 13:51:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-22 10:37:59 +0200 |
commit | 321b34419160da6829e30fc67f3d107fcb936390 (patch) | |
tree | 56ba938925bf854233453b349894c0087bdce158 /include/vcl/syswin.hxx | |
parent | fc36c689cad5b76a3b256f19cf7caeaa9359560c (diff) |
convert TITLE_BUTTON constants to scoped enum
Change-Id: Ibfee4c394724570d9f64098d3703a08b7246ad2c
Diffstat (limited to 'include/vcl/syswin.hxx')
-rw-r--r-- | include/vcl/syswin.hxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 17ebf5833bac..875586dbc44b 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -120,9 +120,12 @@ enum class MenuBarMode Normal, Hide }; -#define TITLE_BUTTON_DOCKING ((sal_uInt16)1) -#define TITLE_BUTTON_HIDE ((sal_uInt16)2) -#define TITLE_BUTTON_MENU ((sal_uInt16)4) +enum class TitleButton +{ + Docking = 1, + Hide = 2, + Menu = 4, +}; // - SystemWindow - class VCL_DLLPUBLIC SystemWindow @@ -181,7 +184,7 @@ public: virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; virtual bool Close(); - virtual void TitleButtonClick( sal_uInt16 nButton ); + virtual void TitleButtonClick( TitleButton nButton ); virtual void Pin(); virtual void Roll(); virtual void Resizing( Size& rSize ); @@ -201,8 +204,8 @@ public: void EnableSaveBackground( bool bSave = true ); bool IsSaveBackgroundEnabled() const; - void ShowTitleButton( sal_uInt16 nButton, bool bVisible = true ); - bool IsTitleButtonVisible( sal_uInt16 nButton ) const; + void ShowTitleButton( TitleButton nButton, bool bVisible = true ); + bool IsTitleButtonVisible( TitleButton nButton ) const; void SetPin( bool bPin ); bool IsPinned() const { return mbPinned; } |