Apache OpenOffice (AOO) Bugzilla – Issue 12041
document does not enable save after making assign event change to it
Last modified: 2003-06-30 11:49:31 UTC
SFrameworkInstall.jar.27.02.2003, StarOffice 644 buildm5, Solaris and Windows. Open an office docuement, e.g. testbind.sxw. Select tools, scripting add on's, assign scirpt to event. Select loc: - user lang: - java script: - HighlightText.showForm Select Document, Open Document, Assign and OK. Select File BUG--> the Save menu item should be enabled as should the save file icon in the function bar, workaround -- the user needs to alter the document in order to save it.
Similar problem to 12040. The Assign dialogs have not marked the document as modified when a new binding is setup, because nothing has been saved to the document. Only when you go and choose Configure and save will you get the document modified and can then save the binding. Limitation of current implementation. requires_documentation
This has actually been fixed in m5 and you do get the binding saved in the document without having to use the Tools/ Configure/ Menu -> Save
Fixed
this issue has not been fixed, the save option is not enabled after the user makes a change to the event binding for that document. When closing the document the suer does not get warned that unsaved changes have been made to the doucment. reopening issue.
We could use XModifiable on the current document's XModel and just call setModified on it. Do this in the Star Basic code handling the OK button for the Assign to Event dialog. Noel - can you investigate. May not be fixed in this release, but we should know if above workaround is an option.
Following code added to ScriptingBindingLibrary fixes problem: docModel = ThisComponent.CurrentController.getModel() docModel.setModified( True ) Added to end of following functions: sub AddEventToDocViaAPI sub RemoveEventFromDocViaAPI
fixed
fixed in SF ed-0.2 rc3
verifed fixed on Linux
verified fixed - closing issue