Alexander Peters wrote: > Hello! I�ve got a problem to get the frame of a document. I have an > oleobject with a reference to an document. when i try to get the > frame of the document (to execute a macro with a dispatcher) the call > role_oDocument.getCurrentController().getFrame() returns Null. Can a > document lost the frame?
No, a Controller can't exist without a frame, so OOo never will detach a Controller from its frame without destroying it. But it's possible to have a document without a controller (non-active OLE objects are a good candidate for this). So I see two possible explanations: either you don't have even a controller or you have a Controller that is disposed already, but somebody kept a reference to it (bug!) and this "dead" object of course can "exist" without a frame. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
