Added check for null object
This commit is contained in:
parent
202c41251b
commit
ef9c8d8fff
3 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Validation" script:language="StarBasic">Sub markZZZX
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Validation" script:language="StarBasic">Sub markZXZ
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -92,11 +92,16 @@ Private Function checkGraphics
|
||||||
' Globalscope.BasicLibraries.LoadLibrary( "MRILib" )
|
' Globalscope.BasicLibraries.LoadLibrary( "MRILib" )
|
||||||
' MRI draw
|
' MRI draw
|
||||||
If draw.supportsService("com.sun.star.text.TextEmbeddedObject") Then
|
If draw.supportsService("com.sun.star.text.TextEmbeddedObject") Then
|
||||||
|
|
||||||
embeededObject = draw.getEmbeddedObject()
|
embeededObject = draw.getEmbeddedObject()
|
||||||
If Not embeededObject.supportsService("com.sun.star.formula.FormulaProperties") Then
|
If IsNull(embeededObject) Then
|
||||||
badFrame = badFrame + 1
|
badFrame = badFrame + 1
|
||||||
Else
|
Else
|
||||||
'Formula
|
If Not embeededObject.supportsService("com.sun.star.formula.FormulaProperties") Then
|
||||||
|
badFrame = badFrame + 1
|
||||||
|
Else
|
||||||
|
'Formula
|
||||||
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<identifier value="pro.litvinovg.Redaction" />
|
<identifier value="pro.litvinovg.Redaction" />
|
||||||
<version value="0.3.5" />
|
<version value="0.3.6" />
|
||||||
<platform value="all" />
|
<platform value="all" />
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
0.3.6 Added check for null EmbeededObject (13.01.2019)
|
||||||
0.0.1 (18.10.2019)
|
0.0.1 (18.10.2019)
|
||||||
initial release
|
initial release
|
||||||
|
|
Loading…
Add table
Reference in a new issue