Hi there,

just a pointer, having gone through the Javadocs over the weekend: if
creating an instance of javax.swing.JFrame and pack it, one can use the
getInsets() method to retrieve an Inset object which has the
members/fields left, top, right, bottom, giving the respecitve insets.

Now if you want to adjust the OOo document's XFrame's containerWindow
posSize to include the Window decoration (borders and title bar), you
would have to do something like:

    posSize~x      -= insets~left
    posSize~Y      -= insets~top
    posSize~width  += insets~left + insets~right
    posSize~height += insets~top  + insets~bottom

HTH,

---rony


On 04.03.2010 02:38, Ariel Constenla-Haile wrote:
> Hello Rony,
>
> On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote:
>   
>>     
>>> You could file a RFE to enhance the com.sun.star.awt.XTopWindow (haha now
>>> I see someone [fs in dba33a?] added a com.sun.star.awt.XTopWindow2).
>>>       
>> But that one seems not to be available (it cannot be interrogated via
>> reflection).
>>     
> I founded it in a Dev. snapshot
> cf. 
> http://svn.services.openoffice.org/opengrok/xref/DEV300_m73/offapi/com/sun/star/awt/XTopWindow2.idl
> you can get the Dev. version of OOo and its respective SDK from any mirror, 
> for example
> ftp://mirror.switch.ch/mirror/OpenOffice/extended/developer/DEV300_m73
>
> Anyway this new interface does not help you with this current problem.
>
> Regards
>   

Reply via email to