summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-18 08:50:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-18 10:57:21 +0100
commita107bdfdfc1baf73f14055262d64bf616fc0a889 (patch)
tree2e4cbadd538f5e8d495fb8953a5a7939c8ab2bb5 /fpicker
parent3b6091ca42cd2d9f230e7d81648c34f3d7085107 (diff)
ErrorBox->MessageDialog
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 00e638cc347a..a1478140687b 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -25,8 +25,8 @@
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <vcl/fixed.hxx>
+#include <vcl/layout.hxx>
#include <vcl/lstbox.hxx>
-#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <vcl/timer.hxx>
#include <unotools/ucbhelper.hxx>
@@ -1042,7 +1042,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
"$filename$",
aFileObj.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET)
);
- QueryBox aBox( pThis, WB_YES_NO, aMsg );
+ MessageDialog aBox(pThis, aMsg, VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
if ( aBox.Execute() != RET_YES )
return 0;
}
@@ -1087,7 +1087,7 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid )
}
sError = sError.replaceFirst( "$name$", sInvalidFile );
- ErrorBox aError( pThis, WB_OK, sError );
+ MessageDialog aError(pThis, sError);
aError.Execute();
return 0;
}
@@ -1883,7 +1883,7 @@ short SvtFileDialog::PrepareExecute()
if ( bEmpty )
{
- ErrorBox aBox( this, WB_OK, SVT_RESSTR( STR_SVT_NOREMOVABLEDEVICE ) );
+ MessageDialog aBox(this, SVT_RESSTR(STR_SVT_NOREMOVABLEDEVICE));
aBox.Execute();
return 0;
}