diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index e73fe01..875fdd6 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,6 +1,6 @@ -Sub mark56 +Sub mark57 End Sub @@ -172,6 +172,7 @@ Private Sub quietCleaning statusIndicator.Start(getTranslation("statusLoadingStylesFromTemplate"),100) loadArticleStyles removeLibs + addTimeStampToProperties statusIndicator.end() saveAndreload() MsgBox getTranslation("cleaningFinished") @@ -1740,5 +1741,18 @@ sub saveAsDocAndBackToODT If FileExists(tmpName) Then Kill(tmpName) End If -end sub +end Sub + +Sub addTimeStampToProperties + Dim docProps As Object + Dim userProps As Object + Dim curTime As String + On Error Goto exceptionHandlerProps + curTime = Now() + docProps = ThisComponent.getDocumentProperties() + userProps = docProps.UserDefinedProperties() + userProps.addProperty(curTime ,128,"Cleaned " & redactionExtensionVersion) + exceptionHandlerProps: + Resume Next +End Sub \ No newline at end of file diff --git a/Redaction/Configuration.xba b/Redaction/Configuration.xba index dd6655f..b1749a3 100644 --- a/Redaction/Configuration.xba +++ b/Redaction/Configuration.xba @@ -1,7 +1,7 @@ Public Const redactionExtensionName As String = "cleanAndValidate" - +Public Const redactionExtensionVersion = "0.7.15" Function initRedactionConfiguration() On Error Goto exceptionHandler Dim regFactory As Object diff --git a/build.gradle b/build.gradle index 3d2c10d..6086410 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ -def releaseVersion = "0.7.14" +def releaseVersion = "0.7.15" task oxt(type: Zip) { - dependsOn = [ 'setVersion' ] + dependsOn = [ 'setVersion','setVersionInBasicCode' ] from './' include '*' include '*/*' @@ -21,4 +21,8 @@ task setVersion(){ replace(path: "//*[local-name()='version']/@value", withText: "${releaseVersion}") } } - +task setVersionInBasicCode { + ant.replaceregexp(match:'redactionExtensionVersion = ".*"', replace:"redactionExtensionVersion = "${releaseVersion}"", flags:'g', byline:true) { + fileset(dir: 'Redaction', includes: 'Configuration.xba') + } +} diff --git a/description.xml b/description.xml index b4b5924..c0976fa 100644 --- a/description.xml +++ b/description.xml @@ -1,7 +1,7 @@ - + Cleaning and validation documents for publishing in html and epub with pagination