Hi Max,
Maximilian Odendahl wrote:
Hi,
I would like to get the right border of the current page, which I am
currently getting with mpWrtShell->GetAnyCurRect(RECT_FRM).Right()
This does not work of course if I am not in the body, but inside a
frame, table etc. Is there a different function call to get the value
I am looking for or must this be done manually?
If you use RECT_PAGE instead of RECT_FRM, you will get the rectangle of
the current page.
If it has to be done manually, I was wondering if pLower of SwPageFrm
is always a SwHeaderFrm or SwBodyFrm, or could it be also a floating
frame which is placed in the top left corner?
No, a floating frame will not be a lower of a SwPageFrm. Only
SwHeaderFrm and SwBodyFrm are possible lowers of SwPageFrm..
Best regards
Max
Regards
Andreas
--
Andreas Martens (ama) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]