Kaydet (Commit) 60bfcc0a authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: SfxRequest::IsRecording unused for a long time

üst 80c7dd48
...@@ -101,7 +101,6 @@ public: ...@@ -101,7 +101,6 @@ public:
static com::sun::star::uno::Reference< com::sun::star::frame::XDispatchRecorder > GetMacroRecorder( SfxViewFrame* pFrame=NULL ); static com::sun::star::uno::Reference< com::sun::star::frame::XDispatchRecorder > GetMacroRecorder( SfxViewFrame* pFrame=NULL );
static sal_Bool HasMacroRecorder( SfxViewFrame* pFrame=NULL ); static sal_Bool HasMacroRecorder( SfxViewFrame* pFrame=NULL );
sal_uInt16 GetCallMode() const; sal_uInt16 GetCallMode() const;
bool IsRecording() const;
void AllowRecording( sal_Bool ); void AllowRecording( sal_Bool );
sal_Bool AllowsRecording() const; sal_Bool AllowsRecording() const;
sal_Bool IsAPI() const; sal_Bool IsAPI() const;
......
...@@ -869,24 +869,6 @@ sal_Bool SfxRequest::IsAPI() const ...@@ -869,24 +869,6 @@ sal_Bool SfxRequest::IsAPI() const
return SFX_CALLMODE_API == ( SFX_CALLMODE_API & pImp->nCallMode ); return SFX_CALLMODE_API == ( SFX_CALLMODE_API & pImp->nCallMode );
} }
//--------------------------------------------------------------------
bool SfxRequest::IsRecording() const
/* [Description]
Returns sal_True if this SfxRequest is to be recorded ie
1. Currently a macro is beeing recorded
2. This request is even recorded
3. the request did not originate from a pure API (for example BASIC),
otherwise sal_False.
*/
{
return ( AllowsRecording() && GetMacroRecorder().is() );
}
//-------------------------------------------------------------------- //--------------------------------------------------------------------
void SfxRequest::SetModifier( sal_uInt16 nModi ) void SfxRequest::SetModifier( sal_uInt16 nModi )
{ {
......
...@@ -344,7 +344,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq) ...@@ -344,7 +344,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
rReq.Ignore(); rReq.Ignore();
bIgnore = sal_True; bIgnore = sal_True;
int nRet = SwTransferable::PasteUnformatted( rSh, aDataHelper ); int nRet = SwTransferable::PasteUnformatted( rSh, aDataHelper );
if(nRet)// && rReq.IsRecording() ) if(nRet)
{ {
SfxViewFrame* pViewFrame = pView->GetViewFrame(); SfxViewFrame* pViewFrame = pView->GetViewFrame();
uno::Reference< frame::XDispatchRecorder > xRecorder = uno::Reference< frame::XDispatchRecorder > xRecorder =
...@@ -380,7 +380,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq) ...@@ -380,7 +380,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
rReq.Ignore(); rReq.Ignore();
bIgnore = sal_True; bIgnore = sal_True;
int nRet = SwTransferable::PasteSpecial( rSh, aDataHelper, nFormatId ); int nRet = SwTransferable::PasteSpecial( rSh, aDataHelper, nFormatId );
if(nRet)// && rReq.IsRecording() ) if(nRet)
{ {
SfxViewFrame* pViewFrame = pView->GetViewFrame(); SfxViewFrame* pViewFrame = pView->GetViewFrame();
uno::Reference< frame::XDispatchRecorder > xRecorder = uno::Reference< frame::XDispatchRecorder > xRecorder =
......
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