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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
<!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
|
End Sub
|
||||||
|
|
||||||
|
@ -60,6 +60,8 @@ End Sub
|
||||||
|
|
||||||
Private Sub cleanAccordingTo(dialog As Object)
|
Private Sub cleanAccordingTo(dialog As Object)
|
||||||
Dim statusIndicator as Object
|
Dim statusIndicator as Object
|
||||||
|
Dim openTrackChanges As Boolean
|
||||||
|
openTrackChanges = false
|
||||||
dialog.setVisible(false)
|
dialog.setVisible(false)
|
||||||
saveDocument
|
saveDocument
|
||||||
statusIndicator = ThisComponent.getCurrentController.statusIndicator
|
statusIndicator = ThisComponent.getCurrentController.statusIndicator
|
||||||
|
@ -117,10 +119,12 @@ Private Sub cleanAccordingTo(dialog As Object)
|
||||||
EndIf
|
EndIf
|
||||||
If dialog.getControl("fixDOI").state = 1 Then
|
If dialog.getControl("fixDOI").state = 1 Then
|
||||||
statusIndicator.Start(getTranslation("statusFixingDOI"),100)
|
statusIndicator.Start(getTranslation("statusFixingDOI"),100)
|
||||||
|
openTrackChanges = true
|
||||||
fixDOI
|
fixDOI
|
||||||
EndIf
|
EndIf
|
||||||
If dialog.getControl("replaceNumHyphen").state = 1 Then
|
If dialog.getControl("replaceNumHyphen").state = 1 Then
|
||||||
statusIndicator.Start(getTranslation("replaceNumHyphenStatus"),100)
|
statusIndicator.Start(getTranslation("replaceNumHyphenStatus"),100)
|
||||||
|
openTrackChanges = true
|
||||||
replaceNumHyphen
|
replaceNumHyphen
|
||||||
EndIf
|
EndIf
|
||||||
If dialog.getControl("removeInitPageBreak").state = 1 Then
|
If dialog.getControl("removeInitPageBreak").state = 1 Then
|
||||||
|
@ -148,6 +152,9 @@ Private Sub cleanAccordingTo(dialog As Object)
|
||||||
statusIndicator.end()
|
statusIndicator.end()
|
||||||
saveAndreload()
|
saveAndreload()
|
||||||
MsgBox getTranslation("cleaningFinished")
|
MsgBox getTranslation("cleaningFinished")
|
||||||
|
If openTrackChanges Then
|
||||||
|
showTrackedChanges
|
||||||
|
Endif
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -1961,7 +1968,6 @@ Private Sub replaceNumHyphen
|
||||||
StartTracking
|
StartTracking
|
||||||
replaceNumHyphenRegExp
|
replaceNumHyphenRegExp
|
||||||
StopTracking
|
StopTracking
|
||||||
showTrackedChanges
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,6 @@ Private Sub fixDOI
|
||||||
StartTracking
|
StartTracking
|
||||||
replaceCharsInDOI
|
replaceCharsInDOI
|
||||||
StopTracking
|
StopTracking
|
||||||
showTrackedChanges
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue