Kaydet (Commit) c98c650a authored tarafından Caolán McNamara's avatar Caolán McNamara

SfxModule has GetResMgr so SfxShell and SfxInterface don't need GetResMgr

Change-Id: I6160f8b396ac5e5fb799ee03c5b0181fb088cb54
üst 8ccf5594
......@@ -75,7 +75,6 @@ public:
SfxObjectFactory* pFactoryP, ... );
virtual ~SfxModule();
ResMgr* GetResMgr() const { return SfxShell::GetResMgr(); }
virtual ResMgr* GetResMgr();
SfxSlotPool* GetSlotPool() const;
......
......@@ -65,8 +65,6 @@ public:
bool HasName() const { return 0 != aNameResId.GetId(); }
OUString GetName() const
{ return HasName() ? aNameResId.toString() : OUString(); }
ResMgr* GetResMgr() const
{ return aNameResId.GetResMgr(); }
const SfxInterface* GetGenoType() const { return pGenoType; }
......
......@@ -431,12 +431,6 @@ public:
*/
SfxViewFrame* GetFrame() const;
/**
This method provides the ResMgr of the <Resource-DLL> that are used by
the SfxShell instance. If this is a NULL-pointer, then the current
resource manager is to be used.
*/
ResMgr* GetResMgr() const;
virtual bool HasUIFeature( sal_uInt32 nFeature );
void UIFeatureChanged();
......
......@@ -395,11 +395,6 @@ void SfxShell::ParentDeactivate
{
}
ResMgr* SfxShell::GetResMgr() const
{
return GetInterface()->GetResMgr();
}
bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot )
{
// Get Slot status
......
......@@ -714,7 +714,8 @@ void SfxCommonTemplateDialog_Impl::ReadResource()
SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame();
pCurObjShell = pViewFrame->GetObjectShell();
ResMgr* pMgr = pCurObjShell ? pCurObjShell->GetResMgr() : NULL;
pModule = pCurObjShell ? pCurObjShell->GetModule() : NULL;
ResMgr* pMgr = pModule ? pModule->GetResMgr() : NULL;
ResId aFamId( DLG_STYLE_DESIGNER, *pMgr );
aFamId.SetRT(RSC_SFX_STYLE_FAMILIES);
m_pStyleFamiliesId = new ResId( aFamId.GetId(), *pMgr );
......@@ -800,12 +801,8 @@ void SfxCommonTemplateDialog_Impl::ReadResource()
for ( i = nStart; i <= nEnd; i++ )
pBindings->Update(i);
pModule = pCurObjShell ? pCurObjShell->GetModule() : NULL;
}
void SfxCommonTemplateDialog_Impl::ClearResource()
{
ClearFamilyList();
......@@ -834,7 +831,6 @@ SfxCommonTemplateDialog_Impl::impl_setDeletionWatcher(
return pRet;
}
void SfxCommonTemplateDialog_Impl::Initialize()
{
// Read global user resource
......@@ -855,8 +851,6 @@ void SfxCommonTemplateDialog_Impl::Initialize()
aFmtLb.Show();
}
SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
{
OUString aEmpty;
......
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