Hi ingo,
That is taken care with the the tdu() method. "ToDeviceUnits" so it's
UT_sint32 hlu = XAP_APP::getApp()->getLastFocussedFrame().>
getCurrentView()->GetWindowHeight()
UT_sint32 pixelH= XAP_APP::getApp()->getLastFocussedFrame().>
getCurrentView()->getGraphics()->tdu(hlu);
You might want to store a pointer or two in your code.
Cheers
Martin
On Fri, Jul 2, 2010 at 1:53 AM, Ingo Brueckl <ib@wupperonline.de> wrote:
>
> On Wed, 30 Jun 2010 16:53:56 -0400, Dominic Lachowicz wrote:
>
>> A lot of other plugins do this. Get the focused frame, and then get its
>> view.
>
> Thanks, that was the clue I needed, but now I see that I get the size of the
> AbiWord window. I'd need the size (i.e. resolution) of the screen. Is that
> possible with AbiWord classes?
>
Received on Fri Jul 2 01:17:30 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 02 2010 - 01:17:30 CEST