Added timestamp
This commit is contained in:
parent
adefad19df
commit
665895dd9c
4 changed files with 25 additions and 7 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 mark56
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">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
|
||||
</script:module>
|
Loading…
Add table
Add a link
Reference in a new issue