diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-10-13 07:56:44 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-10-13 07:56:44 +0000 |
commit | 9e76b7615a46093f0c8ddebb274da43d2d1745e3 (patch) | |
tree | a2350c44636f9423519b612f799578777aabc1f6 /vcl | |
parent | 5663f4945b0578cd4b7e5a2512a5912fc1c19274 (diff) |
INTEGRATION: CWS vcl27 (1.12.192); FILE MERGED
2004/09/13 11:11:53 dv 1.12.192.1: #116950# Added support for ABORT_RETRY_IGNORE message box
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/msgbox.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index bf57ae7b1503..4d469bc50e38 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: msgbox.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: vg $ $Date: 2004-01-06 14:14:46 $ + * last change: $Author: hr $ $Date: 2004-10-13 08:56:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -177,7 +177,23 @@ void MessBox::ImplInitButtons() AddButton( BUTTON_RETRY, BUTTONID_RETRY, nRetryFlags ); AddButton( BUTTON_CANCEL, BUTTONID_CANCEL, nCancelFlags ); + } + else if ( nStyle & WB_ABORT_RETRY_IGNORE ) + { + USHORT nAbortFlags = 0; + USHORT nRetryFlags = 0; + USHORT nIgnoreFlags = 0; + + if ( nStyle & WB_DEF_CANCEL ) + nAbortFlags |= BUTTONDIALOG_DEFBUTTON | BUTTONDIALOG_FOCUSBUTTON; + else if ( nStyle & WB_DEF_RETRY ) + nRetryFlags |= BUTTONDIALOG_DEFBUTTON | BUTTONDIALOG_FOCUSBUTTON; + else if ( nStyle & WB_DEF_IGNORE ) + nIgnoreFlags |= BUTTONDIALOG_DEFBUTTON | BUTTONDIALOG_FOCUSBUTTON; + AddButton( BUTTON_ABORT, BUTTONID_CANCEL, nAbortFlags ); + AddButton( BUTTON_RETRY, BUTTONID_RETRY, nRetryFlags ); + AddButton( BUTTON_IGNORE, BUTTONID_IGNORE, nIgnoreFlags ); } else if ( nStyle & WB_OK ) { |