From e3871d39e6db17ac50da19ffc03775c408379fdb Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 8 Sep 2020 18:20:35 +0200 Subject: [PATCH] First release --- Events.xcu | 14 +++++++++++++ META-INF/manifest.xml | 5 +++++ build.gradle | 13 ++++++++++++ description.xml | 37 ++++++++++++++++++++++++++++++++++ description/description_en.txt | 2 ++ description/description_ru.txt | 2 ++ docSettings/Events.xba | 12 +++++++++++ docSettings/dialog.xlb | 4 ++++ docSettings/script.xlb | 5 +++++ license_en.txt | 10 +++++++++ license_ru.txt | 7 +++++++ releasenotes.txt | 1 + 12 files changed, 112 insertions(+) create mode 100644 Events.xcu create mode 100644 META-INF/manifest.xml create mode 100644 build.gradle create mode 100644 description.xml create mode 100644 description/description_en.txt create mode 100644 description/description_ru.txt create mode 100644 docSettings/Events.xba create mode 100644 docSettings/dialog.xlb create mode 100644 docSettings/script.xlb create mode 100644 license_en.txt create mode 100644 license_ru.txt create mode 100644 releasenotes.txt diff --git a/Events.xcu b/Events.xcu new file mode 100644 index 0000000..95e1d37 --- /dev/null +++ b/Events.xcu @@ -0,0 +1,14 @@ + + + + + + + vnd.sun.star.script:docSettings.Events.execOnDocumentLoad?language=Basic&location=application + + + + + diff --git a/META-INF/manifest.xml b/META-INF/manifest.xml new file mode 100644 index 0000000..b8e7ac6 --- /dev/null +++ b/META-INF/manifest.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..be59f7b --- /dev/null +++ b/build.gradle @@ -0,0 +1,13 @@ +task oxt(type: Zip) { + from './' + include '*' + include '*/*' + include '*/*/*' + include '*/*/*/*' + exclude 'docSettings.oxt' + exclude '.*' + exclude 'build.gradle' + exclude 'translations.ods' + exclude 'update.xml' + archiveName 'docSettings.oxt' +} diff --git a/description.xml b/description.xml new file mode 100644 index 0000000..b3771a0 --- /dev/null +++ b/description.xml @@ -0,0 +1,37 @@ + + + + + + + Исправление свойств документов + Docement settings fix + + + + + + + + + + + + + + + Georgy Litvinov + + + + + + + + + + + + + + diff --git a/description/description_en.txt b/description/description_en.txt new file mode 100644 index 0000000..ad605f4 --- /dev/null +++ b/description/description_en.txt @@ -0,0 +1,2 @@ +Extension for document settings configuration. +For now consists of workaround for https://bugs.documentfoundation.org/show_bug.cgi?id=134782 diff --git a/description/description_ru.txt b/description/description_ru.txt new file mode 100644 index 0000000..d971d35 --- /dev/null +++ b/description/description_ru.txt @@ -0,0 +1,2 @@ +Расширение исправления настроек документов +В данный момент содержит только исправления для https://bugs.documentfoundation.org/show_bug.cgi?id=134782 diff --git a/docSettings/Events.xba b/docSettings/Events.xba new file mode 100644 index 0000000..3bafeb3 --- /dev/null +++ b/docSettings/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/docSettings/dialog.xlb b/docSettings/dialog.xlb new file mode 100644 index 0000000..f679cd9 --- /dev/null +++ b/docSettings/dialog.xlb @@ -0,0 +1,4 @@ + + + + diff --git a/docSettings/script.xlb b/docSettings/script.xlb new file mode 100644 index 0000000..9077bd7 --- /dev/null +++ b/docSettings/script.xlb @@ -0,0 +1,5 @@ + + + + + diff --git a/license_en.txt b/license_en.txt new file mode 100644 index 0000000..daea221 --- /dev/null +++ b/license_en.txt @@ -0,0 +1,10 @@ +The author of this extension is: + Georgy Litvinov (public@litvinovg.pro) +Copyright 2020. + +This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 of the License. + +This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along with this library. If not, see . + diff --git a/license_ru.txt b/license_ru.txt new file mode 100644 index 0000000..44f691a --- /dev/null +++ b/license_ru.txt @@ -0,0 +1,7 @@ +Автор расширения: + Георгий Литвинов (public@litvinovg.pro) +Copyright 2020. + +Это расширение является свободным программным обеспечением, вы можете распространять и/или модифицировать его в соответствии с лицензией GNU Lesser General Public License версии 3.0, опубликованной Free Software Foundation. + +Это расширение распространяется в надежде, что оно будет полезным, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ; даже без подразумеваемых гарантий КОММЕРЧЕСКОЙ ЦЕННОСТИ или ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ. См. GNU Lesser General Public License для более детальной информации: http://www.gnu.org/licenses/ diff --git a/releasenotes.txt b/releasenotes.txt new file mode 100644 index 0000000..e42c5a1 --- /dev/null +++ b/releasenotes.txt @@ -0,0 +1 @@ +0.0.1 First public release with workaround for https://bugs.documentfoundation.org/show_bug.cgi?id=134782