On 09/07/07 19:01, Maximilian Odendahl wrote:
Hi Andreas,

What about RECT_PAGE_PRT? This should deliver the "inner" rectangle of the page.

not sure exactly what this is supposed to return, but the right border of this rect is in the middle of a page.

the printing area rectangle is relative to the frame rectangle, so what you are looking for is

const SwRect aPageFrm( GetAnyCurRect( RECT_PAGE ) );
const SwRect aPagePrt( GetAnyCurRect( RECT_PAGE_PRT ) );
SwRect aWhatIWant( aPagePrt );
aWhatIWant.Pos() += aPageFrm.Pos();

Hope this helps,

Frank

--
Frank Meies (fme) - 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]

Reply via email to