Fix tables on cleaning

This commit is contained in:
Georgy Litvinov 2019-10-16 23:33:42 +03:00
parent aceaef82fd
commit 1ee9bf594e
2 changed files with 19 additions and 0 deletions

View file

@ -15,6 +15,8 @@
disposePageBreaks
disposeAllLinks
disposeAllBookmarks
fixTableAnchors
statusIndicator.end()
saveAndreload()
End Sub
@ -146,6 +148,23 @@ Private Sub cleanFormatting
End Sub
Private Sub fixTableAnchors()
Dim table As Object
Dim tables As Object
tables = ThisComponent.TextTables
Dim count As Long
count = ThisComponent.TextTables.getCount()
For i = 0 To count - 1
table = tables.getByIndex(i)
If table.HoriOrient = 6 Then
table.HoriOrient = 2
EndIf
If table.RelativeWidth = 0 Then
table.RelativeWidth = 100
EndIf
Next
End Sub
Sub manualFontsToCharStyle
Dim oDoc
oDoc = Thiscomponent

Binary file not shown.