On 14.02.2005, at 23:05, Alexej Kryukov wrote:

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).


That does not help very much, as I work with java swing and not OOo API. In your center method you use a Object oParentPeer which I could not find anywhere else (I did not wanted to search every source file) and I think I need it to get the coordinates of the OOo window...?


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.

That sounds difficult for me. Is there nowhere an overview for that fileprefix on other platforms? At first it would be enough for me to get to know what this fileprefix would be for windows.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to