To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=100944





------- Additional comments from f...@openoffice.org Wed Apr 22 19:26:55 +0000 
2009 -------
Okay, the script doesn't crash OOo anymore. I am not sure the resulting Excel
document is okay, I know too little about Excel.

In OpenOffice.org, a form control is a duality of a form control model (the ones
you see in the form navigator), and control shapes in the drawing layer, which
are associated with a control model.

The script removes all control models (and all logical forms) from the document,
but the shapes remain. When saving this as Calc document, this would result in a
document corruption (but one which OOo will silently deal with). I do not know
whether the resulting Excel documents are also corrupted.

A clean solution to remove all form controls from the document would mean to
- iterate over all shapes in the draw page
  - check which shape supports the XControlShape interface
  - remove this shape from the document
- finally remove and dispose (which is allowed then, since removal made you
  the owner) all elements of the DrawPage.Forms (*not* the Forms object
  itself)

This would leave you with a consistent document.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to