More fixes
This commit is contained in:
parent
3f8fd4f186
commit
2fd1adc5bc
1 changed files with 10 additions and 3 deletions
|
@ -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="Hyphenations" script:language="StarBasic">Private Sub markHyph3
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Hyphenations" script:language="StarBasic">Private Sub markHyph4
|
||||||
End sub
|
End sub
|
||||||
|
|
||||||
Private Sub convertHyphInDoc()
|
Private Sub convertHyphInDoc()
|
||||||
|
@ -139,7 +139,7 @@ Private Sub convertParaHyphens(para)
|
||||||
replaceHyphen(autoHyphens(i),lineNumbers(i))
|
replaceHyphen(autoHyphens(i),lineNumbers(i))
|
||||||
Next i
|
Next i
|
||||||
EndIf
|
EndIf
|
||||||
' verifyHyphenation(lineEnds,lineShifts)
|
verifyHyphenation(lineEnds)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -157,6 +157,11 @@ Private Sub verifyHyphenation(lineEnds() As Object)
|
||||||
Stop
|
Stop
|
||||||
EndIf
|
EndIf
|
||||||
Next i
|
Next i
|
||||||
|
' dim description as String
|
||||||
|
' description = "Проверка прошла успешно"
|
||||||
|
' If NOT confirm(description) Then
|
||||||
|
' Stop
|
||||||
|
' EndIf
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
@ -230,6 +235,8 @@ Private Sub compressLine(tCurs As Object)
|
||||||
tPortion = vCurs.Text.createTextCursorByRange(startPosition)
|
tPortion = vCurs.Text.createTextCursorByRange(startPosition)
|
||||||
tPortion.goToRange(tLine.Start,true)
|
tPortion.goToRange(tLine.Start,true)
|
||||||
addToArray(textPortions(),tPortion)
|
addToArray(textPortions(),tPortion)
|
||||||
|
Else
|
||||||
|
addToArray(textPortions(),tLine)
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
vCurs.goToRange(tCurs,false)
|
vCurs.goToRange(tCurs,false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue