ever wanted to print on Linux with PB?
Here is a solution until 4.00 is ready (hope, there will be printer support)... Anyway
I've written a small text-app (nothing special) just to show, how to print on Linux.
The demo-application:

(you can load/save textfiles, cut/copy/paste but no undo yet)
The printing dialog:

Files to print MUST be previous saved (for the moment you can't print unsaved text); settings are NOT saved yet
There are a few things to do before you can start.
Install (if not already) the packages evince (for preview) and enscript (for textoutput) using your favorite package manager
Download this: http://home.arcor.de/x-linux/pure/TeEDx_source.tar.gz
(which contains the source and a precompiled exe)
or this:
http://home.arcor.de/x-linux/pure/TeEDx
(which is the executable only)
And finally here is an includefile for your own projects:
http://home.arcor.de/x-linux/pure/printing.pbi
Include this in your project, do a
Code: Select all
gtk_init_(0,0)
To call the printing dialog simply do a
Code: Select all
pd=create_window_print()
gtk_widgets_show_all_(pd)
http://home.arcor.de/x-linux/pure/missing_functions.pb
It's a simple version for now (even without language support) so I appologize for the labels in german... translation follows
Btw.: the application and the dialogs are created with Glade2PB..

The source is free for everyone. Feel free to modify and use in your own projects (may you mention me in the credits.. but this isn't a must)
Feedback, questions and comments are appreciated...