diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 04ef9a2b90dd..c67334fd8d89 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -2,9 +2,9 @@ * * $RCSfile: basides1.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: kz $ $Date: 2004-07-23 12:02:12 $ + * last change: $Author: kz $ $Date: 2004-08-31 12:20:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -349,9 +349,24 @@ void __EXPORT BasicIDEShell::ExecuteGlobal( SfxRequest& rReq ) SfxBindings &rBindings = BasicIDE::GetBindings(); rBindings.Invalidate( SID_DOC_MODIFIED ); rBindings.Invalidate( SID_SAVEDOC ); + rBindings.Invalidate( SID_SIGNATURE ); } } break; + case SID_SIGNATURE: + { + if ( pCurWin ) + { + SfxObjectShell* pShell = pCurWin->GetShell(); + if ( pShell ) + { + pShell->SignScriptingContent(); + BasicIDE::GetBindings().Invalidate( SID_SIGNATURE ); + } + } + } + break; + case SID_BASICIDE_MODULEDLG: { if ( rReq.GetArgs() ) @@ -838,6 +853,18 @@ void __EXPORT BasicIDEShell::GetState(SfxItemSet &rSet) rSet.DisableItem( nWh ); } break; + case SID_SIGNATURE: + { + sal_uInt16 nState = 0; + if ( pCurWin ) + { + SfxObjectShell* pShell = pCurWin->GetShell(); + if ( pShell ) + nState = pShell->GetScriptingSignatureState(); + } + rSet.Put( SfxUInt16Item( SID_SIGNATURE, nState ) ); + } + break; case SID_BASICIDE_MODULEDLG: { if ( StarBASIC::IsRunning() ) |