Fix template path option
This commit is contained in:
parent
34b8e0ade3
commit
feb2f7e5b9
1 changed files with 4 additions and 3 deletions
|
@ -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.21"
|
Public Const redactionExtensionVersion = "0.9.22"
|
||||||
Function initRedactionConfiguration()
|
Function initRedactionConfiguration()
|
||||||
On Error Goto exceptionHandler
|
On Error Goto exceptionHandler
|
||||||
Dim regFactory As Object
|
Dim regFactory As Object
|
||||||
|
@ -22,7 +22,7 @@ Function initRedactionConfiguration()
|
||||||
exceptionHandler:
|
exceptionHandler:
|
||||||
Resume Next
|
Resume Next
|
||||||
On Error Goto exceptionHandler2
|
On Error Goto exceptionHandler2
|
||||||
If Not propSetInfo.hasPropertyByName("complexity") Then
|
If Not propSetInfo.hasPropertyByName("defaultTemplate") Then
|
||||||
redactionProps.addProperty("defaultTemplate", 128, "Статья.ott")
|
redactionProps.addProperty("defaultTemplate", 128, "Статья.ott")
|
||||||
EndIf
|
EndIf
|
||||||
exceptionHandler2:
|
exceptionHandler2:
|
||||||
|
@ -165,6 +165,7 @@ Sub setDeafultTemplate()
|
||||||
config.setPropertyValue("defaultTemplate",fileName)
|
config.setPropertyValue("defaultTemplate",fileName)
|
||||||
Dim templatePath As String
|
Dim templatePath As String
|
||||||
templatePath = getTemplatePath()
|
templatePath = getTemplatePath()
|
||||||
|
MkDir(templatePath)
|
||||||
FileCopy(selectedTemplate, templatePath & "/" & fileName)
|
FileCopy(selectedTemplate, templatePath & "/" & fileName)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -198,4 +199,4 @@ End Sub
|
||||||
End If
|
End If
|
||||||
getFileURLDialog = ""
|
getFileURLDialog = ""
|
||||||
End Function
|
End Function
|
||||||
</script:module>
|
</script:module>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue