diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-21 16:05:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-22 00:28:22 +0100 |
commit | bcb1392505ee3a19d8062402ff66888f1631b264 (patch) | |
tree | 6f00efc03f5975a860b825d3af97443364d5730e /toolkit/inc | |
parent | a084d003a927440fb56b11a0b7175360a1af41ab (diff) |
move MessBoxStyle to last consumer
Change-Id: I1edbf247999cd59cee4d268ed686e8ed9b61d99f
Reviewed-on: https://gerrit.libreoffice.org/51712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit/inc')
-rw-r--r-- | toolkit/inc/helper/msgbox.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/toolkit/inc/helper/msgbox.hxx b/toolkit/inc/helper/msgbox.hxx index 327c87e971b9..40c7aa5514b3 100644 --- a/toolkit/inc/helper/msgbox.hxx +++ b/toolkit/inc/helper/msgbox.hxx @@ -17,8 +17,33 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <o3tl/typed_flags_set.hxx> #include <vcl/btndlg.hxx> +// Window-Bits for MessageBoxen +enum class MessBoxStyle +{ + NONE = 0x0000, + Ok = 0x0001, + OkCancel = 0x0002, + YesNo = 0x0004, + YesNoCancel = 0x0008, + RetryCancel = 0x0010, + DefaultOk = 0x0020, + DefaultCancel = 0x0040, + DefaultRetry = 0x0080, + DefaultYes = 0x0100, + DefaultNo = 0x0200, + AbortRetryIgnore = 0x1000, + DefaultIgnore = 0x2000, +}; +namespace o3tl +{ +template <> struct typed_flags<MessBoxStyle> : is_typed_flags<MessBoxStyle, 0x3fff> +{ +}; +} + class MessBox : public ButtonDialog { VclPtr<VclMultiLineEdit> mpVCLMultiLineEdit; |