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"?>
|
||||
<!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"
|
||||
Public Const redactionExtensionVersion = "0.9.21"
|
||||
Public Const redactionExtensionVersion = "0.9.22"
|
||||
Function initRedactionConfiguration()
|
||||
On Error Goto exceptionHandler
|
||||
Dim regFactory As Object
|
||||
|
@ -22,7 +22,7 @@ Function initRedactionConfiguration()
|
|||
exceptionHandler:
|
||||
Resume Next
|
||||
On Error Goto exceptionHandler2
|
||||
If Not propSetInfo.hasPropertyByName("complexity") Then
|
||||
If Not propSetInfo.hasPropertyByName("defaultTemplate") Then
|
||||
redactionProps.addProperty("defaultTemplate", 128, "Статья.ott")
|
||||
EndIf
|
||||
exceptionHandler2:
|
||||
|
@ -165,6 +165,7 @@ Sub setDeafultTemplate()
|
|||
config.setPropertyValue("defaultTemplate",fileName)
|
||||
Dim templatePath As String
|
||||
templatePath = getTemplatePath()
|
||||
MkDir(templatePath)
|
||||
FileCopy(selectedTemplate, templatePath & "/" & fileName)
|
||||
End Sub
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue