summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-15 20:20:00 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-15 23:30:20 +0200
commit113830171478fd01441f8fc20b6132aba535174a (patch)
treef7095ff45e351ffd444c9c31a868074af434ea5f /avmedia
parent0494f0029ffbd17c1355437352bf42b193eab27e (diff)
ErrorBox AVMEDIA_ERR_URL to String
Change-Id: Id897c62fbfe9728bef2264769871aade8c82dbdb
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/viewer/mediawindow.cxx4
-rw-r--r--avmedia/source/viewer/mediawindow.hrc3
-rw-r--r--avmedia/source/viewer/mediawindow.src6
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: */