Fixes for latest commit

This commit is contained in:
Georgy Litvinov 2020-05-05 15:33:25 +02:00
parent ac84062a4d
commit 4a85997850
5 changed files with 8 additions and 12 deletions

View file

@ -3,7 +3,7 @@
xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006"
xmlns:xlink="http://www.w3.org/1999/xlink"> xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="pro.litvinovg.epublishing" /> <identifier value="pro.litvinovg.epublishing" />
<version value="0.3.1" /> <version value="0.4.2" />
<platform value="all" /> <platform value="all" />
<display-name> <display-name>
<name lang="ru">Инструменты для создания электронных изданий</name> <name lang="ru">Инструменты для создания электронных изданий</name>

View file

@ -1,9 +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="TOCLinks" script:language="StarBasic" script:moduleType="normal">Sub markTOC4 <script:module xmlns:script="http://openoffice.org/2000/script" script:name="TOCLinks" script:language="StarBasic" script:moduleType="normal">Sub makeOutlineLinks
End Sub
Sub makeOutlineLinks
Dim i As Integer Dim i As Integer
For i = 1 To 10 For i = 1 To 10
makeLinksWithLevel(i) makeLinksWithLevel(i)
@ -34,8 +31,7 @@ Sub makeLinksWithLevel(level)
MsgBox (getTranslation(&quot;TOCErrorContentsNotMatchHeadings1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; (&quot; &amp; (Ubound(outline)+1) &amp; getTranslation(&quot;TOCErrorContentsNotMatchHeadings2&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorContentsNotMatchHeadings3&quot;) &amp; (Ubound(heading)+1) &amp; &quot;)&quot; MsgBox (getTranslation(&quot;TOCErrorContentsNotMatchHeadings1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; (&quot; &amp; (Ubound(outline)+1) &amp; getTranslation(&quot;TOCErrorContentsNotMatchHeadings2&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorContentsNotMatchHeadings3&quot;) &amp; (Ubound(heading)+1) &amp; &quot;)&quot;
EndIf EndIf
ElseIf Ubound(outline) = -1 Then ElseIf Ubound(outline) = -1 Then
&apos; MsgBox (getTranslation(&quot;TOCErrorNoContents1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorNoContents2&quot;))
MsgBox (getTranslation(&quot;TOCErrorNoContents1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorNoContents2&quot;))
ElseIf Ubound(heading) = -1 Then ElseIf Ubound(heading) = -1 Then
MsgBox (getTranslation(&quot;TOCErrorNoHeadings1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorNoHeadings2&quot;)) MsgBox (getTranslation(&quot;TOCErrorNoHeadings1&quot;) &amp; &quot; &quot; &amp; level &amp; &quot; &quot; &amp; getTranslation(&quot;TOCErrorNoHeadings2&quot;))
EndIf EndIf

View file

@ -115,7 +115,7 @@ Function getRussian(identifier As String) As String
Case &quot;TOCErrorNoHeadings1&quot; Case &quot;TOCErrorNoHeadings1&quot;
getRussian = &quot;Не могу сделать ссылки в оглавлении. Заголовоков&quot; getRussian = &quot;Не могу сделать ссылки в оглавлении. Заголовоков&quot;
Exit Function Exit Function
Case &quot;TOCErrorNoContents1&quot; Case &quot;TOCErrorNoHeadings2&quot;
getRussian = &quot;уровня не найдено.&quot; getRussian = &quot;уровня не найдено.&quot;
Exit Function Exit Function
Case &quot;TOCErrorNoContents1&quot; Case &quot;TOCErrorNoContents1&quot;
@ -137,7 +137,7 @@ Function getRussian(identifier As String) As String
getRussian = &quot;Вы уверены, что хотите запустить сборку выпуска ?&quot; getRussian = &quot;Вы уверены, что хотите запустить сборку выпуска ?&quot;
Exit Function Exit Function
Case &quot;compileJournalIssueNoCurFilename&quot; Case &quot;compileJournalIssueNoCurFilename&quot;
getRussian = &quot;Сборка выпуска начата, подождите&quot; getRussian = &quot;Шаблон выпуска нужно сохранить в директории с файлами статей.&quot;
Exit Function Exit Function
Case &quot;compileJournalIssueStatusInProgerss&quot; Case &quot;compileJournalIssueStatusInProgerss&quot;
getRussian = &quot;Сборка выпуска начата, подождите&quot; getRussian = &quot;Сборка выпуска начата, подождите&quot;
@ -279,7 +279,7 @@ Function getEnglish(identifier As String) As String
Case &quot;TOCErrorNoHeadings1&quot; Case &quot;TOCErrorNoHeadings1&quot;
getEnglish = &quot;Can&apos;t create links in table of contents. No headings with &quot; getEnglish = &quot;Can&apos;t create links in table of contents. No headings with &quot;
Exit Function Exit Function
Case &quot;TOCErrorNoContents1&quot; Case &quot;TOCErrorNoHeadings2&quot;
getEnglish = &quot;level found.&quot; getEnglish = &quot;level found.&quot;
Exit Function Exit Function
Case &quot;TOCErrorNoContents1&quot; Case &quot;TOCErrorNoContents1&quot;
@ -301,7 +301,7 @@ Function getEnglish(identifier As String) As String
getEnglish = &quot;Compile journal issue from articles?&quot; getEnglish = &quot;Compile journal issue from articles?&quot;
Exit Function Exit Function
Case &quot;compileJournalIssueNoCurFilename&quot; Case &quot;compileJournalIssueNoCurFilename&quot;
getEnglish = &quot;Issue compilation in progress&quot; getEnglish = &quot;Save issue template in the same directory where are the articles.&quot;
Exit Function Exit Function
Case &quot;compileJournalIssueStatusInProgerss&quot; Case &quot;compileJournalIssueStatusInProgerss&quot;
getEnglish = &quot;Issue compilation in progress&quot; getEnglish = &quot;Issue compilation in progress&quot;

View file

@ -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="journals" script:language="StarBasic">Private sub journalsMark12 <script:module xmlns:script="http://openoffice.org/2000/script" script:name="journals" script:language="StarBasic">Private sub journalsMark13
End sub End sub
Dim templateName As String Dim templateName As String

Binary file not shown.