summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-15 21:09:27 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-15 23:30:23 +0200
commita470c10d88b7824a9d3a986b302beef115fbc303 (patch)
tree78174ffa5a9d8bf4855c1f5788e6e9538f7374c5 /sfx2
parentc584f344b7f810c297da616befdc354b86fbf8b8 (diff)
ErrorBox RID_ERRBOX_MODULENOTINSTALLED to String
And move to sfx2 to stop this ResMgr mangling Change-Id: I4633766fdcc53189cdb508f9eddaa6b2e8448858
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx14
-rw-r--r--sfx2/source/appl/sfx.src5
2 files changed, 7 insertions, 12 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 90ca40937452..9390ee9bcaf5 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -54,7 +54,7 @@
#include <unotools/configmgr.hxx>
#include <tools/diagnose_ex.h>
-#include <vcl/msgbox.hxx>
+#include <vcl/layout.hxx>
#include <svl/intitem.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
@@ -878,16 +878,6 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
#endif
-
-#define RID_ERRBOX_MODULENOTINSTALLED (RID_OFA_START + 72)
-
-ResMgr* SfxApplication::GetOffResManager_Impl()
-{
- if ( !pAppData_Impl->pOfaResMgr )
- pAppData_Impl->pOfaResMgr = ResMgr::CreateResMgr( "ofa");
- return pAppData_Impl->pOfaResMgr;
-}
-
namespace
{
#ifndef DISABLE_SCRIPTING
@@ -1277,7 +1267,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
SvtModuleOptions aModuleOpt;
if ( !aModuleOpt.IsImpress() )
{
- ErrorBox( 0, ResId( RID_ERRBOX_MODULENOTINSTALLED, *GetOffResManager_Impl() )).Execute();
+ MessageDialog( 0, SFX2_RESSTR( STR_MODULENOTINSTALLED )).Execute();
return;
}
diff --git a/sfx2/source/appl/sfx.src b/sfx2/source/appl/sfx.src
index 16f3044b699d..11467c866e70 100644
--- a/sfx2/source/appl/sfx.src
+++ b/sfx2/source/appl/sfx.src
@@ -44,6 +44,11 @@ String STR_PASSWD
Text [ en-US ] = "Password" ;
};
+String STR_MODULENOTINSTALLED
+{
+ Text [ en-US ] = "The action could not be executed. The %PRODUCTNAME program module needed for this action is currently not installed.";
+};
+
Bitmap ( SFX_THUMBNAIL_TEXT )
{
File = "ott_96_8.png";