diff options
-rw-r--r-- | avmedia/source/viewer/mediawindow.cxx | 4 | ||||
-rw-r--r-- | avmedia/source/viewer/mediawindow.hrc | 3 | ||||
-rw-r--r-- | avmedia/source/viewer/mediawindow.src | 6 |
3 files changed, 5 insertions, 8 deletions
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx index e586a587e2ef..49e559dbd1f4 100644 --- a/avmedia/source/viewer/mediawindow.cxx +++ b/avmedia/source/viewer/mediawindow.cxx @@ -25,7 +25,7 @@ #include "mediamisc.hxx" #include "mediawindow.hrc" #include <tools/urlobj.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <unotools/pathoptions.hxx> #include <sfx2/filedlghelper.hxx> #include <comphelper/processfactory.hxx> @@ -322,7 +322,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */, void MediaWindow::executeFormatErrorBox( Window* pParent ) { - ErrorBox aErrBox( pParent, AVMEDIA_RESID( AVMEDIA_ERR_URL ) ); + MessageDialog aErrBox( pParent, AVMEDIA_RESID( AVMEDIA_STR_ERR_URL ) ); aErrBox.Execute(); } diff --git a/avmedia/source/viewer/mediawindow.hrc b/avmedia/source/viewer/mediawindow.hrc index 8835505b0dfb..3288eeae83f1 100644 --- a/avmedia/source/viewer/mediawindow.hrc +++ b/avmedia/source/viewer/mediawindow.hrc @@ -21,10 +21,9 @@ #define AVMEDIA_STR_INSERTMEDIA_DLG 16385 #define AVMEDIA_STR_ALL_MEDIAFILES 16386 #define AVMEDIA_STR_ALL_FILES 16387 +#define AVMEDIA_STR_ERR_URL 16388 #define AVMEDIA_BMP_AUDIOLOGO 20000 #define AVMEDIA_BMP_EMPTYLOGO 20001 -#define AVMEDIA_ERR_URL 21000 - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/avmedia/source/viewer/mediawindow.src b/avmedia/source/viewer/mediawindow.src index 6c7b879cdaa0..368dee1425df 100644 --- a/avmedia/source/viewer/mediawindow.src +++ b/avmedia/source/viewer/mediawindow.src @@ -49,11 +49,9 @@ Bitmap AVMEDIA_BMP_EMPTYLOGO file = "avemptylogo.png"; }; -ErrorBox AVMEDIA_ERR_URL +String AVMEDIA_STR_ERR_URL { - BUTTONS = WB_OK ; - DEFBUTTON = WB_DEF_OK ; - Message[en-US] = "The format of the selected file is not supported."; + Text[en-US] = "The format of the selected file is not supported."; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |