Added more info about cleaning environment
This commit is contained in:
parent
876008a5c5
commit
90352a2110
4 changed files with 22 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
<!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 mark65
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark66
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -1413,6 +1413,13 @@ Function getVersion As String
|
||||||
getVersion=oProduct.getByName("ooSetupVersion")
|
getVersion=oProduct.getByName("ooSetupVersion")
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Function getFullVersion As String
|
||||||
|
GlobalScope.BasicLibraries.LoadLibrary("Tools")
|
||||||
|
Dim oProduct As Object
|
||||||
|
oProduct=GetRegistryKeyContent("org.openoffice.Setup/Product")
|
||||||
|
getFullVersion=oProduct.getByName("ooSetupVersionAboutBox")
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Private Sub convertFormatToUserFields(identifier As String, styleNames, styleValues)
|
Private Sub convertFormatToUserFields(identifier As String, styleNames, styleValues)
|
||||||
|
@ -1801,12 +1808,21 @@ Sub addTimeStampToProperties
|
||||||
curTime = Now()
|
curTime = Now()
|
||||||
docProps = ThisComponent.getDocumentProperties()
|
docProps = ThisComponent.getDocumentProperties()
|
||||||
userProps = docProps.UserDefinedProperties()
|
userProps = docProps.UserDefinedProperties()
|
||||||
userProps.addProperty(curTime ,128,"Cleaned " & redactionExtensionVersion)
|
userProps.addProperty(curTime ,128,"Cleaned by " & getUserName() & " with " & redactionExtensionVersion & " LO" & getFullVersion() )
|
||||||
exceptionHandlerProps:
|
exceptionHandlerProps:
|
||||||
Resume Next
|
Resume Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Function getUserName() As String
|
||||||
|
Dim oCP As Object
|
||||||
|
Dim oCUA As Object
|
||||||
|
Dim aProps(0) As New com.sun.star.beans.PropertyValue
|
||||||
|
oCP = GetProcessServiceManager().createInstance( "com.sun.star.configuration.ConfigurationProvider" )
|
||||||
|
aProps(0).Name = "nodepath"
|
||||||
|
aProps(0).Value = "/org.openoffice.UserProfile/Data"
|
||||||
|
oCUA = oCP.createInstanceWithArguments( "com.sun.star.configuration.ConfigurationUpdateAccess", aProps )
|
||||||
|
getUserName = " " & oCUA.getByName("givenname") & " " & oCUA.getByName("sn")
|
||||||
|
End Function
|
||||||
|
|
||||||
sub saveCleanedVersion(comment)
|
sub saveCleanedVersion(comment)
|
||||||
dim document as object
|
dim document as object
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Configuration" script:language="StarBasic" script:moduleType="normal">Public Const redactionExtensionName As String = "cleanAndValidate"
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Configuration" script:language="StarBasic" script:moduleType="normal">Public Const redactionExtensionName As String = "cleanAndValidate"
|
||||||
Public Const redactionExtensionVersion = "0.9.5"
|
Public Const redactionExtensionVersion = "0.9.8"
|
||||||
Function initRedactionConfiguration()
|
Function initRedactionConfiguration()
|
||||||
On Error Goto exceptionHandler
|
On Error Goto exceptionHandler
|
||||||
Dim regFactory As Object
|
Dim regFactory As Object
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
def releaseVersion = "0.9.6"
|
def releaseVersion = "0.9.8"
|
||||||
task oxt(type: Zip) {
|
task oxt(type: Zip) {
|
||||||
dependsOn = [ 'setVersion','setVersionInBasicCode' ]
|
dependsOn = [ 'setVersion','setVersionInBasicCode' ]
|
||||||
from './'
|
from './'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<identifier value="pro.litvinovg.Redaction"/>
|
<identifier value="pro.litvinovg.Redaction"/>
|
||||||
<version value="0.9.5"/>
|
<version value="0.9.8"/>
|
||||||
<platform value="all"/>
|
<platform value="all"/>
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
||||||
|
|
Loading…
Add table
Reference in a new issue