$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Alan Gutierrez (alan-boost_at_[hidden])
Date: 2004-12-23 12:11:08
* David Abrahams <dave_at_[hidden]> [2004-12-22 15:13]:
> Reece Dunn wrote:
>
> >> If I were to go to the trouble to create an GUI that rendered
> >> diagrams, I'd probably to to the touble to print those diagrams.
> >>
> >> I'd like to use the same algorithm to render to the screen and
> >> to the printer, simply swap out the device context.
> >
> > The Microsoft MFC library takes this approach and, IMHO, it is the best
> > way to go.
>
> That's okay for simple things, but for any serious printing work you
> need to know you're talking to a printer. For example, you may need to
> embed postscript in your output stream.
I'd like to look at how OS X is able to make a PDF of everything.
Observing that capability lead me to believe that you could
simply swap out the underlying device.
Is this still a way to go, using the same algorithm, but adding
an object to represent the context, screen, printer, etc.?
-- Alan Gutierrez - alan_at_[hidden]