diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index 48666a4..0d37bfc 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,6 +1,6 @@ -Sub mark26 +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 diff --git a/Redaction/CleaningDialog.xdl b/Redaction/CleaningDialog.xdl index 3c6b320..8effc44 100644 --- a/Redaction/CleaningDialog.xdl +++ b/Redaction/CleaningDialog.xdl @@ -16,5 +16,6 @@ + \ No newline at end of file