Issue 116313 - "View created" event not fired (or bound script not called)
Summary: "View created" event not fired (or bound script not called)
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: DEV300m96
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: mikhail.voytenko
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2011-01-05 13:34 UTC by Frank Schönheit
Modified: 2013-08-07 15:31 UTC (History)
1 user (show)

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


Attachments
document to reproduce the bug case (9.02 KB, application/vnd.oasis.opendocument.text)
2011-01-05 13:35 UTC, Frank Schönheit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2011-01-05 13:34:55 UTC
- open a new text document
- via Tools/Macros/Organize Macros/Basic, create a Basic function, embedded
  in the document, like this:
  Sub Hello
    MsgBox "Hello"
  End Sub
- via Tools/Customize/Events, bind the macro to the "View created" event
- Window/New Window
=> nothing happens

The expected result is that the macro is called, and thus the message box is
displayed, but this doesn't work in m96
Comment 1 Frank Schönheit 2011-01-05 13:35:21 UTC
Created attachment 75471 [details]
document to reproduce the bug case
Comment 2 Frank Schönheit 2011-01-05 13:37:14 UTC
correcting summary
Comment 3 Frank Schönheit 2011-01-05 14:03:10 UTC
Note:
I found this bug by running a newly introduced complex test case in CWS undoapi.
This test failed because of this bug here. For the moment, I commented out the
few lines of code which need this, but this also means slightly crippling the test.

When the bug here is fixed, please also re-enable this piece of code in
sfx2/qa/complex/sfx2/UndoManager.java (just look for the bug ID). Thanks.
Comment 4 Martin Hollmichel 2011-03-15 21:04:14 UTC
set target to 3.x since not release relevant for 3.4 release.
Comment 5 Frank Schönheit 2011-03-28 12:48:16 UTC
found fixed in DEV300.m104
Comment 6 Frank Schönheit 2011-03-28 12:48:32 UTC
closing