Added on document load event

This commit is contained in:
Georgy Litvinov 2020-09-08 16:41:08 +02:00
parent 8a99a25f43
commit 9a72d7d7e0
4 changed files with 26 additions and 0 deletions

12
ePublishing/Events.xba Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Events" script:language="StarBasic" script:moduleType="normal">Sub execOnDocumentLoad
Dim fixCompatibilityOption As Boolean
fixCompatibilityOption = true
If fixCompatibilityOption Then
Dim oDocSettings As Object
oDocSettings = ThisComponent.createInstance( &quot;com.sun.star.document.Settings&quot; )
oDocSettings.setPropertyValue(&quot;AddParaSpacingToTableCells&quot;, false)
EndIf
End Sub
</script:module>

View file

@ -11,4 +11,5 @@
<library:element library:name="MakeUp"/>
<library:element library:name="PageStyles"/>
<library:element library:name="Translations"/>
<library:element library:name="Events"/>
</library:library>