Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 0115852f109f25c54fc4688f23760855 > files > 320

lesstif-devel-0.95.2-2.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<!-- $Id: printing.html,v 1.7 2004/09/28 04:04:34 dannybackx Exp $ -->

<!-- BEGINNING of header -->
<HEAD>
<TITLE>LessTif Printing API's</TITLE>
<META NAME="AUTHOR" CONTENT="LessTif Core Team">
<META NAME="DESCRIPTION" CONTENT="LessTif Printing API's">
</HEAD>

<BODY BGCOLOR="#ffffff" TEXT="#000000">

<H1 ALIGN=CENTER>Printing API</H1>
The X Window System has a printing mechanism which is unfortunately not
in very wide use.
A reason for this could be the fact that the documentation for this
mechanism refers to a widget set which was less available than its
documentation.
<P>
The LessTif core team has started to implement two modules which,
together, offer full printing functionality :
<b>XmPrint</b> and <b>DtPrint</b>.
<P>
These API's are demonstrated by the new printing functionality in
<A HREF="http://sunsite.auc.dk/xinvest/">Xinvest</A>.
Note several constraints however :
<UL>
<LI> unreleased version of Xinvest from
	<A HREF="http://sunsite.dk/xinvest/#CVS">its CVS</A>
<LI> requires a bug-free version of Xprt, see below.
<LI> Xprt needs to be configured right for this to work.
     This is documented <A HREF="XprtConfig.html">here</A>.
</UL>
<P>

<H2>What are XmPrint and DtPrint ?</H2>
XmPrint is our abbreviation for a module in Motif that implements support for
the X Printing Mechanism.
DtPrint is our abbreviation for a similar modules in CDE.
<P>
LessTif now contains simple implementations of both,
which makes it possible to write applications that use this
standardised and (fairly) high level mechanism
to print in a device independent manner.
<P>
As our experience in getting Xinvest to use this technology showed,
all is not always as simple as it seems.
In retroscpect, the changes that need to be made to an application to
get it to print are relatively minor.
Their complexity grows as the application is more graphics intensive,
but even for Xinvest (which <b>is</b> graphics intensive)
the changes were not hard to implement.

<H2>How to Xp, XmPrint, and DtPrint cooperate ?</H2>
<P>
An overview by the X Consortium on how these cooperate is in their
distributions in file
<PRE>
  xc/programs/Xserver/XpConfig/README
</PRE>
We have provided a copy of the X11R6.6 version
<A HREF="XpREADME.html">here</A>.

<H2>Which version of Xprt is known to work ?</H2>
Under construction
<P>
Roland Mainz has gotten Mozilla to work with Xprt.
Under his impulse, the Xprt server has also improved.
This is now part of the X.org tree and will be in X11r6.7.1 .
You can find his work at
<A HREF="http://xprint.mozdev.org">http://xprint.mozdev.org</A>.
<P>
The X.org release X11r6.8 also contains working Xprt.
<H2>Xprt configuration</H2>
Under construction in file <A HREF="XprtConfig.html">here</A>.

</BODY>
</HTML>