diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-25 16:00:05 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-26 13:34:03 +0200 |
commit | 7b87415cdbce7162cf3bc8e02a2519623dfb5605 (patch) | |
tree | e08245c39f4aae6a789efa3df086f574947040c7 /include | |
parent | 9970fb3cecddb6b2b506b3ef7200cf49659def98 (diff) |
remove whitespace and put documentation before method/class
Change-Id: Ib88648d9ec049932520501ec997e2e82a55f63f3
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/shell.hxx | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx index 8b83df542d56..c2f79a5fff25 100644 --- a/include/sfx2/shell.hxx +++ b/include/sfx2/shell.hxx @@ -60,16 +60,12 @@ namespace svl class IUndoManager; } - - -enum SfxInterfaceId - /* [Description] Id for <SfxInterface>s, gives a quasi-static access to the interface through an array to <SfxApplication>. */ - +enum SfxInterfaceId { SFX_INTERFACE_NONE, SFX_INTERFACE_SFXAPP, @@ -122,13 +118,9 @@ enum SfxInterfaceId //TODO/CLEANUP: replace by UNO constant #define SVVERB_SHOW -1 - - typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq); typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet); -class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster - /* [Description] The class SfxShell is the base class for all classes, which provide @@ -143,7 +135,7 @@ class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster the <SVIDL-Compiler>. For each SfxShell Subclass-File there is one such IDL-file to write. */ - +class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster { friend class SfxObjectItem; @@ -257,8 +249,6 @@ public: SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI); }; - -SfxItemPool& SfxShell::GetPool() const /* [Description] @@ -270,17 +260,12 @@ SfxItemPool& SfxShell::GetPool() const The SfxShell class itself does not have any SfxItemPool, therfore a null-pointer is returned. */ - +SfxItemPool& SfxShell::GetPool() const { assert(pPool && "no pool"); return *pPool; } -inline void SfxShell::SetPool -( - SfxItemPool* pNewPool // Pointer to the new Pool or null -) - /* [Description] With this method, the subclasses register their special <SfxItemPool> @@ -289,7 +274,10 @@ inline void SfxShell::SetPool subclass does not take ownership of the orphaned pool. Before it is deleted it has to be deregisted with SetPool(0). */ - +inline void SfxShell::SetPool +( + SfxItemPool* pNewPool // Pointer to the new Pool or null +) { pPool = pNewPool; } |