[Libreoffice-commits] core.git: basctl/source include/sfx2 sc/source sd/source sfx2/source starmath/source sw/source
Caolán McNamara
caolanm at redhat.com
Mon Mar 7 15:28:40 UTC 2016
basctl/source/basicide/basdoc.cxx | 2 +-
include/sfx2/objface.hxx | 4 ++--
sc/source/ui/app/scmod.cxx | 2 +-
sd/source/ui/app/sdmod.cxx | 2 +-
sfx2/source/appl/appmisc.cxx | 2 +-
sfx2/source/control/dispatch.cxx | 2 +-
sfx2/source/control/objface.cxx | 22 +++++++++++-----------
starmath/source/smmod.cxx | 2 +-
sw/source/uibase/app/apphdl.cxx | 2 +-
9 files changed, 20 insertions(+), 20 deletions(-)
New commits:
commit 5ea0d6b10dc641fe36f0ada2c182f4482554f461
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Mar 7 15:22:39 2016 +0000
these ResIds are used solely for their number by now
so cut out the middle-man ResId
Change-Id: Ic83db355cc1a0c7dc70958bca79b466baadaedd0
diff --git a/basctl/source/basicide/basdoc.cxx b/basctl/source/basicide/basdoc.cxx
index d985697..004d02a 100644
--- a/basctl/source/basicide/basdoc.cxx
+++ b/basctl/source/basicide/basdoc.cxx
@@ -40,7 +40,7 @@ SFX_IMPL_SUPERCLASS_INTERFACE(basctl_DocShell, SfxObjectShell)
void basctl_DocShell::InitInterface_Impl()
{
- GetStaticInterface()->RegisterStatusBar(IDEResId(SID_BASICIDE_STATUSBAR));
+ GetStaticInterface()->RegisterStatusBar(SID_BASICIDE_STATUSBAR);
}
DocShell::DocShell()
diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx
index 7ca1b97..a699907 100644
--- a/include/sfx2/objface.hxx
+++ b/include/sfx2/objface.hxx
@@ -70,7 +70,7 @@ public:
void RegisterObjectBar(sal_uInt16, sal_uInt32 nResId, sal_uInt32 nFeature);
void RegisterChildWindow(sal_uInt16, bool bContext = false);
void RegisterChildWindow(sal_uInt16, bool bContext, sal_uInt32 nFeature);
- void RegisterStatusBar( const ResId& );
+ void RegisterStatusBar(sal_uInt32 nResId);
sal_uInt32 GetObjectBarId(sal_uInt16 nNo) const;
sal_uInt16 GetObjectBarPos( sal_uInt16 nNo ) const;
sal_uInt32 GetObjectBarFeature( sal_uInt16 nNo ) const;
@@ -83,7 +83,7 @@ public:
void RegisterPopupMenu( const OUString& );
const ResId& GetPopupMenuResId() const;
const OUString& GetPopupMenuName() const;
- const ResId& GetStatusBarResId() const;
+ sal_uInt32 GetStatusBarId() const;
void Register( SfxModule* );
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 4d7e2d5..f9afa31 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -126,7 +126,7 @@ void ScModule::InitInterface_Impl()
GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_APPLICATION | SFX_VISIBILITY_DESKTOP | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_CLIENT | SFX_VISIBILITY_VIEWER,
RID_OBJECTBAR_APP);
- GetStaticInterface()->RegisterStatusBar(ScResId(SCCFG_STATUSBAR));
+ GetStaticInterface()->RegisterStatusBar(SCCFG_STATUSBAR);
}
ScModule::ScModule( SfxObjectFactory* pFact ) :
diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx
index add56e7..59f62db 100644
--- a/sd/source/ui/app/sdmod.cxx
+++ b/sd/source/ui/app/sdmod.cxx
@@ -62,7 +62,7 @@ SFX_IMPL_INTERFACE(SdModule, SfxModule)
void SdModule::InitInterface_Impl()
{
- GetStaticInterface()->RegisterStatusBar(SdResId(RID_DRAW_STATUSBAR));
+ GetStaticInterface()->RegisterStatusBar(RID_DRAW_STATUSBAR);
}
// Ctor
diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index 3721838..3e3b419 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -92,7 +92,7 @@ SFX_IMPL_INTERFACE(SfxApplication,SfxShell)
void SfxApplication::InitInterface_Impl()
{
- GetStaticInterface()->RegisterStatusBar(SfxResId(SFX_ITEMTYPE_STATBAR));
+ GetStaticInterface()->RegisterStatusBar(SFX_ITEMTYPE_STATBAR);
GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_0);
GetStaticInterface()->RegisterChildWindow(SID_DOCKWIN_1);
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 576a2b9..7851e1f 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1368,7 +1368,7 @@ void SfxDispatcher::_Update_Impl( bool bUIActive, bool bIsMDIApp, bool bIsIPOwne
if ( bIsMDIApp || bIsIPOwner )
{
- sal_uInt32 nId = pIFace->GetStatusBarResId().GetId();
+ sal_uInt32 nId = pIFace->GetStatusBarId();
if ( nId )
{
nStatBarId = nId;
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index b180f40..49535d3 100644
--- a/sfx2/source/control/objface.cxx
+++ b/sfx2/source/control/objface.cxx
@@ -78,14 +78,14 @@ struct SfxInterface_Impl
SfxObjectUIArr_Impl aObjectBars; // registered ObjectBars
SfxObjectUIArr_Impl aChildWindows; // registered ChildWindows
OUString aPopupName; // registered PopupMenu
- ResId aStatBarRes; // registered StatusBar
+ sal_uInt32 nStatBarResId; // registered StatusBar
SfxModule* pModule;
bool bRegistered;
- SfxInterface_Impl() :
- aStatBarRes(nullptr, *SfxApplication::GetSfxResManager())
- , pModule(nullptr)
- , bRegistered(false)
+ SfxInterface_Impl()
+ : nStatBarResId(0)
+ , pModule(nullptr)
+ , bRegistered(false)
{
}
@@ -444,9 +444,9 @@ void SfxInterface::RegisterChildWindow(sal_uInt16 nId, bool bContext, sal_uInt32
pImpData->aChildWindows.push_back(pUI);
}
-void SfxInterface::RegisterStatusBar(const ResId& rResId)
+void SfxInterface::RegisterStatusBar(sal_uInt32 nResId)
{
- pImpData->aStatBarRes = rResId;
+ pImpData->nStatBarResId = nResId;
}
sal_uInt32 SfxInterface::GetChildWindowId (sal_uInt16 nNo) const
@@ -502,12 +502,12 @@ const OUString& SfxInterface::GetPopupMenuName() const
return pImpData->aPopupName;
}
-const ResId& SfxInterface::GetStatusBarResId() const
+sal_uInt32 SfxInterface::GetStatusBarId() const
{
- if (pImpData->aStatBarRes.GetId() == 0 && pGenoType)
- return pGenoType->GetStatusBarResId();
+ if (pImpData->nStatBarResId == 0 && pGenoType)
+ return pGenoType->GetStatusBarId();
else
- return pImpData->aStatBarRes;
+ return pImpData->nStatBarResId;
}
sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index 403597d..f44151c 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -155,7 +155,7 @@ SFX_IMPL_INTERFACE(SmModule, SfxModule)
void SmModule::InitInterface_Impl()
{
- GetStaticInterface()->RegisterStatusBar(SmResId(RID_STATUSBAR));
+ GetStaticInterface()->RegisterStatusBar(RID_STATUSBAR);
}
SmModule::SmModule(SfxObjectFactory* pObjFact) :
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 127fea2..a2fa67c 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -141,7 +141,7 @@ SFX_IMPL_INTERFACE(SwModule, SfxModule)
void SwModule::InitInterface_Impl()
{
- GetStaticInterface()->RegisterStatusBar(SW_RES(CFG_STATUSBAR));
+ GetStaticInterface()->RegisterStatusBar(CFG_STATUSBAR);
GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_APPLICATION | SFX_VISIBILITY_DESKTOP | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_CLIENT | SFX_VISIBILITY_VIEWER,
RID_MODULE_TOOLBOX);
More information about the Libreoffice-commits
mailing list