Translations and load template dialog
This commit is contained in:
parent
bd3b7706d8
commit
75fd6c8192
11 changed files with 221 additions and 15 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 mark41
|
||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark43
|
||||
|
||||
End Sub
|
||||
|
||||
|
@ -8,7 +8,7 @@ Sub cleanButton
|
|||
Dim config As Object
|
||||
config = initRedactionConfiguration()
|
||||
If config.getPropertyValue("complexity") = "user" then
|
||||
quietCleaning()
|
||||
quietStartDialog()
|
||||
Else
|
||||
makerUpMenu()
|
||||
EndIf
|
||||
|
@ -116,10 +116,6 @@ Private Sub quietCleaning
|
|||
Dim description As String
|
||||
Dim statusIndicator As Object
|
||||
statusIndicator = ThisComponent.getCurrentController.statusIndicator
|
||||
description = "Вы уверены, что хотите выполнить чистку документа?"
|
||||
If NOT confirm(description) Then
|
||||
Exit Sub
|
||||
EndIf
|
||||
saveDocument
|
||||
statusIndicator.Start("Чистка документа начата, подождите",100)
|
||||
doNotTrack
|
||||
|
@ -409,12 +405,19 @@ Private Sub loadArticleStyles
|
|||
Dim fileTest As Object
|
||||
Dim fileName As String
|
||||
Dim aArgs(0) As New com.sun.star.beans.PropertyValue
|
||||
fileName = "Статья.ott"
|
||||
Dim config As Object
|
||||
config = initRedactionConfiguration()
|
||||
fileName = config.getPropertyValue("defaultTemplate")
|
||||
filePath = getTemplatePath() & "/" & fileName
|
||||
fileTest = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")
|
||||
If NOT fileTest.exists(filePath) Then
|
||||
MsgBox "Файл стилей " & fileName & " не добавлен в Мои шаблоны. Не могу загрузить стили в текущий файл."
|
||||
Exit Sub
|
||||
noStylesFileDialog()
|
||||
fileName = config.getPropertyValue("defaultTemplate")
|
||||
filePath = getTemplatePath() & "/" & fileName
|
||||
If NOT fileTest.exists(filePath) Then
|
||||
'MsgBox "Файл стилей " & fileName & " не добавлен в Мои шаблоны. Не могу загрузить стили в текущий файл."
|
||||
Exit Sub
|
||||
EndIf
|
||||
EndIf
|
||||
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
|
||||
aArgs(0).Name = "OverwriteStyles"
|
||||
|
@ -1674,4 +1677,4 @@ Private Function insertUserField(cursor As Object,fieldName As String,fieldValue
|
|||
cursor.Text.insertTextContent(cursor, oField, False)
|
||||
oField.IsVisible = false
|
||||
End Function
|
||||
</script:module>
|
||||
</script:module>
|
Loading…
Add table
Add a link
Reference in a new issue