print in editor<%>
( -> void
send an-editor print interactive? fit-on-page? output-mode parent)
interactive? = : boolean
#t
fit-on-page? = : boolean
#t
output-mode = : symbol in 'standard'(standard postscript)
parent = : #fframe% or dialog% object or #f
If interactive? is true and a PostScript file is created,
the is given a dialog for adjusting printing
parameters; see also
get-ps-setup-from-user. Otherwise, if a PostScript file is created, the settings returned by
current-ps-setup are used. (The user may still get a dialog to select an output file
name; see
post-script-dc% for more details.
If fit-on-page? is a true value, then during printing for a
text% editor, the editor's maximum width is set to the
width of the page (less margins) and the autowrapping bitmap is
removed.
The output-mode setting is used for Windows and
Mac OS. It determines whether the output is generated
directly as a PostScript file (using MrEd's built-in PostScript
system) or generated using the platform-specific standard printing
mechanism. The possible values as
'standard -- print using the platform-standard mechanism
(via a printer-dc%)
'postscript -- print to a PostScript file (via
a post-script-dc%)
If parent is not #f, it is used as the parent window for
configuration dialogs (for either PostScript or platform-standard
printing). If parent is #f and if the editor is
displayed in a single canvas, then the canvas's top-level frame is
used as the parent for configuration dialogs. Otherwise,
configuration dialogs will have no parent.
The printing margins are determined by
get-editor-margin in the current ps-setup% object (as determined
by current-ps-setup).
For properly spaced text in PostScript output, make sure that the AFM
directory is correct in
set-afm-path.