In article <[EMAIL PROTECTED]>,
Boris Zbarsky  <[EMAIL PROTECTED]> wrote:
>Your proposed solution sounds good as long as it doesn't break XPrint
>or XPrint can be adjusted to it.

That's the thing. I haven't looked into the xprint code, but from the
commentary in bug 130075 and the way this third set of margins was
implemented, I gather the intent was to deprecate the printable region
margins settable through File->Print->Properties. Instead, the printing
module (xprint or PS) would silently impose a printable-region margin on
layout, by the mechanism of pretending the page is smaller than it
really is.

This model works very well for xprint, because xprint has access to real
data about the printer in question. For PS, which doesn't really know
anything about the printer being targetted, the older model worked
better, if only because it provided a UI for the user to control the
printable region.

But the real problem is that these two models are both in effect and are
additive. The printing module reports a page size to layout which
doesn't include the non-printable portion of the paper. Layout then uses
the printer properties margins to position the header/footer, and the
page setup margin for the content, within this shrunken region. This is
certainly what PS does; Xprint may do something more sophisticated.

Under this model, the printable-region margin set in the printer
properties dialog becomes almost useless; short of removing the feature
entirely, this margin would normally be set to zero or a very small value.
But as I mentioned in my last post, for PS the best approach is to remove
the hardcoded margin and rely on the margin set in printer properties. But
that leads us back to bug 130075, where the defaults are too small and
should be raised to about 0.25in. This value is viewed as unsuitable
for Xprint; see bug 130075 comment 12.
-- 
Kenneth Herron
"Netscape pollution must be eradicated."
    -- Jeff Raikes, Vice president, Microsoft
_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to