Only for writer documents

This commit is contained in:
Georgy Litvinov 2020-09-09 17:50:52 +02:00
parent b4f564676a
commit fd046e8ebf
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="pro.litvinovg.libreoffice.docsettings"/>
<version value="0.0.2"/>
<version value="0.0.3"/>
<platform value="all"/>
<display-name>
<name lang="ru">Исправление свойств документов</name>

View file

@ -6,7 +6,9 @@
If fixCompatibilityOption Then
Dim oDocSettings As Object
oDocSettings = ThisComponent.createInstance( &quot;com.sun.star.document.Settings&quot; )
oDocSettings.setPropertyValue(&quot;AddParaSpacingToTableCells&quot;, false)
If oDocSettings.supportsService(&quot;com.sun.star.text.DocumentSettings&quot;) Then
oDocSettings.setPropertyValue(&quot;AddParaSpacingToTableCells&quot;, false)
EndIf
EndIf
End Sub
</script:module>