push new version
This commit is contained in:
parent
11f2eb17b8
commit
9b7982da1a
7 changed files with 53 additions and 4 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 mark61
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark64
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -29,6 +29,7 @@ Private Sub makerUpMenu
|
|||
dialog.getControl("replaceWhiteBackground").Label = getTranslation("advancedMenuReplaceWhiteBackground")
|
||||
dialog.getControl("removeUnusedStyles").Label = getTranslation("advancedMenuRemoveUnusedStyles")
|
||||
dialog.getControl("removeLinks").Label = getTranslation("advancedMenuRemoveLinks")
|
||||
dialog.getControl("removeAllFields").Label = getTranslation("advancedMenuRemoveAllFields")
|
||||
dialog.getControl("removeBookmarks").Label = getTranslation("advancedMenuRemoveBookmarks")
|
||||
dialog.getControl("configTables").Label = getTranslation("advancedMenuConfigTables")
|
||||
dialog.getControl("configAnchors").Label = getTranslation("advancedMenuConfigAnchors")
|
||||
|
@ -87,6 +88,10 @@ Private Sub cleanAccordingTo(dialog As Object)
|
|||
statusIndicator.Start(getTranslation("statusRemoveLinks"),100)
|
||||
removeHyperlinks
|
||||
EndIf
|
||||
If dialog.getControl("removeAllFields").state = 1 Then
|
||||
statusIndicator.Start(getTranslation("statusRemoveAllFields"),100)
|
||||
removeAllFields
|
||||
EndIf
|
||||
If dialog.getControl("removeBookmarks").state = 1 Then
|
||||
statusIndicator.Start(getTranslation("statusRemoveBookmarks"),100)
|
||||
disposeAllBookmarks
|
||||
|
@ -377,6 +382,18 @@ Private Sub removeUserPageStyles
|
|||
Next i
|
||||
End Sub
|
||||
|
||||
Sub removeAllFields()
|
||||
Dim fields As Object
|
||||
Dim fieldEnum As Object
|
||||
Dim field As Object
|
||||
fields = ThisComponent.getTextFields()
|
||||
fieldEnum = fields.createEnumeration()
|
||||
While fieldEnum.hasMoreElements
|
||||
field = fieldEnum.nextElement()
|
||||
field.dispose()
|
||||
Wend
|
||||
End sub
|
||||
|
||||
Private Sub fixFrequentMistakes
|
||||
Dim config As Object
|
||||
config = initRedactionConfiguration()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue