On Monday 14 February 2005 16:36, Ines Pfauch wrote: > > First: > Is there an easy way to get the coordinates of the OOo window at the > screen via the API? > I want to place my java addon window, which can be started from > within the OOo window, central of - or at least dependend on - the > OOo window.
In fact, centering a window is a very common task for OOo addons. If you want to see how to implement this functionality in Java, you may have a look e. g. at my OfficeFMT package (download the package with source code from http://officefmt.iqchoice.com and see the file called DialogAccess.java). > When opening a document with OOo, the URL for loadComponentFromURL > starts with "file://". Is there a difference between different > operating systems for this fileprefix? Yes, since URL means "*Unified* resource locator" :) But, if in doubt, you can get a system path first and then convert it to URL using the com.sun.star.ucb.FileContentProvider service. Again, there is an example of using this service in the OfficeFMT package, the CommonItemsProvider.java file. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
