From b2f1996d7bb744b1a8d10e2a324b9d57628e8af3 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 31 Aug 2004 11:20:19 +0000 Subject: INTEGRATION: CWS xmlsec05 (1.31.10); FILE MERGED 2004/08/13 18:23:04 mt 1.31.10.3: RESYNC: (1.31-1.32); FILE MERGED 2004/07/28 15:13:44 mt 1.31.10.2: #i21596# Digital Signatures... 2004/07/21 06:57:04 mt 1.31.10.1: #i21596# Digital Signatures... --- basctl/source/basicide/basides1.cxx | 31 +++++++++++++++++++++++++++++-- 1 file 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() ) -- cgit v1.2.3