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

remove whitespace and put comment before method

Change-Id: Ia3f22787a07628b1b531c61f21d345def5f6e99d
üst e2bc4c00
...@@ -71,8 +71,6 @@ public: ...@@ -71,8 +71,6 @@ public:
using namespace com::sun::star; using namespace com::sun::star;
// SfxShell_Impl
struct SfxShell_Impl: public SfxBroadcaster struct SfxShell_Impl: public SfxBroadcaster
{ {
OUString aObjectName; // Name of Sbx-Objects OUString aObjectName; // Name of Sbx-Objects
...@@ -107,9 +105,6 @@ struct SfxShell_Impl: public SfxBroadcaster ...@@ -107,9 +105,6 @@ struct SfxShell_Impl: public SfxBroadcaster
}; };
// SfxShell
void SfxShell::EmptyExecStub(SfxShell *, SfxRequest &) void SfxShell::EmptyExecStub(SfxShell *, SfxRequest &)
{ {
} }
...@@ -118,15 +113,13 @@ void SfxShell::EmptyStateStub(SfxShell *, SfxItemSet &) ...@@ -118,15 +113,13 @@ void SfxShell::EmptyStateStub(SfxShell *, SfxItemSet &)
{ {
} }
SfxShell::SfxShell()
/* [Description] /* [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()
: pImp(0), : pImp(0),
pPool(0), pPool(0),
pUndoMgr(0) pUndoMgr(0)
...@@ -134,17 +127,13 @@ SfxShell::SfxShell() ...@@ -134,17 +127,13 @@ SfxShell::SfxShell()
pImp = new SfxShell_Impl; pImp = new SfxShell_Impl;
} }
SfxShell::SfxShell( SfxViewShell *pViewSh )
/* [Description] /* [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( SfxViewShell *pViewSh )
: pImp(0), : pImp(0),
pPool(0), pPool(0),
pUndoMgr(0) pUndoMgr(0)
...@@ -153,55 +142,39 @@ SfxShell::SfxShell( SfxViewShell *pViewSh ) ...@@ -153,55 +142,39 @@ SfxShell::SfxShell( SfxViewShell *pViewSh )
pImp->pViewSh = pViewSh; pImp->pViewSh = pViewSh;
} }
SfxShell::~SfxShell()
/* [Description] /* [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.
*/ */
SfxShell::~SfxShell()
{ {
delete pImp; delete pImp;
} }
void SfxShell::SetName( const OUString &rName )
/* [Description] /* [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 SfxShell::SetName( const OUString &rName )
{ {
pImp->aObjectName = rName; pImp->aObjectName = rName;
} }
const OUString& SfxShell::GetName() const
/* [Description] /* [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& SfxShell::GetName() const
{ {
return pImp->aObjectName; return pImp->aObjectName;
} }
SfxDispatcher* SfxShell::GetDispatcher() const
/* [Description] /* [Description]
This method returns a pointer to the <SfxDispatcher>, when the SfxShell This method returns a pointer to the <SfxDispatcher>, when the SfxShell
...@@ -210,30 +183,22 @@ SfxDispatcher* SfxShell::GetDispatcher() const ...@@ -210,30 +183,22 @@ SfxDispatcher* SfxShell::GetDispatcher() const
The returned pointer is only valid in the immediate context of the method The returned pointer is only valid in the immediate context of the method
call. call.
*/ */
SfxDispatcher* SfxShell::GetDispatcher() const
{ {
return pImp->pFrame ? pImp->pFrame->GetDispatcher() : 0; return pImp->pFrame ? pImp->pFrame->GetDispatcher() : 0;
} }
SfxViewShell* SfxShell::GetViewShell() const
/* [Description] /* [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.
*/ */
SfxViewShell* SfxShell::GetViewShell() const
{ {
return pImp->pViewSh; return pImp->pViewSh;
} }
SfxViewFrame* SfxShell::GetFrame() const
/* [Description] /* [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
...@@ -254,6 +219,7 @@ SfxViewFrame* SfxShell::GetFrame() const ...@@ -254,6 +219,7 @@ SfxViewFrame* SfxShell::GetFrame() const
<SfxViewShell::GetViewFrame()const> <SfxViewShell::GetViewFrame()const>
*/ */
SfxViewFrame* SfxShell::GetFrame() const
{ {
if ( pImp->pFrame ) if ( pImp->pFrame )
...@@ -263,13 +229,6 @@ SfxViewFrame* SfxShell::GetFrame() const ...@@ -263,13 +229,6 @@ SfxViewFrame* SfxShell::GetFrame() const
return 0; return 0;
} }
const SfxPoolItem* SfxShell::GetItem
(
sal_uInt16 nSlotId // Slot-Id of the querying <SfxPoolItem>s
) const
/* [Description] /* [Description]
With this method any objects of <SfxPoolItemu> subclasses can be accessed. With this method any objects of <SfxPoolItemu> subclasses can be accessed.
...@@ -284,7 +243,10 @@ const SfxPoolItem* SfxShell::GetItem ...@@ -284,7 +243,10 @@ const SfxPoolItem* SfxShell::GetItem
<SfxShell::PutItem(const SfxPoolItem&)> <SfxShell::PutItem(const SfxPoolItem&)>
<SfxShell::RemoveItem(sal_uInt16)> <SfxShell::RemoveItem(sal_uInt16)>
*/ */
const SfxPoolItem* SfxShell::GetItem
(
sal_uInt16 nSlotId // Slot-Id of the querying <SfxPoolItem>s
) const
{ {
SfxItemPtrMap::iterator it = pImp->aItems.find( nSlotId ); SfxItemPtrMap::iterator it = pImp->aItems.find( nSlotId );
if( it != pImp->aItems.end() ) if( it != pImp->aItems.end() )
...@@ -292,14 +254,6 @@ const SfxPoolItem* SfxShell::GetItem ...@@ -292,14 +254,6 @@ const SfxPoolItem* SfxShell::GetItem
return 0; return 0;
} }
void SfxShell::PutItem
(
const SfxPoolItem& rItem /* Instance, of which a copy is created,
which is stored in the SfxShell in a list. */
)
/* [Description] /* [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
...@@ -314,7 +268,11 @@ void SfxShell::PutItem ...@@ -314,7 +268,11 @@ void SfxShell::PutItem
<SfxShell::RemoveItem(sal_uInt16)> <SfxShell::RemoveItem(sal_uInt16)>
<SfxShell::GetItem(sal_uInt16)> <SfxShell::GetItem(sal_uInt16)>
*/ */
void SfxShell::PutItem
(
const SfxPoolItem& rItem /* Instance, of which a copy is created,
which is stored in the SfxShell in a list. */
)
{ {
DBG_ASSERT( !rItem.ISA(SfxSetItem), "SetItems aren't allowed here" ); DBG_ASSERT( !rItem.ISA(SfxSetItem), "SetItems aren't allowed here" );
DBG_ASSERT( SfxItemPool::IsSlot( rItem.Which() ), DBG_ASSERT( SfxItemPool::IsSlot( rItem.Which() ),
...@@ -356,10 +314,6 @@ void SfxShell::PutItem ...@@ -356,10 +314,6 @@ void SfxShell::PutItem
} }
} }
SfxInterface* SfxShell::GetInterface() const
/* [Description] /* [Description]
With this virtual method, which is automatically overloaded by each subclass With this virtual method, which is automatically overloaded by each subclass
...@@ -369,15 +323,11 @@ SfxInterface* SfxShell::GetInterface() const ...@@ -369,15 +323,11 @@ SfxInterface* SfxShell::GetInterface() const
The class SfxShell itself has no own SfxInterface (no slots), therefore a The class SfxShell itself has no own SfxInterface (no slots), therefore a
NULL-pointer is returned. NULL-pointer is returned.
*/ */
SfxInterface* SfxShell::GetInterface() const
{ {
return GetStaticInterface(); return GetStaticInterface();
} }
::svl::IUndoManager* SfxShell::GetUndoManager()
/* [Description] /* [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
...@@ -386,15 +336,11 @@ SfxInterface* SfxShell::GetInterface() const ...@@ -386,15 +336,11 @@ SfxInterface* SfxShell::GetInterface() const
The class SfxShell itself does not have a SfxUndoManager, a NULL-pointer The class SfxShell itself does not have a SfxUndoManager, a NULL-pointer
is therefore returned. is therefore returned.
*/ */
::svl::IUndoManager* SfxShell::GetUndoManager()
{ {
return pUndoMgr; return pUndoMgr;
} }
void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr )
/* [Description] /* [Description]
Sets a <SfxUndoManager> for this <SfxShell> Instance. For the undo Sets a <SfxUndoManager> for this <SfxShell> Instance. For the undo
...@@ -407,7 +353,7 @@ void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr ) ...@@ -407,7 +353,7 @@ void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr )
'pNewUndoMgr' must exist until the Destuctor of SfxShell instance is called 'pNewUndoMgr' must exist until the Destuctor of SfxShell instance is called
or until the next 'SetUndoManager()'. or until the next 'SetUndoManager()'.
*/ */
void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr )
{ {
OSL_ENSURE( ( pUndoMgr == NULL ) || ( pNewUndoMgr == NULL ) || ( pUndoMgr == pNewUndoMgr ), OSL_ENSURE( ( pUndoMgr == NULL ) || ( pNewUndoMgr == NULL ) || ( pUndoMgr == pNewUndoMgr ),
"SfxShell::SetUndoManager: exchanging one non-NULL manager with another non-NULL manager? Suspicious!" ); "SfxShell::SetUndoManager: exchanging one non-NULL manager with another non-NULL manager? Suspicious!" );
...@@ -421,10 +367,6 @@ void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr ) ...@@ -421,10 +367,6 @@ void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr )
officecfg::Office::Common::Undo::Steps::get()); officecfg::Office::Common::Undo::Steps::get());
} }
SfxRepeatTarget* SfxShell::GetRepeatTarget() const
/* [Description] /* [Description]
Returns a pointer to the <SfxRepeatTarget> instance that is used in Returns a pointer to the <SfxRepeatTarget> instance that is used in
...@@ -437,15 +379,11 @@ SfxRepeatTarget* SfxShell::GetRepeatTarget() const ...@@ -437,15 +379,11 @@ SfxRepeatTarget* SfxShell::GetRepeatTarget() const
is not recommended, as compiler errors are provoked. is not recommended, as compiler errors are provoked.
(due to Call-to-Pointer-to-Member-Function to the subclass). (due to Call-to-Pointer-to-Member-Function to the subclass).
*/ */
SfxRepeatTarget* SfxShell::GetRepeatTarget() const
{ {
return pImp->pRepeatTarget; return pImp->pRepeatTarget;
} }
void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget )
/* [Description] /* [Description]
Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as Sets the <SfxRepeatTarget> instance that is used in SID_REPEAT as
...@@ -459,21 +397,11 @@ void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget ) ...@@ -459,21 +397,11 @@ void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget )
is not recommended, as compiler errors are provoked. is not recommended, as compiler errors are provoked.
(due to Call-to-Pointer-to-Member-Function to the subclass). (due to Call-to-Pointer-to-Member-Function to the subclass).
*/ */
void SfxShell::SetRepeatTarget( SfxRepeatTarget *pTarget )
{ {
pImp->pRepeatTarget = pTarget; pImp->pRepeatTarget = pTarget;
} }
void SfxShell::Invalidate
(
sal_uInt16 nId /* Invalidated Slot-Id or Which-Id.
If these are 0 (default), then all
by this Shell currently handled Slot-Ids are
invalidated. */
)
/* [Description] /* [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
...@@ -485,7 +413,13 @@ void SfxShell::Invalidate ...@@ -485,7 +413,13 @@ void SfxShell::Invalidate
<SfxBindings::Invalidate(sal_uInt16)> <SfxBindings::Invalidate(sal_uInt16)>
<SfxBindings::InvalidateAll(sal_Bool)> <SfxBindings::InvalidateAll(sal_Bool)>
*/ */
void SfxShell::Invalidate
(
sal_uInt16 nId /* Invalidated Slot-Id or Which-Id.
If these are 0 (default), then all
by this Shell currently handled Slot-Ids are
invalidated. */
)
{ {
if ( !GetViewShell() ) if ( !GetViewShell() )
{ {
...@@ -534,10 +468,6 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, sal_uInt16 nId ) ...@@ -534,10 +468,6 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, sal_uInt16 nId )
} }
} }
void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI )
/* [Description] /* [Description]
This method controls the activation of SfxShell instance. First, by calling This method controls the activation of SfxShell instance. First, by calling
...@@ -548,7 +478,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -548,7 +478,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI )
unqualified methods of the object (without the name of the object) unqualified methods of the object (without the name of the object)
from BASIC are found. from BASIC are found.
*/ */
void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI )
{ {
#ifdef DBG_UTIL #ifdef DBG_UTIL
const SfxInterface *p_IF = GetInterface(); const SfxInterface *p_IF = GetInterface();
...@@ -571,10 +501,6 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -571,10 +501,6 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI )
Activate(bMDI); Activate(bMDI);
} }
void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI )
/* [Description] /* [Description]
This method controls the deactivation of the SfxShell instance. When This method controls the deactivation of the SfxShell instance. When
...@@ -584,7 +510,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -584,7 +510,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI )
Then the subclass gets the opportunity in every case to respond to the Then the subclass gets the opportunity in every case to respond to the
event by calling the virtual method <SfxShell::Deactivate(sal_Bool)>. event by calling the virtual method <SfxShell::Deactivate(sal_Bool)>.
*/ */
void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI )
{ {
#ifdef DBG_UTIL #ifdef DBG_UTIL
const SfxInterface *p_IF = GetInterface(); const SfxInterface *p_IF = GetInterface();
...@@ -609,15 +535,21 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -609,15 +535,21 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI )
Deactivate(bMDI); Deactivate(bMDI);
} }
bool SfxShell::IsActive() const bool SfxShell::IsActive() const
{ {
return pImp->bActive; return pImp->bActive;
} }
/* [Description]
Virtual method that is called when enabling the SfxShell instance,
in order to give the Subclasses the opportunity to respond to the
to the enabling.
[Cross-reference]
StarView SystemWindow::Activate(bool)
*/
void SfxShell::Activate void SfxShell::Activate
( (
bool /*bMDI*/ /* TRUE bool /*bMDI*/ /* TRUE
...@@ -631,24 +563,19 @@ void SfxShell::Activate ...@@ -631,24 +563,19 @@ void SfxShell::Activate
the SfxShell instance is located, was the SfxShell instance is located, was
activated. (for example by a closing dialoge) */ activated. (for example by a closing dialoge) */
) )
{
BroadcastContextForActivation(true);
}
/* [Description] /* [Description]
Virtual method that is called when enabling the SfxShell instance, Virtual method that is called when disabling the SfxShell instance,
in order to give the Subclasses the opportunity to respond to the to give the Subclasses the opportunity to respond to the disabling.
to the enabling.
[Cross-reference] [Cross-reference]
StarView SystemWindow::Activate(bool) StarView SystemWindow::Dectivate(bool)
*/ */
{
BroadcastContextForActivation(true);
}
void SfxShell::Deactivate void SfxShell::Deactivate
( (
bool /*bMDI*/ /* TRUE bool /*bMDI*/ /* TRUE
...@@ -661,28 +588,11 @@ void SfxShell::Deactivate ...@@ -661,28 +588,11 @@ void SfxShell::Deactivate
the <SfxViewFrame>, on which SfxDispatcher the <SfxViewFrame>, on which SfxDispatcher
the SfxShell instance is located, was the SfxShell instance is located, was
deactivated. (for example by a dialoge) */ deactivated. (for example by a dialoge) */
) )
/* [Description]
Virtual method that is called when disabling the SfxShell instance,
to give the Subclasses the opportunity to respond to the disabling.
[Cross-reference]
StarView SystemWindow::Dectivate(bool)
*/
{ {
BroadcastContextForActivation(false); BroadcastContextForActivation(false);
} }
void SfxShell::ParentActivate
(
)
/* [Description] /* [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
...@@ -695,14 +605,11 @@ void SfxShell::ParentActivate ...@@ -695,14 +605,11 @@ void SfxShell::ParentActivate
SfxShell::Activate() SfxShell::Activate()
*/ */
{ void SfxShell::ParentActivate
}
void SfxShell::ParentDeactivate
( (
) )
{
}
/* [Description] /* [Description]
...@@ -715,33 +622,29 @@ void SfxShell::ParentDeactivate ...@@ -715,33 +622,29 @@ void SfxShell::ParentDeactivate
SfxShell::Deactivate() SfxShell::Deactivate()
*/ */
void SfxShell::ParentDeactivate
(
)
{ {
} }
ResMgr* SfxShell::GetResMgr() const
/* [Description] /* [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.
*/ */
ResMgr* SfxShell::GetResMgr() const
{ {
return GetInterface()->GetResMgr(); return GetInterface()->GetResMgr();
} }
bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot )
/* [Description] /* [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.
*/ */
bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot )
{ {
// Get Slot status // Get Slot status
SfxItemPool &rPool = GetPool(); SfxItemPool &rPool = GetPool();
...@@ -752,8 +655,6 @@ bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot ) ...@@ -752,8 +655,6 @@ bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot )
return aSet.GetItemState(nId) != SFX_ITEM_DISABLED; return aSet.GetItemState(nId) != SFX_ITEM_DISABLED;
} }
long ShellCall_Impl( void* pObj, void* pArg ) long ShellCall_Impl( void* pObj, void* pArg )
{ {
((SfxShell* )pObj)->ExecuteSlot( *(SfxRequest*)pArg, (SfxInterface*)0L ); ((SfxShell* )pObj)->ExecuteSlot( *(SfxRequest*)pArg, (SfxInterface*)0L );
...@@ -764,8 +665,6 @@ long ShellCall_Impl( void* pObj, void* pArg ) ...@@ -764,8 +665,6 @@ long ShellCall_Impl( void* pObj, void* pArg )
Asynchronous ExecuteSlot for the RELOAD Asynchronous ExecuteSlot for the RELOAD
*/ */
const SfxPoolItem* SfxShell::ExecuteSlot( SfxRequest& rReq, bool bAsync ) const SfxPoolItem* SfxShell::ExecuteSlot( SfxRequest& rReq, bool bAsync )
{ {
if( !bAsync ) if( !bAsync )
...@@ -780,12 +679,6 @@ const SfxPoolItem* SfxShell::ExecuteSlot( SfxRequest& rReq, bool bAsync ) ...@@ -780,12 +679,6 @@ const SfxPoolItem* SfxShell::ExecuteSlot( SfxRequest& rReq, bool bAsync )
} }
} }
const SfxPoolItem* SfxShell::ExecuteSlot
(
SfxRequest &rReq, // the relayed <SfxRequest>
const SfxInterface* pIF // default = 0 means get virtually
)
/* [Description] /* [Description]
This method allows you to forward a <SfxRequest> to the specified This method allows you to forward a <SfxRequest> to the specified
...@@ -817,7 +710,11 @@ const SfxPoolItem* SfxShell::ExecuteSlot ...@@ -817,7 +710,11 @@ const SfxPoolItem* SfxShell::ExecuteSlot
<SfxShell::GetSlotState(sal_uInt16,const SfxInterface*,SfxItemSet*)> <SfxShell::GetSlotState(sal_uInt16,const SfxInterface*,SfxItemSet*)>
*/ */
const SfxPoolItem* SfxShell::ExecuteSlot
(
SfxRequest &rReq, // the relayed <SfxRequest>
const SfxInterface* pIF // default = 0 means get virtually
)
{ {
if ( !pIF ) if ( !pIF )
pIF = GetInterface(); pIF = GetInterface();
...@@ -837,15 +734,6 @@ const SfxPoolItem* SfxShell::ExecuteSlot ...@@ -837,15 +734,6 @@ const SfxPoolItem* SfxShell::ExecuteSlot
return rReq.GetReturnValue(); return rReq.GetReturnValue();
} }
const SfxPoolItem* SfxShell::GetSlotState
(
sal_uInt16 nSlotId, // Slot-Id to the Slots in question
const SfxInterface* pIF, // default = 0 means get virtually
SfxItemSet* pStateSet // SfxItemSet of the Slot-State method
)
/* [Description] /* [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
...@@ -881,7 +769,12 @@ const SfxPoolItem* SfxShell::GetSlotState ...@@ -881,7 +769,12 @@ const SfxPoolItem* SfxShell::GetSlotState
<SfxShell::ExecuteSlot(SfxRequest&)> <SfxShell::ExecuteSlot(SfxRequest&)>
*/ */
const SfxPoolItem* SfxShell::GetSlotState
(
sal_uInt16 nSlotId, // Slot-Id to the Slots in question
const SfxInterface* pIF, // default = 0 means get virtually
SfxItemSet* pStateSet // SfxItemSet of the Slot-State method
)
{ {
// Get Slot on the given Interface // Get Slot on the given Interface
if ( !pIF ) if ( !pIF )
...@@ -946,8 +839,6 @@ const SfxPoolItem* SfxShell::GetSlotState ...@@ -946,8 +839,6 @@ const SfxPoolItem* SfxShell::GetSlotState
return pRetItem; return pRetItem;
} }
SFX_EXEC_STUB(SfxShell, VerbExec) SFX_EXEC_STUB(SfxShell, VerbExec)
SFX_STATE_STUB(SfxShell, VerbState) SFX_STATE_STUB(SfxShell, VerbState)
...@@ -1022,15 +913,11 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em ...@@ -1022,15 +913,11 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em
} }
} }
const com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor >& SfxShell::GetVerbs() const const com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor >& SfxShell::GetVerbs() const
{ {
return pImp->aVerbList; return pImp->aVerbList;
} }
void SfxShell::VerbExec(SfxRequest& rReq) void SfxShell::VerbExec(SfxRequest& rReq)
{ {
sal_uInt16 nId = rReq.GetSlot(); sal_uInt16 nId = rReq.GetSlot();
...@@ -1059,14 +946,10 @@ void SfxShell::VerbExec(SfxRequest& rReq) ...@@ -1059,14 +946,10 @@ void SfxShell::VerbExec(SfxRequest& rReq)
} }
} }
void SfxShell::VerbState(SfxItemSet& ) void SfxShell::VerbState(SfxItemSet& )
{ {
} }
const SfxSlot* SfxShell::GetVerbSlot_Impl(sal_uInt16 nId) const const SfxSlot* SfxShell::GetVerbSlot_Impl(sal_uInt16 nId) const
{ {
com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor > rList = pImp->aVerbList; com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor > rList = pImp->aVerbList;
...@@ -1081,22 +964,16 @@ const SfxSlot* SfxShell::GetVerbSlot_Impl(sal_uInt16 nId) const ...@@ -1081,22 +964,16 @@ const SfxSlot* SfxShell::GetVerbSlot_Impl(sal_uInt16 nId) const
return 0; return 0;
} }
void SfxShell::SetHelpId(sal_uIntPtr nId) void SfxShell::SetHelpId(sal_uIntPtr nId)
{ {
pImp->nHelpId = nId; pImp->nHelpId = nId;
} }
sal_uIntPtr SfxShell::GetHelpId() const sal_uIntPtr SfxShell::GetHelpId() const
{ {
return pImp->nHelpId; return pImp->nHelpId;
} }
SfxObjectShell* SfxShell::GetObjectShell() SfxObjectShell* SfxShell::GetObjectShell()
{ {
if ( GetViewShell() ) if ( GetViewShell() )
...@@ -1105,8 +982,6 @@ SfxObjectShell* SfxShell::GetObjectShell() ...@@ -1105,8 +982,6 @@ SfxObjectShell* SfxShell::GetObjectShell()
return NULL; return NULL;
} }
bool SfxShell::HasUIFeature( sal_uInt32 ) bool SfxShell::HasUIFeature( sal_uInt32 )
{ {
return false; return false;
......
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