History log of /haiku/src/add-ons/print/drivers/postscript/PS.cpp
Revision Date Author Comments
# 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


# af56de5b 02-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Style cleanup.

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


# f7b0c08c 11-Apr-2010 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

This modifies the Postscript printer to be able to insert a pipe in between the Postscript generation
and the transport addon. The actual command use as pipe is retrieved from the PPD that can be selected
at printer creation time.

Currently PPD selection is not shown (as the PPD directory is not available) and therefore the pipe
will not be inserted.

This still needs a bit of TLC, so hope to commit the last changes to fully support this later this week.



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


# a2691840 04-Jul-2009 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Rotate page contents in landscape mode.


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


# 05ab7b5c 10-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set the page origin to the left/top point of the printable rectangle (was page rectangle).


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


# 373fe202 01-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Fixed scaling problem.


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


# 90c9b3ae 01-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Fixed scaling problem.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9156 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


# 60337ce1 01-Jul-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added more meta data to PS stream.


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


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

Implemented dumb PostScript printer driver (monochrome and color).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2759 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


# af56de5bb1e034f1cd753d54d4ce894bd6556e29 02-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Style cleanup.

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


# f7b0c08caed76819599e50c30f1f48b13fbb9cf6 11-Apr-2010 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

This modifies the Postscript printer to be able to insert a pipe in between the Postscript generation
and the transport addon. The actual command use as pipe is retrieved from the PPD that can be selected
at printer creation time.

Currently PPD selection is not shown (as the PPD directory is not available) and therefore the pipe
will not be inserted.

This still needs a bit of TLC, so hope to commit the last changes to fully support this later this week.



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


# a2691840033027c58541fa8461f51ba1cb8e34ae 04-Jul-2009 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Rotate page contents in landscape mode.


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


# 05ab7b5c32fa3c3556d7747cdedb3eec95971a25 10-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set the page origin to the left/top point of the printable rectangle (was page rectangle).


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


# 373fe20212ec32addd98a5102866e892ae57eaff 01-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Fixed scaling problem.


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


# 90c9b3ae9a089fc1093dc93df84f343387f9e2de 01-Oct-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Fixed scaling problem.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9156 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


# 60337ce111ec9d63e4d15317e06d8b5a999b1749 01-Jul-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added more meta data to PS stream.


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


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

Implemented dumb PostScript printer driver (monochrome and color).


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