Added remove unused styles option in advanced mode
This commit is contained in:
parent
df389df60b
commit
082768d368
2 changed files with 11 additions and 6 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 mark26
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark27
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -47,17 +47,20 @@ Private Sub cleanAccordingTo(dialog)
|
|||
statusIndicator.Start("Чистим ручное форматирование",100)
|
||||
cleanFormatting
|
||||
EndIf
|
||||
If dialog.getControl("removeUnusedStyles").state = 1 Then
|
||||
removeUnusedStyles
|
||||
EndIf
|
||||
If dialog.getControl("removeLinks").state = 1 Then
|
||||
statusIndicator.Start("Удаляем гиперссылки",100)
|
||||
removeHyperlinks
|
||||
EndIf
|
||||
If dialog.getControl("removeBookmarks").state = 1 Then
|
||||
statusIndicator.Start("Удаляем закладки",100)
|
||||
disposeAllBookmarks
|
||||
statusIndicator.Start("Удаляем закладки",100)
|
||||
disposeAllBookmarks
|
||||
EndIf
|
||||
If dialog.getControl("configTables").state = 1 Then
|
||||
statusIndicator.Start("Настраиваем таблицы",100)
|
||||
fixTableWidth
|
||||
statusIndicator.Start("Настраиваем таблицы",100)
|
||||
fixTableWidth
|
||||
EndIf
|
||||
If dialog.getControl("configAnchors").state = 1 Then
|
||||
statusIndicator.Start("Настраиваем привязку изображений",100)
|
||||
|
@ -102,6 +105,7 @@ Private Sub quietCleaning
|
|||
unicodeSymbolsConversion
|
||||
statusIndicator.Start("Чистим ручное форматирование",100)
|
||||
cleanFormatting
|
||||
removeUnusedStyles
|
||||
statusIndicator.Start("Удаляем гиперссылки",100)
|
||||
removeHyperlinks
|
||||
statusIndicator.Start("Удаляем закладки",100)
|
||||
|
@ -611,7 +615,7 @@ Private Sub cleanFormatting
|
|||
|
||||
resetFootnotesStyle
|
||||
|
||||
removeUnusedStyles
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue