Issue 9976 - cannot assign binding to script in spreadsheet document
Summary: cannot assign binding to script in spreadsheet document
Status: CLOSED WONT_FIX
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: 644
Hardware: PC Windows 2000
: P4 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: noel.power
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-10 15:04 UTC by robert.kinsella
Modified: 2003-03-11 18:14 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 2002-12-10 15:04:18 UTC
OpenOffice.org 643C, Windwos 2000, Scripting Framework early developer release
version 0.1

Open the example  ExampleSpreadSheet.sxc document supplied in the scripting
framework install (<office-install>/user/Scripts/java/MemoryUsage).
Select ctrl-shft-m, select ok to the warning message. Note that the document
updates the memory usage.

Assign a new key binding to the script:-
1. Select tools, assign script (java) to key
2. In the select script function select MemoryUtils.MemUsage.
3. In the Key Group, select SHIFT+CONTROL+F keys
4. In the shortcut keys select Shift+control+F4.
5. Select New Script Key.
6. Select OK, select ok when prompted to restart OpenOffice.org.
7. Exit OpenOffice.org (also quickstarter) and relaunch it.
8 . Open ExampleSpreadSheet.sxc, select Shift+Control+F4

--> bug nothing happens i.e. the script does not execute.
Comment 1 tomaisoc 2003-01-09 16:51:31 UTC
Reassigning to John to find appropriate owner.
Comment 2 Unknown 2003-01-10 08:12:32 UTC
Close it out.

Will be covered by new Feature for Document support [Issue 10517
Better Document Script and Event support in the Assign].
Comment 3 robert.kinsella 2003-02-28 14:14:44 UTC
reoping issue.
Generally the assign binding to a document script is working. However
using the ExampleSpreadSheet document assigning the Document
MemoryUtils.MemUsage script to say ctrl-shift-F3, results in no action
occuring when the user subsequently selects ctrl-shift-F3 in the
document. Note security settings were set to always
Comment 4 robert.kinsella 2003-02-28 15:58:36 UTC
changing priority to p4
Comment 5 Unknown 2003-03-03 07:42:47 UTC
Assign to Noel to investigate and fix
Comment 6 noel.power 2003-03-03 07:59:18 UTC
Sounds like a key conflict, will investigate..
Comment 7 noel.power 2003-03-03 14:09:35 UTC
ExampleSpreadsheet has its own bindings embedded in the document
(unzip -l the doc and u will see and Configuration dir), 
these bindings take precedence over the application specific bindings
in ..user/config/soffce/calcbinding.xml. 
Note: This is also the behaviour of StarBasic, we inherit this
behaviour as we piggyback the event dispatching from the key bindings. 

To create a f3 binding for ExampleSpreadsheet you would need 
a)create the binding as normal using script framework assign dialogs (
will be valid for all docs opened )
b)to go to the configure dialog ( under Tools ) click save as,
navigate to ExampleSpreadSheed and click ok.
c) go back to Assign to Key dialog, remove the binding created in step a.

You should now have a new binding for f3, for ExampleSpreadsheet only

This functionality should be documented
Comment 8 michael.bemmer 2003-03-11 18:05:52 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 9 michael.bemmer 2003-03-11 18:14:24 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.