home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
ACROREAD
/
SUITE
/
DW10_S1.LSS
< prev
next >
Wrap
Text File
|
1996-09-29
|
1KB
|
31 lines
Option Public
%include "wpbitmsk.lss"
Sub ReviewRightsExample
' Get name of the current editor and set it equal to the
' variable CrntEditor then set up a greeting for the' document
Dim MyGreeting As String
Dim CrntEditor As String
CrntEditor = CurrentApplication.Preferences.UserName
MyGreeting = Inputbox("What greeting do you want to display?","Set Review Option")
' Set TeamReview Properties to prevent anyone other than
' the current editor from editing this document
With .ActiveDocument
.DocControl.UseGreeting = True
.DocControl.Greeting = MyGreeting
.DocControl.FileProtectionType = $LwpFileProtectTypeEditors
.EditorManager.Editors("All Others").Abilities = $LwpEditAbilEditingNotAllowed
.EditorManager.Editors("All Others").Locks = LwpEditLocksNoCopyAndNoSaveas
.EditorManager.Editors("All Others").Suggestions = LwpEditSuggEditingInNewVersion
.EditorManager.Editors(CrntEditor).Abilities = $LwpEditAbilEditCurrentOrNewVer
.EditorManager.Editors(CrntEditor).Locks = LwpEditLocksNoLocks
.EditorManager.Editors(CrntEditor).Suggestions = LwpEditSuggNoSuggestions
End With
End Sub