Issue 12041 - document does not enable save after making assign event change to it
Summary: document does not enable save after making assign event change to it
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: 644
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: noel.power
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 18:25 UTC by robert.kinsella
Modified: 2003-06-30 11:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description robert.kinsella 2003-03-04 18:25:53 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.
Comment 1 Unknown 2003-03-05 07:25:25 UTC
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
Comment 2 Unknown 2003-03-05 08:27:43 UTC
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
Comment 3 Unknown 2003-03-05 08:28:23 UTC
Fixed
Comment 4 robert.kinsella 2003-03-10 13:47:20 UTC
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.
Comment 5 Unknown 2003-03-10 14:17:01 UTC
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.
Comment 6 Unknown 2003-03-10 14:34:36 UTC
Following code added to ScriptingBindingLibrary fixes problem:

	docModel = ThisComponent.CurrentController.getModel()
	docModel.setModified( True )

Added to end of following functions:

sub AddEventToDocViaAPI
sub RemoveEventFromDocViaAPI

Comment 7 noel.power 2003-03-13 11:14:07 UTC
fixed
Comment 8 robert.kinsella 2003-03-13 15:23:52 UTC
fixed in SF ed-0.2 rc3
Comment 9 robert.kinsella 2003-03-13 15:26:46 UTC
verifed fixed on Linux
Comment 10 robert.kinsella 2003-06-30 11:49:31 UTC
verified fixed - closing issue