Kaydet (Commit) 14cef6e5 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

detect groupShapes (TimestampFields) in forms, too

as a consequence, successfully delete them

Change-Id: I5dd7b329708dd13f8bfe4a38974c5f6f1202b392
üst d566256b
......@@ -266,6 +266,19 @@ public class FormHandler
private boolean belongsToForm(Object _oDrawPageElement, String _FormName)
{
XServiceInfo xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, _oDrawPageElement);
while (xServiceInfo.supportsService("com.sun.star.drawing.GroupShape"))
{
XShapes xShapes = UnoRuntime.queryInterface(XShapes.class, _oDrawPageElement);
try
{
_oDrawPageElement = xShapes.getByIndex(0);
xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, _oDrawPageElement);
}
catch(final com.sun.star.uno.Exception e)
{
return false;
}
}
if (xServiceInfo.supportsService("com.sun.star.drawing.ControlShape"))
{
XControlShape xControlShape = UnoRuntime.queryInterface(XControlShape.class, _oDrawPageElement);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment