summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-08-31 11:20:19 +0000
committerKurt Zenker <kz@openoffice.org>2004-08-31 11:20:19 +0000
commitb2f1996d7bb744b1a8d10e2a324b9d57628e8af3 (patch)
tree3a95d125b94be68ef4f0efb8e97ff868758fccf8 /basctl
parent72b610d66e92479974675cfb89f44686c4daa1da (diff)
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...
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx31
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() )