From 9a72d7d7e07ec9bbf70241aeee64625eed7924c8 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 8 Sep 2020 16:41:08 +0200 Subject: [PATCH] Added on document load event --- Events.xcu | 12 ++++++++++++ META-INF/manifest.xml | 1 + ePublishing/Events.xba | 12 ++++++++++++ ePublishing/script.xlb | 1 + 4 files changed, 26 insertions(+) create mode 100644 Events.xcu create mode 100644 ePublishing/Events.xba diff --git a/Events.xcu b/Events.xcu new file mode 100644 index 0000000..2277a09 --- /dev/null +++ b/Events.xcu @@ -0,0 +1,12 @@ + + + + + + + vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=application + + + + + diff --git a/META-INF/manifest.xml b/META-INF/manifest.xml index 1b9f359..417fa9f 100644 --- a/META-INF/manifest.xml +++ b/META-INF/manifest.xml @@ -2,5 +2,6 @@ + diff --git a/ePublishing/Events.xba b/ePublishing/Events.xba new file mode 100644 index 0000000..3bafeb3 --- /dev/null +++ b/ePublishing/Events.xba @@ -0,0 +1,12 @@ + + +Sub execOnDocumentLoad + Dim fixCompatibilityOption As Boolean + fixCompatibilityOption = true + If fixCompatibilityOption Then + Dim oDocSettings As Object + oDocSettings = ThisComponent.createInstance( "com.sun.star.document.Settings" ) + oDocSettings.setPropertyValue("AddParaSpacingToTableCells", false) + EndIf +End Sub + \ No newline at end of file diff --git a/ePublishing/script.xlb b/ePublishing/script.xlb index ea7d1b6..67b4031 100644 --- a/ePublishing/script.xlb +++ b/ePublishing/script.xlb @@ -11,4 +11,5 @@ + \ No newline at end of file