Kaydet (Commit) 7b87415c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

remove whitespace and put documentation before method/class

Change-Id: Ib88648d9ec049932520501ec997e2e82a55f63f3
üst 9970fb3c
...@@ -60,16 +60,12 @@ namespace svl ...@@ -60,16 +60,12 @@ namespace svl
class IUndoManager; class IUndoManager;
} }
enum SfxInterfaceId
/* [Description] /* [Description]
Id for <SfxInterface>s, gives a quasi-static access to the interface Id for <SfxInterface>s, gives a quasi-static access to the interface
through an array to <SfxApplication>. through an array to <SfxApplication>.
*/ */
enum SfxInterfaceId
{ {
SFX_INTERFACE_NONE, SFX_INTERFACE_NONE,
SFX_INTERFACE_SFXAPP, SFX_INTERFACE_SFXAPP,
...@@ -122,13 +118,9 @@ enum SfxInterfaceId ...@@ -122,13 +118,9 @@ enum SfxInterfaceId
//TODO/CLEANUP: replace by UNO constant //TODO/CLEANUP: replace by UNO constant
#define SVVERB_SHOW -1 #define SVVERB_SHOW -1
typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq); typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq);
typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet); typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet);
class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster
/* [Description] /* [Description]
The class SfxShell is the base class for all classes, which provide The class SfxShell is the base class for all classes, which provide
...@@ -143,7 +135,7 @@ class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster ...@@ -143,7 +135,7 @@ class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster
the <SVIDL-Compiler>. For each SfxShell Subclass-File there is one the <SVIDL-Compiler>. For each SfxShell Subclass-File there is one
such IDL-file to write. such IDL-file to write.
*/ */
class SFX2_DLLPUBLIC SfxShell: public SfxBroadcaster
{ {
friend class SfxObjectItem; friend class SfxObjectItem;
...@@ -257,8 +249,6 @@ public: ...@@ -257,8 +249,6 @@ public:
SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI); SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI);
}; };
SfxItemPool& SfxShell::GetPool() const
/* /*
[Description] [Description]
...@@ -270,17 +260,12 @@ SfxItemPool& SfxShell::GetPool() const ...@@ -270,17 +260,12 @@ SfxItemPool& SfxShell::GetPool() const
The SfxShell class itself does not have any SfxItemPool, therfore a The SfxShell class itself does not have any SfxItemPool, therfore a
null-pointer is returned. null-pointer is returned.
*/ */
SfxItemPool& SfxShell::GetPool() const
{ {
assert(pPool && "no pool"); assert(pPool && "no pool");
return *pPool; return *pPool;
} }
inline void SfxShell::SetPool
(
SfxItemPool* pNewPool // Pointer to the new Pool or null
)
/* [Description] /* [Description]
With this method, the subclasses register their special <SfxItemPool> With this method, the subclasses register their special <SfxItemPool>
...@@ -289,7 +274,10 @@ inline void SfxShell::SetPool ...@@ -289,7 +274,10 @@ inline void SfxShell::SetPool
subclass does not take ownership of the orphaned pool. Before it is subclass does not take ownership of the orphaned pool. Before it is
deleted it has to be deregisted with SetPool(0). deleted it has to be deregisted with SetPool(0).
*/ */
inline void SfxShell::SetPool
(
SfxItemPool* pNewPool // Pointer to the new Pool or null
)
{ {
pPool = pNewPool; pPool = pNewPool;
} }
......
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