Karsten Heimrich
4b7da592ee
* first steps towards a new printer api...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-10 23:26:38 +00:00
Karsten Heimrich
0ca6b749f4
* merge parts of libprint and libprintutils to make both indepentend
...
* adjust all drivers to take that into account
* fix UpdateText() signature in JSDSlider to avoid warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-26 22:36:01 +00:00
Karsten Heimrich
12fd6cc2e7
* move libprint sources into libs, as it is a 3rdparty lib
...
* move libprint headers into libs headers folder accordingly
* merge all shared folders sources into kits print, we might build later on a
real print kit, propably also to access cups from an nicely API, atm static
* move all shared headers into private print, also pr_server.h from interface
* adjust build to work with the changed folder layout
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-22 20:30:14 +00:00
Karsten Heimrich
a80e05e225
* fixes for ticket #2378
...
* adjust ui code to be more font sensitive
* add/ rename some of the utils message manipulation functions
* use ReadAttrString instead of ReadAttr to get the printer name
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-13 11:11:43 +00:00
Karsten Heimrich
4db0488ead
* reordered MarinView.h, MarginView.cpp
...
* rename private functions to use underscore
* rename some public functions to match the usual style
* adjust pdf/ preview driver to use the renamed functions
* we where leaking a single message in _ConstructGui, otherwise no functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-12 21:09:49 +00:00
Michael Pfeiffer
80339607f9
Get first and last page from job settings instead of print_file_header. In print_filer_header first_page is an offset into the spool file (the field is unused or reserved on BeOS R5 and is always -1) and page_count is the number of pages in the spool file. In the job settings first/last page is the page number of the first/last page as specified in the page setup dialog.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-23 18:01:13 +00:00
Karsten Heimrich
e1656f01ae
* build fix, removed leftover debug var...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-23 16:17:52 +00:00
Karsten Heimrich
96d23158ea
* some small cleanup
...
* fFirstPage should be of type off_t
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-23 16:01:03 +00:00
Ithamar R. Adema
eb5a25ca41
Slight rework of my previous commit... now ports can be asked too ;)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-08 02:00:08 +00:00
Ithamar R. Adema
62cb58a8ef
Make print_server track Transport addons too. This is because some of the NewTransportAddOns(tm) can also autodetect devices, e.g. USB printers. For this, the print_server needs to keep those transport addons loaded at all times. This code now also enables dynamic Transport discovery for the Printer prefs, e.g. 'hey print_server GET Transport 0' or 'hey print_server GET Transport 'USB Port'' will now work too ;)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-08 00:34:53 +00:00
Axel Dörfler
f6e4cbb952
* Rewrote BeBuild.h which had "a few" consequences (got rid of all those class
...
definitions).
* Minor cleanup here and there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-15 20:13:55 +00:00
Jérôme Duval
5c937cfa82
missing comment tokens
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 21:30:00 +00:00
Michael Pfeiffer
a637368987
Clean up.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-20 19:55:22 +00:00
Michael Pfeiffer
e4ee835fc2
Fixed bug #1231 . Update text rectangle when view is resized.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-20 19:48:33 +00:00
Jérôme Duval
34bd8bf599
cleanup, fixed some warnings
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-13 17:47:23 +00:00
Michael Pfeiffer
fcccd8b759
Some printing related improvements:
...
* libprint based drivers can now show a preview window and show progress
window while printing contributed in part by Hartmut Reh.
* Libprint and PCL6 driver bug fixes.
* Code clean-up (removed code duplications, coding style, copyright text)
Builds under Linux. Not tested under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-20 15:52:37 +00:00
Oliver Tappe
6b376d6055
* fixed all compilation issues of printkit-stuff with gcc4 on Linux
...
* removed leagcy _sstream-header, we now use sstream, as both compilers provide it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-23 22:57:37 +00:00
Jérôme Duval
d03f6d5c29
some more gcc4 fixes for print addons
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-23 22:39:57 +00:00
Michael Pfeiffer
4a6c604ad4
Clean up.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-14 19:08:35 +00:00
Michael Pfeiffer
68ca240b53
Added missing comment.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-09 17:09:08 +00:00
Michael Pfeiffer
acc60ee067
Added function pack_bits_size.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-21 17:30:21 +00:00
Michael Pfeiffer
8c0bf01979
Added Add Printer dialog.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-06 18:22:40 +00:00
Michael Pfeiffer
fdb0d9ef11
Added ability to set a page margin (re-uses MarginView from PDF writer).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-22 14:26:52 +00:00
Michael Pfeiffer
f04964923d
Added function ScaleRect().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-17 16:51:17 +00:00
Michael Pfeiffer
af6520e96c
Implemented Page Selection.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-16 16:12:41 +00:00
Michael Pfeiffer
a4d61ba325
import/export function instantiate_printer_driver
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-09 17:45:26 +00:00
Michael Pfeiffer
1c921c1e06
Added class PagesView for visualization of the options Reverse and Collate.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-09 17:39:30 +00:00
Michael Pfeiffer
2b7e5e87bd
Added scaling ability to libprint.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-09 17:37:46 +00:00
Michael Pfeiffer
fe970f9d5d
Added method GetScale
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-07 17:07:41 +00:00
Michael Pfeiffer
76145367cb
Resolved race condition in methode Go of dialog windows.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 19:05:01 +00:00
Michael Pfeiffer
f0307bad5c
Added class JSDSlider by Dr.H.Reh.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 18:57:49 +00:00
Michael Pfeiffer
4babd17d12
Changed return type to 'void' of function with unused return value.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 10:30:57 +00:00
Nathan Whitehorn
b502b561b4
Fixed spelling of instantiate_transport
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-22 22:35:59 +00:00
Michael Pfeiffer
2c973bd1fc
Implemented copy number of pages for printers that do not support page copy command. Check if PrintToFile dialog was canceled and return without an error.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-27 07:08:38 +00:00
Michael Pfeiffer
329e4f9a7b
Allow selection of ink density
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-14 00:00:18 +00:00
Michael Pfeiffer
7f5627dae3
Allow selection of halftone method and ink density
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-13 23:56:14 +00:00
Michael Pfeiffer
7566478beb
Added InkDensity and DitherType; distinguish between page and job settings
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-13 23:54:17 +00:00
Michael Pfeiffer
ef68644905
Shows a halftone preview.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-13 23:53:45 +00:00
Michael Pfeiffer
370f27ad77
Simplified creation of a libprint printer driver.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-13 23:45:40 +00:00
Michael Pfeiffer
730329f797
Unified handling of color and monochrome dithering.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-31 08:54:26 +00:00
Michael Pfeiffer
2f6e49a929
Implemented Floyd Steinberg dithering and made it default.
...
Renamed many constants and fields according to Open BeOS coding style guide.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-30 17:10:36 +00:00
Michael Pfeiffer
7ea239b20d
Implemented Floyd Steinberg dithering and made it default.
...
Renamed many constants and fields according to Open BeOS coding style guide.
Removed unused code that handles color spaces other than B_RGB32.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-30 17:09:32 +00:00
Michael Pfeiffer
aa36fbce3a
Extended to dither each RGB channel separately.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 18:47:58 +00:00
Michael Pfeiffer
6df73d220c
Added copyright text.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 21:23:40 +00:00
Michael Pfeiffer
9198afa23d
Various changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 21:22:16 +00:00
Michael Pfeiffer
393fb10d6e
Added class PrintTransport to simplify the usage of a print transport add-on.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 21:19:16 +00:00
Michael Pfeiffer
074162477e
Fixed typo.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-01 19:37:54 +00:00
Philippe Houdoin
759b9e0561
TransportAddOn.h -> PrintTransportAddOn.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-30 23:26:59 +00:00
Philippe Houdoin
73a06d9625
Renaming TransportAddOn.[cpp|h] into PrintTransportAddOn.[cpp|h] as "Transport" is
...
not enough explicit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-30 22:51:42 +00:00
Michael Pfeiffer
576474a613
Added arguments to function AddFields.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-30 20:34:18 +00:00