summaryrefslogtreecommitdiff
path: root/sw/source/ui/table
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-24 14:33:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-24 15:11:44 +0100
commitdb4154cc19c803707f34bdd5ce4e8a43eac528a6 (patch)
tree6a55c6c5251c175d42772f54295aa97d76c4b70f /sw/source/ui/table
parent1c068a7a772ab903af627236ee93b0a1804be844 (diff)
add gtk_message_dialog_new-alike ctor for MessageDialog
Change-Id: Ie422cd2c903cbd18353b1929c074574d452559ce
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r--sw/source/ui/table/tautofmt.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
index 20b4589712a0..de31736cc40b 100644
--- a/sw/source/ui/table/tautofmt.cxx
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -333,10 +333,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, AddHdl)
if( !bFmtInserted )
{
- bOk = RET_CANCEL == ErrorBox( this,
- WinBits( WB_OK_CANCEL | WB_DEF_OK),
- aStrInvalidFmt
- ).Execute();
+ bOk = RET_CANCEL == MessageDialog(this, aStrInvalidFmt, VCL_MESSAGE_ERROR, VCL_BUTTONS_OK_CANCEL)
+ .Execute();
}
}
else
@@ -437,10 +435,8 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl)
if( !bFmtRenamed )
{
- bOk = RET_CANCEL == ErrorBox( this,
- WinBits( WB_OK_CANCEL | WB_DEF_OK),
- aStrInvalidFmt
- ).Execute();
+ bOk = RET_CANCEL == MessageDialog(this, aStrInvalidFmt, VCL_MESSAGE_ERROR, VCL_BUTTONS_OK_CANCEL)
+ .Execute();
}
}
else