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

turn method documentation into doxygen comments

Change-Id: I38a10833b1d0b17c70298b6ed7a850cb9b728813
üst fe9f8144
...@@ -60,8 +60,7 @@ namespace svl ...@@ -60,8 +60,7 @@ namespace svl
class IUndoManager; class IUndoManager;
} }
/* [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>.
*/ */
...@@ -121,8 +120,7 @@ enum SfxInterfaceId ...@@ -121,8 +120,7 @@ enum SfxInterfaceId
typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq); typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq);
typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet); typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet);
/* [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
the functionality of the form <Slot>s. the functionality of the form <Slot>s.
...@@ -148,20 +146,18 @@ private: ...@@ -148,20 +146,18 @@ private:
SfxShell& operator = ( const SfxShell & ); // internal SfxShell& operator = ( const SfxShell & ); // internal
protected: protected:
/* [Description] /**
The constructor of the SfxShell class initializes only simple types, The constructor of the SfxShell class initializes only simple types,
the corresponding SbxObject is only created on-demand. Therefore, the corresponding SbxObject is only created on-demand. Therefore,
the application of a SfxShell instance is very cheap. the application of a SfxShell instance is very cheap.
*/ */
SfxShell(); SfxShell();
/* [Description] /**
The constructor of the SfxShell class initializes only simple types,
The constructor of the SfxShell class initializes only simple types, the corresponding SbxObject is only created on-demand. Therefore,
the corresponding SbxObject is only created on-demand. Therefore, the application of a SfxShell instance is very cheap.
the application of a SfxShell instance is very cheap. */
*/
SfxShell( SfxViewShell *pViewSh ); SfxShell( SfxViewShell *pViewSh );
SAL_DLLPRIVATE void SetViewShell_Impl( SfxViewShell* pView ); SAL_DLLPRIVATE void SetViewShell_Impl( SfxViewShell* pView );
...@@ -172,16 +168,14 @@ protected: ...@@ -172,16 +168,14 @@ protected:
public: public:
TYPEINFO_OVERRIDE(); TYPEINFO_OVERRIDE();
/* [Description] /**
The connection to a possible corresponding SbxObject is dissolved. The connection to a possible corresponding SbxObject is dissolved.
The SbxObject may continoue to exist, but can not any longer perform The SbxObject may continoue to exist, but can not any longer perform
any functions and can not provide any properties. any functions and can not provide any properties.
*/ */
virtual ~SfxShell(); virtual ~SfxShell();
/* [Description] /**
With this virtual method, which is automatically overloaded by each subclass With this virtual method, which is automatically overloaded by each subclass
with its own slots through the macro <SFX_DECL_INTERFACE>, one can access with its own slots through the macro <SFX_DECL_INTERFACE>, one can access
each of the <SfxInterface> instance beloning to the subclass. each of the <SfxInterface> instance beloning to the subclass.
...@@ -192,22 +186,19 @@ public: ...@@ -192,22 +186,19 @@ public:
virtual SfxInterface* GetInterface() const; virtual SfxInterface* GetInterface() const;
static SfxInterface* GetStaticInterface() { return 0; } static SfxInterface* GetStaticInterface() { return 0; }
/* [Description] /**
Sets the name of the Shell object. With this name, the SfxShell instance Sets the name of the Shell object. With this name, the SfxShell instance
of BASIC can be expressed. of BASIC can be expressed.
*/ */
void SetName( const OUString &rName ); void SetName( const OUString &rName );
/* [Description] /**
Returns the name of the Shell object. With this name, the SfxShell instance Returns the name of the Shell object. With this name, the SfxShell instance
of BASIC can be expressed. of BASIC can be expressed.
*/ */
const OUString& GetName() const; const OUString& GetName() const;
/* [Description] /**
Returns the SfxViewShell in which they are located in the subshells. Returns the SfxViewShell in which they are located in the subshells.
Otherwise, and if not specified by the App developer, this method Otherwise, and if not specified by the App developer, this method
returns NULL. returns NULL.
...@@ -222,8 +213,7 @@ public: ...@@ -222,8 +213,7 @@ public:
static void EmptyExecStub(SfxShell *pShell, SfxRequest &); static void EmptyExecStub(SfxShell *pShell, SfxRequest &);
static void EmptyStateStub(SfxShell *pShell, SfxItemSet &); static void EmptyStateStub(SfxShell *pShell, SfxItemSet &);
/* [Description] /**
This method returns the status of the slot with the specified slot ID This method returns the status of the slot with the specified slot ID
on the specified interface. on the specified interface.
...@@ -259,8 +249,7 @@ public: ...@@ -259,8 +249,7 @@ public:
*/ */
const SfxPoolItem* GetSlotState( sal_uInt16 nSlotId, const SfxInterface *pIF = 0, SfxItemSet *pStateSet = 0 ); const SfxPoolItem* GetSlotState( sal_uInt16 nSlotId, const SfxInterface *pIF = 0, SfxItemSet *pStateSet = 0 );
/* [Description] /**
This method allows you to forward a <SfxRequest> to the specified This method allows you to forward a <SfxRequest> to the specified
base <SfxShell>. base <SfxShell>.
...@@ -292,8 +281,7 @@ public: ...@@ -292,8 +281,7 @@ public:
*/ */
const SfxPoolItem* ExecuteSlot( SfxRequest &rReq, const SfxInterface *pIF = 0 ); const SfxPoolItem* ExecuteSlot( SfxRequest &rReq, const SfxInterface *pIF = 0 );
/* [Description] /**
Asynchronous ExecuteSlot for the RELOAD Asynchronous ExecuteSlot for the RELOAD
*/ */
const SfxPoolItem* ExecuteSlot( SfxRequest &rReq, bool bAsync ); const SfxPoolItem* ExecuteSlot( SfxRequest &rReq, bool bAsync );
...@@ -302,8 +290,7 @@ public: ...@@ -302,8 +290,7 @@ public:
inline SfxItemPool& GetPool() const; inline SfxItemPool& GetPool() const;
inline void SetPool( SfxItemPool *pNewPool ) ; inline void SetPool( SfxItemPool *pNewPool ) ;
/* [Description] /**
Each Subclass of SfxShell can hava a <SfxUndoManager>. This can be set in Each Subclass of SfxShell can hava a <SfxUndoManager>. This can be set in
the derived class with <SfxShell:SetUndoManager()>. the derived class with <SfxShell:SetUndoManager()>.
...@@ -312,8 +299,7 @@ public: ...@@ -312,8 +299,7 @@ public:
*/ */
virtual ::svl::IUndoManager* GetUndoManager(); virtual ::svl::IUndoManager* GetUndoManager();
/* [Description] /**
Sets a <SfxUndoManager> for this <SfxShell> Instance. For the undo Sets a <SfxUndoManager> for this <SfxShell> Instance. For the undo
is only the undo-manager used for SfxShell at the top of the stack of each is only the undo-manager used for SfxShell at the top of the stack of each
<SfxDispatcher>. <SfxDispatcher>.
...@@ -326,8 +312,7 @@ public: ...@@ -326,8 +312,7 @@ public:
*/ */
void SetUndoManager( ::svl::IUndoManager *pNewUndoMgr ); void SetUndoManager( ::svl::IUndoManager *pNewUndoMgr );
/* [Description] /**
Returns a pointer to the <SfxRepeatTarget> instance that is used in Returns a pointer to the <SfxRepeatTarget> instance that is used in
SID_REPEAT as repeat target when it is addressed from the <SfxUndoManager> SID_REPEAT as repeat target when it is addressed from the <SfxUndoManager>
supplied by this SfxShell. The return value can be NULL. supplied by this SfxShell. The return value can be NULL.
...@@ -340,8 +325,7 @@ public: ...@@ -340,8 +325,7 @@ public:
*/ */
SfxRepeatTarget* GetRepeatTarget() const; SfxRepeatTarget* GetRepeatTarget() const;
/* [Description] /**
Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as
RepeatTarget, when the current supplied by this <SfxUndoManager> is RepeatTarget, when the current supplied by this <SfxUndoManager> is
addressed. By 'pTarget==0' the SID_REPEAT is disabled for this SfxShell. addressed. By 'pTarget==0' the SID_REPEAT is disabled for this SfxShell.
...@@ -355,8 +339,7 @@ public: ...@@ -355,8 +339,7 @@ public:
*/ */
void SetRepeatTarget( SfxRepeatTarget *pTarget ); void SetRepeatTarget( SfxRepeatTarget *pTarget );
/* [Description] /**
With this method can the slots of the subclasses be invalidated through the With this method can the slots of the subclasses be invalidated through the
slot Id or alternatively through the Which ID. Slot IDs, which are slot Id or alternatively through the Which ID. Slot IDs, which are
inherited by the subclass are also invalidert. inherited by the subclass are also invalidert.
...@@ -370,8 +353,7 @@ public: ...@@ -370,8 +353,7 @@ public:
bool IsActive() const; bool IsActive() const;
/* [Description] /**
Virtual method that is called when enabling the SfxShell instance, Virtual method that is called when enabling the SfxShell instance,
in order to give the Subclasses the opportunity to respond to the in order to give the Subclasses the opportunity to respond to the
to the enabling. to the enabling.
...@@ -382,8 +364,7 @@ public: ...@@ -382,8 +364,7 @@ public:
*/ */
virtual void Activate(bool bMDI); virtual void Activate(bool bMDI);
/* [Description] /**
Virtual method that is called when disabling the SfxShell instance, Virtual method that is called when disabling the SfxShell instance,
to give the Subclasses the opportunity to respond to the disabling. to give the Subclasses the opportunity to respond to the disabling.
...@@ -393,8 +374,7 @@ public: ...@@ -393,8 +374,7 @@ public:
*/ */
virtual void Deactivate(bool bMDI); virtual void Deactivate(bool bMDI);
/* [Description] /**
A parent of the <SfxDispatcher> on which the SfxShell is located, has A parent of the <SfxDispatcher> on which the SfxShell is located, has
become active, or the SfxShell instance was pushed on a <SfxDispatcher>, become active, or the SfxShell instance was pushed on a <SfxDispatcher>,
which parent is active. which parent is active.
...@@ -407,8 +387,7 @@ public: ...@@ -407,8 +387,7 @@ public:
*/ */
virtual void ParentActivate(); virtual void ParentActivate();
/* [Description] /**
The active parent of the <SfxDispatcher> on which the SfxShell is located, The active parent of the <SfxDispatcher> on which the SfxShell is located,
has been disabled. has been disabled.
...@@ -420,8 +399,7 @@ public: ...@@ -420,8 +399,7 @@ public:
*/ */
virtual void ParentDeactivate(); virtual void ParentDeactivate();
/* [Description] /**
This method returns a pointer to the <SfxDispatcher>, when the SfxShell This method returns a pointer to the <SfxDispatcher>, when the SfxShell
is currently <UI-active> or a NULL-pointer if it is not UI-active. is currently <UI-active> or a NULL-pointer if it is not UI-active.
...@@ -430,8 +408,7 @@ public: ...@@ -430,8 +408,7 @@ public:
*/ */
SfxDispatcher* GetDispatcher() const; SfxDispatcher* GetDispatcher() const;
/* [Description] /**
This method returns a pointer to the <SfxViewFrame> to which this SfxShell This method returns a pointer to the <SfxViewFrame> to which this SfxShell
instance is associated or in which they currently is <UI-active>. instance is associated or in which they currently is <UI-active>.
A NULL pointer is returned if this SfxShell instance is not UI-active at A NULL pointer is returned if this SfxShell instance is not UI-active at
...@@ -452,8 +429,7 @@ public: ...@@ -452,8 +429,7 @@ public:
*/ */
SfxViewFrame* GetFrame() const; SfxViewFrame* GetFrame() const;
/* [Description] /**
This method provides the ResMgr of the <Resource-DLL> that are used by This method provides the ResMgr of the <Resource-DLL> that are used by
the SfxShell instance. If this is a NULL-pointer, then the current the SfxShell instance. If this is a NULL-pointer, then the current
resource manager is to be used. resource manager is to be used.
...@@ -463,8 +439,7 @@ public: ...@@ -463,8 +439,7 @@ public:
void UIFeatureChanged(); void UIFeatureChanged();
// Items // Items
/* [Description] /**
With this method any objects of <SfxPoolItemu> subclasses can be accessed. With this method any objects of <SfxPoolItemu> subclasses can be accessed.
This exchange method is needed if, for example special <SfxToolBoxControl> This exchange method is needed if, for example special <SfxToolBoxControl>
subclasses need access to certain data such as the <SfxObjectShell>. subclasses need access to certain data such as the <SfxObjectShell>.
...@@ -479,8 +454,7 @@ public: ...@@ -479,8 +454,7 @@ public:
*/ */
const SfxPoolItem* GetItem( sal_uInt16 nSlotId ) const; const SfxPoolItem* GetItem( sal_uInt16 nSlotId ) const;
/* [Description] /**
With this method, any objects of subclasses of <SfxPoolItem> can be made With this method, any objects of subclasses of <SfxPoolItem> can be made
available. This exchange technology is needed if, for example, special available. This exchange technology is needed if, for example, special
<SfxToolBoxControl> Subclasses need access to certain data such as the <SfxToolBoxControl> Subclasses need access to certain data such as the
...@@ -530,14 +504,14 @@ public: ...@@ -530,14 +504,14 @@ public:
*/ */
bool SetContextBroadcasterEnabled (const bool bIsEnabled); bool SetContextBroadcasterEnabled (const bool bIsEnabled);
/* [Description] /**
This method determines by calling the status function whether 'rSlot' This method determines by calling the status function whether 'rSlot'
can be executed currently. can be executed currently.
*/ */
SAL_DLLPRIVATE bool CanExecuteSlot_Impl( const SfxSlot &rSlot ); SAL_DLLPRIVATE bool CanExecuteSlot_Impl( const SfxSlot &rSlot );
/* [Description] /**
This method controls the activation of SfxShell instance. First, by calling This method controls the activation of SfxShell instance. First, by calling
the virtual method <SfxShell::Activate(sal_Bool)> which gives the subclass the the virtual method <SfxShell::Activate(sal_Bool)> which gives the subclass the
...@@ -549,7 +523,7 @@ public: ...@@ -549,7 +523,7 @@ public:
*/ */
SAL_DLLPRIVATE void DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI); SAL_DLLPRIVATE void DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI);
/* [Description] /**
This method controls the deactivation of the SfxShell instance. When This method controls the deactivation of the SfxShell instance. When
bMDI == TRUE the SbxObject is first set to a status that only qualified bMDI == TRUE the SbxObject is first set to a status that only qualified
...@@ -561,9 +535,7 @@ public: ...@@ -561,9 +535,7 @@ public:
SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI); SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI);
}; };
/* /**
[Description]
Each Subclass of SfxShell must reference a pool. This is partly set by Each Subclass of SfxShell must reference a pool. This is partly set by
SFx's own set of subclasses (eg <SfxViewShell>). In particular however SFx's own set of subclasses (eg <SfxViewShell>). In particular however
this must be set directly from one derived SfxShell class and ny this must be set directly from one derived SfxShell class and ny
...@@ -578,8 +550,7 @@ SfxItemPool& SfxShell::GetPool() const ...@@ -578,8 +550,7 @@ SfxItemPool& SfxShell::GetPool() const
return *pPool; return *pPool;
} }
/* [Description] /**
With this method, the subclasses register their special <SfxItemPool> With this method, the subclasses register their special <SfxItemPool>
in the SfxShell. Each SfxShell instance must have access to a SfxItemPool. in the SfxShell. Each SfxShell instance must have access to a SfxItemPool.
Usually this is the SfxItemPool of the SfxDocumentShell. The SfxShell Usually this is the SfxItemPool of the SfxDocumentShell. The SfxShell
......
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