Kaydet (Commit) bcb13925 authored tarafından Caolán McNamara's avatar Caolán McNamara

move MessBoxStyle to last consumer

Change-Id: I1edbf247999cd59cee4d268ed686e8ed9b61d99f
Reviewed-on: https://gerrit.libreoffice.org/51712Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a084d003
......@@ -79,7 +79,6 @@
#include <vcl/menu.hxx>
#include <vcl/metaact.hxx>
#include <vcl/metaactiontypes.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/outdev.hxx>
#include <vcl/outdevmap.hxx>
#include <vcl/outdevstate.hxx>
......
......@@ -21,34 +21,6 @@
#define INCLUDED_VCL_MSGBOX_HXX
#include <vcl/dllapi.h>
#include <vcl/btndlg.hxx>
#include <vcl/image.hxx>
#include <vcl/bitmap.hxx>
#include <o3tl/typed_flags_set.hxx>
class VclMultiLineEdit;
class FixedImage;
class CheckBox;
// 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> {};
}
VCL_DLLPUBLIC Image const & GetStandardInfoBoxImage();
VCL_DLLPUBLIC OUString GetStandardInfoBoxText();
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment