diff --git a/Redaction/Configuration.xba b/Redaction/Configuration.xba index caca05c..c214128 100644 --- a/Redaction/Configuration.xba +++ b/Redaction/Configuration.xba @@ -1,7 +1,7 @@ Public Const redactionExtensionName As String = "cleanAndValidate" -Public Const redactionExtensionVersion = "0.8.5" +Public Const redactionExtensionVersion = "0.8.6" Function initRedactionConfiguration() On Error Goto exceptionHandler Dim regFactory As Object diff --git a/Redaction/Validation.xba b/Redaction/Validation.xba index a6e03d3..f3b8411 100644 --- a/Redaction/Validation.xba +++ b/Redaction/Validation.xba @@ -1,6 +1,6 @@ -Sub markval9 +Sub markval10 End Sub @@ -34,14 +34,25 @@ Sub validateButton Dim needExtendedInfo As Boolean Dim config As Object config = initRedactionConfiguration() + + Dim statusIndicator as Object + statusIndicator = ThisComponent.getCurrentController.statusIndicator + statusIndicator.Start(getTranslation("validationStarted"),100) + badText = false badNumberings = false footnotesReport = noteSingsCheck + statusIndicator.setValue(10) graphicsReport = checkGraphics + statusIndicator.setValue(20) sectionsReport = checkSectionsInTables + statusIndicator.setValue(30) outlineInNotesReport = checkNotesOutline() + statusIndicator.setValue(40) outlinePageStylesReport = checkHeadingsInHeadersFooters + statusIndicator.setValue(50) oulineInTablesReport = checkHeadingsInTextTables + statusIndicator.setValue(60) If outlineInNotesReport <> "" Then MsgBox outlineInNotesReport EndIf @@ -72,7 +83,7 @@ Sub validateButton EndIf printNumberingSymbols(needExtendedInfo) - + statusIndicator.setValue(80) If badText OR badNumberings OR footnotesReport <> "" OR graphicsReport <> "" Or outlineInNotesReport <> "" Or sectionsReport <> "" OR oulineInTablesReport <> "" OR outlinePageStylesReport <> "" Then MsgBox getTranslation("validationWarning") If badText Then @@ -82,6 +93,7 @@ Sub validateButton Else MsgBox getTranslation("validationSuccess") EndIf + statusIndicator.end() End Sub Private Function checkGraphics() As String diff --git a/build.gradle b/build.gradle index b3fb503..0e535b8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -def releaseVersion = "0.8.5" +def releaseVersion = "0.8.6" task oxt(type: Zip) { dependsOn = [ 'setVersion','setVersionInBasicCode' ] from './' diff --git a/description.xml b/description.xml index 8be7fd4..050f1f3 100644 --- a/description.xml +++ b/description.xml @@ -1,7 +1,7 @@ - + Cleaning and validation documents for publishing in html and epub with pagination