History log of /haiku/src/add-ons/print/drivers/pcl6/PCL6.cpp
Revision Date Author Comments
# 9c8f4ac5 07-Aug-2023 PulkoMandy <pulkomandy@pulkomandy.tk>

Remove usage of some deprecated C++ features

Change-Id: I8faff44ca5fbce9b56ce135ebd070be6bd4c1c78
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6799
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# fdc8b001 24-Jun-2023 Niels Sascha Reedijk <niels.reedijk@gmail.com>

print addons: remove invalid use of auto_ptr

GCC 13 warns that the use of auto_ptr on an array can lead to undefined
behavior, because auto_ptr will use `delete` instead of `delete[]`.

Replaced the use with `std::vector` instead. Since the `data()` member was only
introduced in C++11, the solution uses the [] operator instead to get the
address of the beginning of the array.

Change-Id: Ib457580eedb03338a454fb96b27602c3830c1634
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6644
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 4410ee12 08-Dec-2010 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Code style changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39770 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fefd3ba5 08-Dec-2010 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Code style changed in class GraphicsDriver and and
child classes
* Removed namespace handling for Metrowerks compiler
* Initialize all fields in constructor


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39765 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 568716be 03-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Style cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9e62886 23-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed every (hopefully) CID cases of delete where delete[] should have been used. CID 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 144, 147, 148, 149, 150

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb856078 08-Aug-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Bug #1092 (PCL6: Second page upside down in duplex mode) fixed by Dr.
Hartmut Reh.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fcccd8b7 20-Jan-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

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


# ee47c060 09-Feb-2006 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set protocol class in PCL6 header correctly (untested; hopefully this does not break anything).
Rewrote description of protocol classes.
Set 300 DPI as default resolution.
Uncommented protocol class 3.0 as driver does not support any new features of it.
Removed second enumeration ProtocolClass from PCL6Cap.h; it is already declared in PCL6Writer.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fc71589 21-Feb-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented RLE compression


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11441 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e86189f 06-Feb-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added color dithering to reduce the size of data to be sent to printer by about 800 percent.
Added Add Printer dialog that allows the selection of the protocol class.
Made some features dependent on the chosen protocol class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11275 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1a3ccb8 15-Jan-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Replaced jetlib.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcab4343 10-Jan-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented delta row compression. Added media sources. Enabled duplex mode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10663 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 82f24520 15-Sep-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added (untested) support for landscape orientation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8978 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b6882f1 13-Feb-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added ink density and dither type to halftone constructor


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2c03b1b 30-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Renamed many constants and fields according to Open BeOS coding style guide.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6434 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91c89ca3 27-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added color support (untested)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6380 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8fb205f2 25-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Bug fixes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2849 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0d17a8c 19-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Forgot @ infront of PJL ENTER LANGUAGE.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2762 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bfe34e2 19-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented PCL6 printer driver (untested, monochrome only).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2758 a95241bf-73f2-0310-859d-f6bbb57e9c96


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 4410ee1269f6a039e1c1060feb105ce40c8152dc 08-Dec-2010 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Code style changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39770 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fefd3ba5885b7bd927593157150d1d8ccaefdd20 08-Dec-2010 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Code style changed in class GraphicsDriver and and
child classes
* Removed namespace handling for Metrowerks compiler
* Initialize all fields in constructor


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39765 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 568716bed76d9711e95cd1604313be2f142505c0 03-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Style cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9e6288649ba36ff887f52fb62d4cd557fa9ef34 23-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed every (hopefully) CID cases of delete where delete[] should have been used. CID 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 144, 147, 148, 149, 150

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb85607872eb1e758c692ed730974cf0b315be8a 08-Aug-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Bug #1092 (PCL6: Second page upside down in duplex mode) fixed by Dr.
Hartmut Reh.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fcccd8b7592fb8c4a853129e9e986ecc03cbdb01 20-Jan-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

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


# ee47c0603344cb127b7c0971dac774abe6f2d146 09-Feb-2006 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set protocol class in PCL6 header correctly (untested; hopefully this does not break anything).
Rewrote description of protocol classes.
Set 300 DPI as default resolution.
Uncommented protocol class 3.0 as driver does not support any new features of it.
Removed second enumeration ProtocolClass from PCL6Cap.h; it is already declared in PCL6Writer.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16318 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fc71589cfb2ddfeed997db7083b843f38f37a12 21-Feb-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented RLE compression


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11441 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e86189f505d8758a28f170d1952d19b0662899c 06-Feb-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added color dithering to reduce the size of data to be sent to printer by about 800 percent.
Added Add Printer dialog that allows the selection of the protocol class.
Made some features dependent on the chosen protocol class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11275 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1a3ccb885f301f5d6209c72da0df1122cd1880b 15-Jan-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Replaced jetlib.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcab43435a6fd69b40eef4de8c2bf48152550ac2 10-Jan-2005 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented delta row compression. Added media sources. Enabled duplex mode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10663 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 82f24520e11d36b3e7c3898f356c8d03a4a6041c 15-Sep-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added (untested) support for landscape orientation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8978 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b6882f17c4f6b1d5d0f8ec490ba535ab013bf39 13-Feb-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added ink density and dither type to halftone constructor


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2c03b1becfffdc387807bfc52b475b71c83558c 30-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Renamed many constants and fields according to Open BeOS coding style guide.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6434 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91c89ca37a55d29fb82b00457e10682b1e9483c2 27-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added color support (untested)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6380 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8fb205f2b6b2a51eed139a743fb8990f78f82dd2 25-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Bug fixes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2849 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0d17a8c82f38396d04bd06170bc9ece8552d0b8 19-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Forgot @ infront of PJL ENTER LANGUAGE.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2762 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3bfe34e2b17f527c54573be7826353ea0a2147b0 19-Feb-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Implemented PCL6 printer driver (untested, monochrome only).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2758 a95241bf-73f2-0310-859d-f6bbb57e9c96