diff --git a/IPHRedaction/Validation.xba b/IPHRedaction/Validation.xba index 87573be..f616dbf 100644 --- a/IPHRedaction/Validation.xba +++ b/IPHRedaction/Validation.xba @@ -1,6 +1,6 @@ -Sub markZZZ +Sub markZZZX End Sub @@ -89,11 +89,15 @@ Private Function checkGraphics drawingN = drawingN + 1 EndIf If InStr(shapeType,"FrameShape") = 1 Then - embeededObject = draw.getEmbeddedObject() - If Not embeededObject.supportsService("com.sun.star.formula.FormulaProperties") Then - badFrame = badFrame + 1 - Else - 'Formula +' Globalscope.BasicLibraries.LoadLibrary( "MRILib" ) +' MRI draw + If draw.supportsService("com.sun.star.text.TextEmbeddedObject") Then + embeededObject = draw.getEmbeddedObject() + If Not embeededObject.supportsService("com.sun.star.formula.FormulaProperties") Then + badFrame = badFrame + 1 + Else + 'Formula + EndIf EndIf EndIf Next i diff --git a/description.xml b/description.xml index 370bfb2..af018c5 100644 --- a/description.xml +++ b/description.xml @@ -3,7 +3,7 @@ xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink"> - + Redaction for publishing in Institute of philosophy diff --git a/redaction.oxt b/redaction.oxt index 2807d14..bd916ac 100644 Binary files a/redaction.oxt and b/redaction.oxt differ