Hi Andrew, > First - isQueryDesigner will recoginize the QueryDesign window If and ONLY > if it is sitting directly on top of the BaseDocument window. Is there some > other, better, way to get a reference to this windows controller object? Now > before you say - Well of course, you test for the databasedocument first - > but I have not figured out how to get to the QueryDeisn window startig with > stardesktop object - I must be missing something simple here.
The query designer is not part of the desktop by design. (Well, in real, we miss an MDI feature here in OOo's framework. The fact that we open top-level frames which are known to the database document window only, and not to the StarDesktop instance, is a poor substitute for MDI.) So, you don't miss anything here :) Unfortunately ... you cannot enumerate or otherwise obtain the "sub" frames of a database document window. Care to visit IZ? Should be relatively easy to implement, so I'd put this on 2.x then. > Second - The ActiveCommand property of the seems to return the command > string at the time the query was last saved - not reflecting any changes > made during the current editing session. A new query that has not been saved > yet returns an empty string for example. That's by design, too. This property was originally introduced for raising the query designer from within the property browser, where "life updates" are not necessary. Out of my head, I'm not even sure it is documented ;). Also, it would be hard to properly reflect the current statement all the time, especially in the phases where the current UI/text describes an invalid statement (or none at all). So, depending on what you want to do, you probably need to trigger a save beforehand. Or, convince me that a life-update property is useful :) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
