Re: Gnome2::Print
- From: Emmanuele Bassi <bassi-e libero it>
- To: gtk-perl-list gnome org
- Subject: Re: Gnome2::Print
- Date: Fri, 28 Nov 2003 18:02:03 +0100
* Cornel Ghiban <green neomedia ro>:
I didn't find any info(API docs) about printing in Gnome.
They are going to be added for the next release.
I tried the small demo in the manual but it didn't happend anything till I added
$job->print;
The code dsiplayed inside the manual is just a "snapshot" of some
plausible code: it should not be considered somewhat "usable", apart
from gaining some clue about how to access some methods/data.
That is why there's the "examples/" directory, which contains a pair of
examples (weird, uh? :-)); the first one (test-print.pl) is pretty much
a simple printing application, that shows ho to call the print dialog,
the preview dialog, and how to operate with the concepts of jobs and
contexts. The second example (basic-font.pl) shows how to use fonts.
I'm planning to port from C to perl the examples that can be found
inside the libraries tarball, but most of those are so simple that are
of no use when building some complex application.
A source of working code could be the "GtkSourceView" project.
GtkSourceView uses libgnomeprint to generate print contexts and print
jobs of the displayed code; it's useful especially in order to know how
to break lines from a textview in order to respect the margin of the
page, instead of the widget's one. Unfortunately, GtkSourceView is
written in C.
A link from the Gnome documentation site is wellcome.
I find the lack of documentation disturbing. Even the usual API is
missing. You should file a bugreport in GNOME BTS for that.
Regards,
Emmanuele.
--
Emmanuele Bassi (Zefram) [ http://digilander.libero.it/ebassi/blog ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]