#83369# FormLetter: status method changed

This commit is contained in:
Oliver Specht 2001-02-15 07:58:48 +00:00
parent b7643afaba
commit d676f50ac4
2 changed files with 14 additions and 5 deletions

View file

@ -2,7 +2,7 @@
$Workfile: wrtapp.sdi $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/sdi/wrtapp.sdi,v 1.1.1.1 2000-09-18 17:14:31 hr Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/sdi/wrtapp.sdi,v 1.2 2001-02-15 08:57:16 os Exp $
Beschreibung: IDL - File SwWriterApp - Shell fuer Sw3
@ -90,7 +90,7 @@ interface StarWriter : Module
FN_QRY_MERGE // status()
[
ExecMethod = ExecDB ;
StateMethod = StateIsView ;
StateMethod = StateOther ;
DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
]
@ -248,6 +248,9 @@ shell SwModule
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
Revision 1.1.1.1 2000/09/18 17:14:31 hr
initial import
Revision 1.136 2000/05/26 07:06:20 os
old SW Basic API Slots removed

View file

@ -2,9 +2,9 @@
*
* $RCSfile: apphdl.cxx,v $
*
* $Revision: 1.11 $
* $Revision: 1.12 $
*
* last change: $Author: jp $ $Date: 2001-02-02 17:44:40 $
* last change: $Author: os $ $Date: 2001-02-15 08:58:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -520,7 +520,13 @@ void SwModule::StateOther(SfxItemSet &rSet)
rSet.Put( SfxBoolItem( nWhich, pModuleConfig->
IsInsTblFormatNum( bWebView )));
break;
case FN_QRY_MERGE:
{
SwView *pView = ::GetActiveView();
if(!pView || !GetView()->GetWrtShell().GetDBName().Len())
rSet.DisableItem(nWhich);
}
break;
default:
DBG_ERROR("::StateOther: default");
}