Do not clean in read only documents
This commit is contained in:
parent
8116838758
commit
c7c164c553
6 changed files with 23 additions and 4 deletions
|
@ -1,12 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark58
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark59
|
||||
|
||||
End Sub
|
||||
|
||||
Sub cleanButton
|
||||
Dim config As Object
|
||||
config = initRedactionConfiguration()
|
||||
If ThisComponent.isReadonly Then
|
||||
getTranslation("documentIsReadOnly")
|
||||
Exit Sub
|
||||
EndIf
|
||||
If config.getPropertyValue("complexity") = "user" then
|
||||
quietStartDialog()
|
||||
Else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue