Fix for prev commit
This commit is contained in:
parent
af0c775dd2
commit
4245038966
2 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<?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 mark77
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark78
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -60,6 +60,8 @@ End Sub
|
|||
|
||||
Private Sub cleanAccordingTo(dialog As Object)
|
||||
Dim statusIndicator as Object
|
||||
Dim openTrackChanges As Boolean
|
||||
openTrackChanges = false
|
||||
dialog.setVisible(false)
|
||||
saveDocument
|
||||
statusIndicator = ThisComponent.getCurrentController.statusIndicator
|
||||
|
@ -117,10 +119,12 @@ Private Sub cleanAccordingTo(dialog As Object)
|
|||
EndIf
|
||||
If dialog.getControl("fixDOI").state = 1 Then
|
||||
statusIndicator.Start(getTranslation("statusFixingDOI"),100)
|
||||
openTrackChanges = true
|
||||
fixDOI
|
||||
EndIf
|
||||
If dialog.getControl("replaceNumHyphen").state = 1 Then
|
||||
statusIndicator.Start(getTranslation("replaceNumHyphenStatus"),100)
|
||||
openTrackChanges = true
|
||||
replaceNumHyphen
|
||||
EndIf
|
||||
If dialog.getControl("removeInitPageBreak").state = 1 Then
|
||||
|
@ -148,6 +152,9 @@ Private Sub cleanAccordingTo(dialog As Object)
|
|||
statusIndicator.end()
|
||||
saveAndreload()
|
||||
MsgBox getTranslation("cleaningFinished")
|
||||
If openTrackChanges Then
|
||||
showTrackedChanges
|
||||
Endif
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -1961,7 +1968,6 @@ Private Sub replaceNumHyphen
|
|||
StartTracking
|
||||
replaceNumHyphenRegExp
|
||||
StopTracking
|
||||
showTrackedChanges
|
||||
End Sub
|
||||
|
||||
|
||||
|
|
|
@ -154,7 +154,6 @@ Private Sub fixDOI
|
|||
StartTracking
|
||||
replaceCharsInDOI
|
||||
StopTracking
|
||||
showTrackedChanges
|
||||
End Sub
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue