To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=44081 Issue #:|44081 Summary:|Java Macros attached via the XStorage API are lost |when saving the document Component:|api Version:|OOo 2.0 Beta Platform:|PC URL:| OS/Version:|Windows 2000 Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P4 Subcomponent:|code Assigned to:|sw Reported by:|mariush
------- Additional comments from [EMAIL PROTECTED] Fri Mar 4 06:08:00 -0800 2005 ------- We deploy "Java macros" for the Scripting Framework by using the XStorage API to embed them directly from the development tool into an open OpenOffice Document via UNO. (More exactly, they are opened in an OpenOfficeBean) But they are then lost after saving the document. In the open OpenOffice instance, they are present after deployment - you can attach keyboard shortcuts or new buttons to them. At this time, they are even present in the document file (XStorage access changes file on filesystem !) (grabbed a copy and opened with Winzip - see attached file hust_withmacros.odt). Saving the document (Ctrl-S or Save button) changes the situation again: They are neither in the running Office instance, nor in the just saved file. (See attached file hust_aftersave.odt) Perhaps intersting side effect: Putting a java macro by accessing the document as zip file, the effect is different: The macros are present when opening the file in OpenOffice and by saving the document again, they are still there. But as soon as they are touched with XStorage (deployed using zip, opened in OpenOffice to re-delpoy over XStorage) saving the document again makes them disappear. Sorry for no java code snippets - but it is just straight-forward plain file access over XStorage, thereby creating the directory structure necessary for the ScriptingFramework --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]