Carsten Driesner wrote:

> Daniel Käfer wrote:
>> Hello,
>> 
>> I try to open a document hidden. Sometimes it works, the other time the 
>> documents open visible.
>> 
>> My source code is:
>> 
>> [code]
>> this.xComponent = xComponentLoader.loadComponentFromURL(
>>            filename, // File folder and name
>>            "_default", // Open in existing blank frame...
>>            FrameSearchFlag.CREATE, // ... if none found, create one.
>>            this.documentProperties);    // Special document properties
>> [/code]
>> 
>> The Property 'Hidden' is alaway true (java.lang.Boolean).
>> 
>> If I replace '_default' with '_blank', it work perfect. Is this a bug or 
>> a feature?
> Hi Daniel,
> 
> Could you please tell me more about the context where your code runs. 
> Especially when you can see that it doesn't work. Currently it looks 
> like a bug, but without more information this is hard to confirm. I 
> would like to debug your scenario, but therefore I need more information.

IIRC it is by intent to ignore the "hidden" property for the "_default"
target as there are situations where it doesn't work or creates
surprising effects (like letting the current document window vanish
without a "poof" ;-)). Using "_default" puts the document window under
user control - this is not in line with the idea of a hidden window.

Perhaps we should document that.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to