summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-04-18 17:25:30 +0200
committerJan Holesovsky <kendy@collabora.com>2014-04-18 22:51:06 +0200
commitb731d71c67b864b61f5c08e219140be59c473f53 (patch)
tree29f8a9f208e2e72b93389d5ee06d244599aefdc9 /basctl/source
parent8c3ab6093afad91f7dcb7b674adb257be9530ca7 (diff)
sfx2: Move InitInterface_Impl() method out of SFX_IMPL_INTERFACE.
SFX_IMPL_INTERFACE previously looked like a function; where in fact it is several methods defined at once, and only the last one has a body. This is extremely confusing and hard to read; let's kill that nonsense. Change-Id: Ia4ae22eb58b1260c9c827c894f5345693bad49e7
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/basdoc.cxx4
-rw-r--r--basctl/source/basicide/basidesh.cxx4
2 files changed, 5 insertions, 3 deletions
diff --git a/basctl/source/basicide/basdoc.cxx b/basctl/source/basicide/basdoc.cxx
index 1e70ea46edd8..c1dddbaa99c5 100644
--- a/basctl/source/basicide/basdoc.cxx
+++ b/basctl/source/basicide/basdoc.cxx
@@ -39,7 +39,9 @@ TYPEINIT1(DocShell, SfxObjectShell);
SFX_IMPL_OBJECTFACTORY( DocShell, SvGlobalName(), SFXOBJECTSHELL_STD_NORMAL, "sbasic" )
-SFX_IMPL_INTERFACE( basctl_DocShell, SfxObjectShell, IDEResId( 0 ) )
+SFX_IMPL_INTERFACE(basctl_DocShell, SfxObjectShell, IDEResId(0))
+
+void basctl_DocShell::InitInterface_Impl()
{
GetStaticInterface()->RegisterStatusBar(IDEResId(SID_BASICIDE_STATUSBAR));
}
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index 4aafd11a0ee9..cad57f72a00c 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -135,8 +135,9 @@ SFX_IMPL_NAMED_VIEWFACTORY( Shell, "Default" )
SFX_VIEW_REGISTRATION( DocShell );
}
+SFX_IMPL_INTERFACE(basctl_Shell, SfxViewShell, IDEResId(RID_STR_IDENAME))
-SFX_IMPL_INTERFACE( basctl_Shell, SfxViewShell, IDEResId( RID_STR_IDENAME ) )
+void basctl_Shell::InitInterface_Impl()
{
GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
@@ -152,7 +153,6 @@ unsigned const ShellFlags = SFX_VIEW_CAN_PRINT | SFX_VIEW_NO_NEWWINDOW;
}
-
unsigned Shell::nShellCount = 0;
Shell::Shell( SfxViewFrame* pFrame_, SfxViewShell* /* pOldShell */ ) :