Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | service com.sun.star.drawing.Layer: boolean propeties are not working | ||
---|---|---|---|
Product: | App Dev | Reporter: | paolomantovani <p_manto> |
Component: | api | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues, marcelly.bernard |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
paolomantovani
2009-01-11 23:50:47 UTC
"changing the property from the UI does not reflects at API level" It is reflected if the macro is started from the document window, but not from the IDE. "changing property values via API does not reflect in the user interface" This bug only affects the predefined layers. I found a work-around: Dim aLayer As Object aLayer = ThisComponent.LayerManager.getByName("layout") aLayer.IsVisible = False ThisComponent.CurrentController.IsMasterPageMode = False The tab of the hidden layer does not change its color. Another bug... jsc - > sj; i am not 100% sure if it's yours or not. Please redirect if necessary Hi Bernard, Thank you very much for the workaround! :-) >> changing the property from the UI does not reflects at API level > It is reflected if the macro is started from the document window, > but not from the IDE. Confirmed! >> changing property values via API does not reflect in the user interface > This bug only affects the predefined layers. Not in my case (ooo3.0 "vanilla" on Ubuntu 8.10) I've created a new layer "Livello4" and tested this macro: oLayer = ThisComponent.LayerManager.getByName("Livello4") oLayer.IsVisible = Not oLayer.IsVisible As you noticed about the other problem, it does not work from the IDE but it does from the document window In substance, layer properties are correctly read and written only if the macro is launched form the document window. > The tab of the hidden layer does not change its color. Another bug... Confirmed Thanks again sj->cl: can you please take over. The reason for the current behavior is that the layer settings are not document settings but view settings. The reasoning for this feature is that if you design your space shuttle in draw you can open two views on the same document that show different sets of visible layers. But all in all this feature does not work well for the user (and confuses the api developers :-) Either we have to fix the api to access different view layer settings or rework the layer management completely. I prefer the later. I'm keeping this issue as a reminder to look at when we start working on this area Reset assigne to the default "issues@openoffice.apache.org". |