Fix tables on cleaning
This commit is contained in:
parent
aceaef82fd
commit
1ee9bf594e
2 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
BIN
redaction.oxt
BIN
redaction.oxt
Binary file not shown.
Loading…
Add table
Reference in a new issue