From 15a423b3c44e53b8e972f42f8f2af2071abd004f Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 8 May 2020 17:17:01 +0200 Subject: [PATCH] new version --- description.xml | 2 +- ePublishing/Archive.xba | 14 ++++++-------- epublishing.update.xml | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/description.xml b/description.xml index 40ea577..0ddf172 100644 --- a/description.xml +++ b/description.xml @@ -3,7 +3,7 @@ xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink"> - + Инструменты для создания электронных изданий diff --git a/ePublishing/Archive.xba b/ePublishing/Archive.xba index 032820e..10ff7fe 100644 --- a/ePublishing/Archive.xba +++ b/ePublishing/Archive.xba @@ -1,6 +1,6 @@ -Sub archMark9 +Sub archMark10 End Sub @@ -193,19 +193,19 @@ sub convertIndesignPageBreaks MsgBox getTranslation("convertIndesignPageBreaksFinish") end Sub -Sub adjustLastLine(oTextCursor) +Sub adjustLastLine(oTextCursor As Object) oTextCursor.ParaAdjust = 2 oTextCursor.ParaLastLineAdjust = 2 balancePara(oTextCursor) End Sub -Sub adjustFirstLine(oTextCursor) +Sub adjustFirstLine(oTextCursor As Object) oTextCursor.goRight(1,false) oTextCursor.ParaFirstLineIndent = 0 End Sub -Function isLowerCase(character) As Boolean +Function isLowerCase(character As String) As Boolean Dim charNum As Integer If (character = "") Then charNum = ASC(""+0) @@ -219,7 +219,7 @@ Function isLowerCase(character) As Boolean isLowerCase = false End Function -Sub balancePara(Optional targetPara As Object) +Sub balancePara(targetPara As Object) ' Globalscope.BasicLibraries.LoadLibrary( "MRILib" ) Dim oViewCursor As Object Dim oTextCursor As Object @@ -238,9 +238,7 @@ Sub balancePara(Optional targetPara As Object) initialLineCount = 0 oViewCursor = ThisComponent.CurrentController.getViewCursor() - If NOT IsMissing(targetPara) Then - oViewCursor.goToRange(targetPara, false) - EndIf + oViewCursor.goToRange(targetPara, false) oTextCursor = oViewCursor.Text.createTextCursorByRange(oViewCursor) oPara = oViewCursor.Text.createTextCursorByRange(oViewCursor) diff --git a/epublishing.update.xml b/epublishing.update.xml index 16fe2c1..4c5a940 100644 --- a/epublishing.update.xml +++ b/epublishing.update.xml @@ -2,9 +2,9 @@ - + - +