Kaydet (Commit) 551f76f4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Drop unnecessary SfxApplication::CreateResManager wrapper

Change-Id: I2b8662ec85b8f710aa17a2c6f59c4b35af7685f3
üst 7dad0652
......@@ -153,7 +153,6 @@ public:
// Resource Manager
ResMgr* GetSfxResManager();
static ResMgr* CreateResManager( const char *pPrefix );
// DDE
#if defined( WNT )
......
......@@ -130,7 +130,7 @@ void ScModule::InitInterface_Impl()
}
ScModule::ScModule( SfxObjectFactory* pFact ) :
SfxModule( SfxApplication::CreateResManager( "sc" ), false, pFact, NULL ),
SfxModule( ResMgr::CreateResMgr( "sc" ), false, pFact, NULL ),
mpDragData(new ScDragData),
mpClipData(new ScClipData),
pSelTransfer( NULL ),
......
......@@ -22,7 +22,6 @@
#include <unotools/ucbstreamhelper.hxx>
#include <tools/urlobj.hxx>
#include <vcl/virdev.hxx>
#include <sfx2/app.hxx>
#include <vcl/status.hxx>
#include <svl/intitem.hxx>
#include <sfx2/msg.hxx>
......@@ -68,7 +67,7 @@ void SdModule::InitInterface_Impl()
// Ctor
SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 )
: SfxModule( SfxApplication::CreateResManager("sd"), false,
: SfxModule( ResMgr::CreateResMgr("sd"), false,
pFact1, pFact2, NULL ),
pTransferClip(NULL),
pTransferDrag(NULL),
......
......@@ -375,15 +375,6 @@ void SfxApplication::SetViewFrame_Impl( SfxViewFrame *pFrame )
pFrame->GetViewShell()->SetCurrentDocument();
}
ResMgr* SfxApplication::CreateResManager( const char *pPrefix )
{
return ResMgr::CreateResMgr(pPrefix);
}
ResMgr* SfxApplication::GetSfxResManager()
{
return SfxResId::GetResMgr();
......
......@@ -228,9 +228,9 @@ bool SfxApplication::Initialize_Impl()
RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1);
#ifndef DISABLE_SCRIPTING
pAppData_Impl->pBasicResMgr = CreateResManager("sb");
pAppData_Impl->pBasicResMgr = ResMgr::CreateResMgr("sb");
#endif
pAppData_Impl->pSvtResMgr = CreateResManager("svt");
pAppData_Impl->pSvtResMgr = ResMgr::CreateResMgr("svt");
pAppData_Impl->m_pSoErrorHdl = new SfxErrorHandler(
RID_SO_ERROR_HANDLER, ERRCODE_AREA_SO, ERRCODE_AREA_SO_END, pAppData_Impl->pSvtResMgr );
......
......@@ -884,7 +884,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
ResMgr* SfxApplication::GetOffResManager_Impl()
{
if ( !pAppData_Impl->pOfaResMgr )
pAppData_Impl->pOfaResMgr = CreateResManager( "ofa");
pAppData_Impl->pOfaResMgr = ResMgr::CreateResMgr( "ofa");
return pAppData_Impl->pOfaResMgr;
}
......
......@@ -19,7 +19,6 @@
#include <sfx2/sfxresid.hxx>
#include <sfx2/app.hxx>
#include "tools/resmgr.hxx"
......@@ -36,7 +35,7 @@ ResMgr* SfxResId::GetResMgr()
{
if ( !pMgr )
{
pMgr = SfxApplication::CreateResManager("sfx");
pMgr = ResMgr::CreateResMgr("sfx");
}
return pMgr;
......
......@@ -20,7 +20,6 @@
#include <tools/globname.hxx>
#include <vcl/status.hxx>
#include <sfx2/msg.hxx>
#include <sfx2/app.hxx>
#include <sfx2/objface.hxx>
#include <svl/whiter.hxx>
#include <sfx2/request.hxx>
......@@ -164,7 +163,7 @@ void SmModule::InitInterface_Impl()
}
SmModule::SmModule(SfxObjectFactory* pObjFact) :
SfxModule(SfxApplication::CreateResManager("sm"), false, pObjFact, NULL),
SfxModule(ResMgr::CreateResMgr("sm"), false, pObjFact, NULL),
pColorConfig( 0 ),
pConfig( 0 ),
pLocSymbolData( 0 ),
......
......@@ -18,7 +18,7 @@
*/
#include "dialmgr.hxx"
#include <sfx2/app.hxx>
#include <tools/resmgr.hxx>
#ifndef DISABLE_DYNLOADING
ResMgr* pSwResMgr=0;
......@@ -30,7 +30,7 @@ ResMgr* SwDialogsResMgr::GetResMgr()
{
if ( !pSwResMgr )
{
pSwResMgr = SfxApplication::CreateResManager( "sw" );
pSwResMgr = ResMgr::CreateResMgr( "sw" );
}
return pSwResMgr;
......
......@@ -150,7 +150,7 @@ using namespace ::com::sun::star::uno;
SwModule::SwModule( SfxObjectFactory* pWebFact,
SfxObjectFactory* pFact,
SfxObjectFactory* pGlobalFact )
: SfxModule( SfxApplication::CreateResManager( "sw" ), false, pWebFact,
: SfxModule( ResMgr::CreateResMgr( "sw" ), false, pWebFact,
pFact, pGlobalFact, NULL ),
pModuleConfig(0),
pUsrPref(0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment