Hi Ariel, > Concerning the DSB, now in > > http://www.ArielConstenlaHaile.com.ar/ooo/temp/FRAME_CONTROL.odt > > there are three versions > > DataSourceBrowser_1 > DataSourceBrowser_2 > DataSourceBrowser_3 > > they are ordered by "age" > > 1. create window, frame; use dispatch > 2. create window, frame; use XComponentLoader::loadComponentFromURL() > 3. simply use the FrameControl > > I'd like to hear your suggestions: which one do I include? the more > modern, simpler, FrameControl?
Definitely *not* the dispatch thingie, as said elsewhere, dispatches are somewhat outdated for loading components. The FrameControl is completely new to me, I didn't know such a thing exists. If it's more modern, use it ;) > I will also try to get rid of the ghost base control by finding my own > LogicToPixel algorithm FYI: A member of our team, Lars Langhans, who currently re-works the report wizard to create SRB-compatible reports, needed LogicToPixel/PixelToLogic functionality (in UNO) for this purpose. We thought the fast way to get the UNO API for this was to implement it ourselves, so we Just Did It. So, chances are you get something like this in 3.0. > [Extra Toolkit explanation for those not familiar: the FrameControl > -strangely not in the awt module, but in the frame- is one of those that > can not be instantiated by the UnoControlDialogModel's > XMultiServiceFactory, set its model's properties (Height and Width in > MAP), and insert it in the model's container; in fact, it has no model, > it has to be created by the global service manager and added to the > XControlContainer of the dialog (NOT the dialog model's XNameContainer), > and the position and size must be set in pixels, not MAP, using the > control's XWindow::setPosSize() ] Somewhat strange, especially the inconsistency with respect to the non/existing model. But that might be only me - if it works, fine :) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
