Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | bugfix found: using oWindow.Enable enables all Formelements in a sheet | ||||||
---|---|---|---|---|---|---|---|
Product: | Base | Reporter: | Oliver Brinzing <oliver.brinzing> | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | ACCEPTED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P4 | CC: | issues, malte_timmermann | ||||
Version: | OOo 1.0.0 | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
Oliver Brinzing
2002-09-15 13:18:43 UTC
Created attachment 2844 [details] FormTest for issue 7732 i think this one is for the API Team. Frank implementation issue cc'ing Malte Malte, I darly remember that we discussed this problem some time ago, together with Berend and his wizards. From quickly thinking about it, I tend to saying this issue is INVALID, because doing an Enable on the window (instead of it's model) is not the way to do things - changes to the control have alway to be done via the model, as the model-view-relationship is one-way: Views update themself from changes in the model, but not the other way 'round. This is just a quick shot currently, did not yet look into the sample document supplied by Oliver. (changing component/QA contact to DBA) s/darly/darkly/ Hi, I would like to add that the oWindow.Enable is taken from the Tools Library ... Sub ToggleWindow(bDoEnable as Boolean) Dim oWindow as Object oWindow = StarDesktop.CurrentFrame.ComponentWindow oWindow.Enable = bDoEnable End Sub AFAIK the sub is used from some official templates ... To start the demo Formtest 00.sxc, please make a selection from the combobox on the sheet ... best regards Oliver I remember that I already discussed this long ago with Malte, and the conclusion was that we have a conceptual problem there with our toolkit. I change the target milestione to OOo 2.0, because I am not remotely clear about how we could fix this, but it would most probably require massive changes. Hi, I think I found a temporary bugfix that seems to work at the moment, even if some parts of the sheet are fixed/frozen ... oWindow = StarDesktop.CurrentFrame.ComponentWindow oWindow.Enable = False ' disable the window [do something] oView = StarDesktop.CurrentFrame.Controller oData = oView.getViewData() ' first save the view data ... oWindow.Enable = True ' than enable the window again ... oView.restoreViewData(oData) ' after restoring the view data, the formelements ' are displayed correct ... ' make the window invalide, this seems to be necessary if ' you used a StatusIndicator in the [do something] block, ' otherwise the StatusIndicator will be displayed even ' after it has been stopped ... oWindow.invalidate(com.sun.star.awt.InvalidateStyle.CHILDREN) best regards Oliver "According to the OpenOffice.org roadmap (http://tools.openoffice.org/releases) this issue was retargeted to OOo Later." accepting change subcomponent to 'none' Hi, it seems this issue has been fixed in oo 2.0 ... (try the attachment) at least i can not verify it with oo 2.0.2. rc but it's still in so 7.0 pu 6 ... cause i do not think one will fix it for so 7.0, it should be closed ... :-) Oliver as mentioned above this issue has been fixed - please close it Reset assigne to the default "issues@openoffice.apache.org". |