home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
ACROREAD
/
SUITE
/
DW10_S4.LSS
< prev
next >
Wrap
Text File
|
1996-09-29
|
1KB
|
29 lines
Option Public
%include "wpbitmsk.lss"
Sub EditingRights
' Declare the variable CrntEditor and assign it the value' of the current user's name.
Dim CrntEditor As String
CrntEditor = CurrentApplication.Preferences.UserName
With .ActiveDocument
' Restrict access to the TeamSecurity dialog to the' current editor.
.DocControl.DocControlRestrictedToEditor = CrntEditor
' Specify who has access to open the document
.DocControl.FileProtectionType = $LwpFileProtectTypeNone
' Restrict all editors other than the current editor to a
' new version, with remarks only and do not allow them to
' make any suggestions
.EditorManager.Editors("All Others").Abilities = $LwpEditAbilEditNewVersionsOnly
.EditorManager.Editors("All Others").Locks = LwpEditLocksRevmarkOnly
.EditorManager.Editors("All Others").Suggestions = LwpEditSuggNoSuggestions
' Specify the current editors rights as unlimited
.EditorManager.Editors(CrntEditor).Abilities = $LwpEditAbilEditCurrentOrNewVer
.EditorManager.Editors(CrntEditor).Locks = LwpEditLocksNoLocks
.EditorManager.Editors(CrntEditor).Suggestions = LwpEditSuggNoSuggestions
End With
End Sub