diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-18 17:25:30 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-18 22:51:06 +0200 |
commit | b731d71c67b864b61f5c08e219140be59c473f53 (patch) | |
tree | 29f8a9f208e2e72b93389d5ee06d244599aefdc9 /starmath/source/view.cxx | |
parent | 8c3ab6093afad91f7dcb7b674adb257be9530ca7 (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 'starmath/source/view.cxx')
-rw-r--r-- | starmath/source/view.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 68bcb722e19c..8973bc3e0697 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -930,6 +930,8 @@ struct SmViewShell_Impl TYPEINIT1( SmViewShell, SfxViewShell ); SFX_IMPL_INTERFACE(SmViewShell, SfxViewShell, SmResId(0)) + +void SmViewShell::InitInterface_Impl() { GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_FULLSCREEN | SFX_VISIBILITY_SERVER, SmResId(RID_MATH_TOOLBOX )); @@ -941,13 +943,11 @@ SFX_IMPL_INTERFACE(SmViewShell, SfxViewShell, SmResId(0)) GetStaticInterface()->RegisterChildWindow(SmElementsDockingWindowWrapper::GetChildWindowId()); } - SFX_IMPL_NAMED_VIEWFACTORY(SmViewShell, "Default") { SFX_VIEW_REGISTRATION(SmDocShell); } - void SmViewShell::AdjustPosSizePixel(const Point &rPos, const Size &rSize) { SAL_INFO( "starmath", "SmViewShell::AdjustPosSizePixel" ); |