History log of /haiku/src/kits/interface/PrintJob.cpp
Revision Date Author Comments
# d9823ef5 31-Jul-2017 Jérôme Duval <jerome.duval@gmail.com>

PrintJob: make struct print_file_header packed.

* also struct _page_header_: on x86_64, these would align to 8 bytes, which the code
doesn't handle well.
* remove beos leftovers.


# 8f3d6d19 29-Aug-2015 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "BPrintJob: fixed crash."

This reverts commit 1805bbf29bceca563985ff377f2b153c46057c2b.


# 1805bbf2 29-Aug-2015 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BPrintJob: fixed crash.
Since hrev49481, BAlert sets its default button in Go(), and not in the
constructor. So DefaultButton() will return NULL if Go() hasn't been called
yet.
Moreover, BAlert now centers itself on screen in Go() and not in the costructor,
so move it away from screen after the Go() call.
Fixes #12271, although there should be a nicer way to implement this.


# 2824c5d3 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 6c1a6532 22-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

PrintJob.cpp: use MemoryDeleter.


# ebea2b79 20-Jul-2013 Murai Takashi <tmurai01@gmail.com>

Fix use of memory after it is freed

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 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.


# 9be774b5 30-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Compilation and 64-bit fixes to libbe.so sources.

Fixed the usual issues - printf format strings, uint32 instead of
addr_t, etc. One thing that isn't so nice is several places where
BList is used to store (u)int32, these require a double cast to addr_t
then void* to silence a warning on x86_64.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# eaa5e093 14-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Fix #8452 (app's crashing for non-existent system catalog)

* make the system catalog a BCatalog instead of a BCatalogAddOn*,
such that using a non-existing system catalog won't crash but
simply return the untranslated string instead
* rename MutableLocaleRoster::GetSystemCatalog() to LoadSystemCatalog()
and adjust it to use BCatalog::SetTo() in order to replace the
data used by the given catalog
* adjust all users of gSystemCatalog accordingly


# 60f75e90 04-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Merge liblocale.so into libbe.so.

* Make the locale kit a part of libbe.
* Drop the LocaleBackend kludge used from within libbe (and from
other places, too) in order to access system catalog strings.
This is now done via gSystemCatalog, which is provided and initialized
by libbe.
* Drop all references to liblocale.so from all Jamfiles.
* Add legacy symlink liblocale.so in order to keep optional packages
that rely on it in a working state.

TODO: the documentation hasn't been updated.


# 4115645a 17-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

Localization of some UI parts:
- context menu of the replicant dragger. Fixes #7363;
- default <empty> menu placeholder. Fixes #7072;
- other messages used in PrintJob, Dragger and ZombieReplicantView classes.



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


# 585db48d 22-Feb-2011 Jonas Sundström <jonas@kirilla.com>

Unsafe use of strncpy replaced by strlcpy. CID 2238.

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


# 9fd5bdcb 11-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Made BPrintJob layout aware: while drawing recursively, we can't anymore
assume that all children B_WILL_DRAW.
Also call Draw() only when the view said it will.


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


# f331ce24 02-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* CanContinue() should obviously return "true" before there is a reason to stop,
ie. also before BeginJob() has been called.
* This fixes BePDF and Gobe Productive not being able to print under Haiku.


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


# e90df819 02-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup.


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


# 1a74e752 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* replace some whitespaces
* return error in case we could not get all values from JobConfig



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


# 30cf4e6a 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* revert the last change as we can get stop etc. also


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


# 7630caca 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* check against baad as e.g. the epson addon does not return okok on success



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


# f56301c9 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* maintain our own rect while printing, this makes it possible to print all pages e.g. syslog from StyledEdit



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


# 9c95cbf2 17-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* update the chart as the first one was not entirely right
Thanks Michael for pointing this out :)



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


# 6af681d7 15-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* update year in copyright
* added a bit more (visual) information about the spool file format
* rename Configuration to PrintServerMessenger (still not the best name)
* remove ConfigPage{Job}Thread as both share the same code and make it privte in PrintServerMessenger



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


# e8991ce3 10-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* fill the view with it's high color, BPrintJob behaves now like on R5
fixes printing from e.g Scooby (missing header color)

finally found the missing peace here:
http://www.freelists.org/archives/haiku-development/06-2008/msg00086.html
thanks Stephan :)



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


# 15c0cece 02-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* don't print child views with invalid rect, this makes printing e.g.
from Scooby nearly the same as on R5 (still misses the gray header color)



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


# 75ef87ae 20-May-2008 Karsten Heimrich <host.haiku@gmx.de>

* make printing for child views working, noticed while trying to print
from Scooby, it would draw all child views on top of each other...


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


# 838c73ba 11-Apr-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed unused BWindow friend classes, renamed some BView member
variables to fit our guidelines.


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


# fe1500ee 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* got rid of fPageNumber as we the information always around
* rewrote parts of Begin/CommitJob, _StartPage, SpoolPage, _EndLastPage and _AddPicture


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


# 0bc5c119 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* some small code cleanup
* followed Rene' sugestion and constrain the clipping region, still we only
get the "user" visible view region drawn, so there might be an other problem


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


# f1c61c2a 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* naive implementation for DrawAfterChildren()
* resolved TODO in _RecurseView(), no need to call Draw() on views
that are hidden or miss the B_WILL_DRAW flag, as there Draw()
function would never be called according to the BeBook documentation



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


# 5d81827b 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* push the states on the server instead on the client side
* DrawState::SetOrigin needs to take the view scaling into account
* set the orgin in BPrintJob, to be able to print more then one page properly

Note: This would make printing work on HAIKU as on BeOS, but still it does
not because of 1; BPortLink size limit and 2; because we can only print/ draw
the visible region of a view? I had to resize StyledEdit to a i.e 10000
to test and to be able to print the full syslog.



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


# 242605b9 23-Mar-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set page_offset to -1 like BeOS R5 did.


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


# e7fe0f67 13-Jan-2008 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Fix BPrintJob to not screw up user-made job settings with the global defaults.... StyledEdit prints again :)

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


# 921eba6e 01-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BPrintJob: PrintableRect(), PaperRect() and GetResolution() now call
_LoadDefaultSettings() if no settings were loaded already, in order to
return valid values. Renamed private methods to fit our guidelines.


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


# cf42e48e 25-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

call Draw() between PushState/PopState. Added some Todo.


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


# dc5219b0 30-Jul-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added sanity check to public method. Set offset to first page in header.

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


# d4fd9970 29-Jul-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Do not overwrite current printer name. Name should be provided by print_server already.

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


# c282eba3 05-Feb-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Fixed bug #1009. Update window while in BPrintJob.ConfigPage() or
ConfigPage().
* Set mime type of spool file so print_server accepts the file.


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


# 5c3281f9 08-Oct-2006 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Write print job to spool file. Not tested under Haiku. Seems to work fine with a simple R5 test application.


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


# 6b8c9f57 20-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Return B_ERROR in unimplemented methods

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


# 8369eefa 20-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Changed return type of EnsureValidMessenger after Marcus's advice. Changed the semaptics of BPrintJob::SetSettings() to match R5 ones.

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


# 05883bf6 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more work in progress. This code has been sitting on some forgotten hard drive for some time already

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


# 1a9e66f8 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed class members to fit our style guidelines

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


# fc14c680 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

EnsureValidMessenger returns a boolean value now. Fixed indentation

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


# 515c369e 18-Jul-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some more work on BPrintJob.

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


# 70cb1d91 15-Jul-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Implemented BPrintJob::BeginJob() and CancelJob() (tested a bit)

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


# 41d64d67 02-Mar-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Looks like I _HAD_ screwed something. Fixed some wrong stuff about printjob's settings, implemented more functions. Communication with the print_server should be ok, and also settings. Now comes the hard part: setting up the spool file. Any hint ?


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


# 6bb758a2 02-Mar-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Implemented some basic BPrintJob methods (hope I didn't screw anything, is there any print server guy around ?). Is there any reason why it is left out of the build (besides being incomplete) ?


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


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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


# 8f3d6d192f9b5d69a487cb353ac8561f7e75bcd3 29-Aug-2015 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "BPrintJob: fixed crash."

This reverts commit 1805bbf29bceca563985ff377f2b153c46057c2b.


# 1805bbf29bceca563985ff377f2b153c46057c2b 29-Aug-2015 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BPrintJob: fixed crash.
Since hrev49481, BAlert sets its default button in Go(), and not in the
constructor. So DefaultButton() will return NULL if Go() hasn't been called
yet.
Moreover, BAlert now centers itself on screen in Go() and not in the costructor,
so move it away from screen after the Go() call.
Fixes #12271, although there should be a nicer way to implement this.


# 2824c5d3a428b1f52fb41e7cf84ef1690cfadc80 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 6c1a6532d5429b1dd5c23760b5f6dcd31cb2dbd7 22-Oct-2013 Jérôme Duval <jerome.duval@gmail.com>

PrintJob.cpp: use MemoryDeleter.


# ebea2b79f1e3bf14639af01c09dd7f48512910d2 20-Jul-2013 Murai Takashi <tmurai01@gmail.com>

Fix use of memory after it is freed

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 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.


# 9be774b553296a712704078314f2291ae5fc352c 30-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Compilation and 64-bit fixes to libbe.so sources.

Fixed the usual issues - printf format strings, uint32 instead of
addr_t, etc. One thing that isn't so nice is several places where
BList is used to store (u)int32, these require a double cast to addr_t
then void* to silence a warning on x86_64.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# eaa5e0936d94e7d0bb2e6066a87d485e7613414c 14-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Fix #8452 (app's crashing for non-existent system catalog)

* make the system catalog a BCatalog instead of a BCatalogAddOn*,
such that using a non-existing system catalog won't crash but
simply return the untranslated string instead
* rename MutableLocaleRoster::GetSystemCatalog() to LoadSystemCatalog()
and adjust it to use BCatalog::SetTo() in order to replace the
data used by the given catalog
* adjust all users of gSystemCatalog accordingly


# 60f75e901ce3063c63441ac644dd0e55a17d5d09 04-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Merge liblocale.so into libbe.so.

* Make the locale kit a part of libbe.
* Drop the LocaleBackend kludge used from within libbe (and from
other places, too) in order to access system catalog strings.
This is now done via gSystemCatalog, which is provided and initialized
by libbe.
* Drop all references to liblocale.so from all Jamfiles.
* Add legacy symlink liblocale.so in order to keep optional packages
that rely on it in a working state.

TODO: the documentation hasn't been updated.


# 4115645af634d7cabe8d91ae67efcd16dadd3c38 17-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

Localization of some UI parts:
- context menu of the replicant dragger. Fixes #7363;
- default <empty> menu placeholder. Fixes #7072;
- other messages used in PrintJob, Dragger and ZombieReplicantView classes.



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


# 585db48d5115a36c72455d05b6af665928c76473 22-Feb-2011 Jonas Sundström <jonas@kirilla.com>

Unsafe use of strncpy replaced by strlcpy. CID 2238.

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


# 9fd5bdcbd434d4b5940575d7580e31b2bcd08956 11-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Made BPrintJob layout aware: while drawing recursively, we can't anymore
assume that all children B_WILL_DRAW.
Also call Draw() only when the view said it will.


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


# f331ce24649cb04de183b56069f498d0e7da8c24 02-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* CanContinue() should obviously return "true" before there is a reason to stop,
ie. also before BeginJob() has been called.
* This fixes BePDF and Gobe Productive not being able to print under Haiku.


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


# e90df81946ee4c21cf2a786e6998b048b5578b15 02-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup.


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


# 1a74e75248af8d5e7fd8b111e4d8ce5948429ef3 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* replace some whitespaces
* return error in case we could not get all values from JobConfig



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


# 30cf4e6a5417bc11f805639941e029367b088edf 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* revert the last change as we can get stop etc. also


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


# 7630cacab65847f526362f7229652a0dfbc06263 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* check against baad as e.g. the epson addon does not return okok on success



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


# f56301c9e824fb17a6022f06ec64d6807b64adc5 07-Jul-2008 Karsten Heimrich <host.haiku@gmx.de>

* maintain our own rect while printing, this makes it possible to print all pages e.g. syslog from StyledEdit



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


# 9c95cbf21fb8dd06ae28a91eb8a9ad46d0794f2c 17-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* update the chart as the first one was not entirely right
Thanks Michael for pointing this out :)



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


# 6af681d7e64461724bd185f2d4d39982c6c5e363 15-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* update year in copyright
* added a bit more (visual) information about the spool file format
* rename Configuration to PrintServerMessenger (still not the best name)
* remove ConfigPage{Job}Thread as both share the same code and make it privte in PrintServerMessenger



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


# e8991ce3ac6f6b9e9efa5876969f58ccab38563f 10-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* fill the view with it's high color, BPrintJob behaves now like on R5
fixes printing from e.g Scooby (missing header color)

finally found the missing peace here:
http://www.freelists.org/archives/haiku-development/06-2008/msg00086.html
thanks Stephan :)



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


# 15c0cece2ba5f7ef2250af1dd6bfdd2c88f805e7 02-Jun-2008 Karsten Heimrich <host.haiku@gmx.de>

* don't print child views with invalid rect, this makes printing e.g.
from Scooby nearly the same as on R5 (still misses the gray header color)



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


# 75ef87aeb55aaab9d523938ad1574b0b23b68aa7 20-May-2008 Karsten Heimrich <host.haiku@gmx.de>

* make printing for child views working, noticed while trying to print
from Scooby, it would draw all child views on top of each other...


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


# 838c73ba76ad83ae603837e65739eb975eb522b8 11-Apr-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed unused BWindow friend classes, renamed some BView member
variables to fit our guidelines.


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


# fe1500eeaf8a4c3d628ffd1d49446739a662ea28 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* got rid of fPageNumber as we the information always around
* rewrote parts of Begin/CommitJob, _StartPage, SpoolPage, _EndLastPage and _AddPicture


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


# 0bc5c11939726cefab1c0c2566af0a5e4526424f 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* some small code cleanup
* followed Rene' sugestion and constrain the clipping region, still we only
get the "user" visible view region drawn, so there might be an other problem


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


# f1c61c2ada3d5de2f61ac9241a6941b707550fd0 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* naive implementation for DrawAfterChildren()
* resolved TODO in _RecurseView(), no need to call Draw() on views
that are hidden or miss the B_WILL_DRAW flag, as there Draw()
function would never be called according to the BeBook documentation



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


# 5d81827b2c7e74821b00e8ad546166a00dec1e4b 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* push the states on the server instead on the client side
* DrawState::SetOrigin needs to take the view scaling into account
* set the orgin in BPrintJob, to be able to print more then one page properly

Note: This would make printing work on HAIKU as on BeOS, but still it does
not because of 1; BPortLink size limit and 2; because we can only print/ draw
the visible region of a view? I had to resize StyledEdit to a i.e 10000
to test and to be able to print the full syslog.



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


# 242605b930147bdec6176e9b2f30e6787a998043 23-Mar-2008 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Set page_offset to -1 like BeOS R5 did.


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


# e7fe0f67d172012271b5aa1656467b312b8aa37c 13-Jan-2008 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Fix BPrintJob to not screw up user-made job settings with the global defaults.... StyledEdit prints again :)

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


# 921eba6e4d04169c872dbd6aa98906b832e2e793 01-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

BPrintJob: PrintableRect(), PaperRect() and GetResolution() now call
_LoadDefaultSettings() if no settings were loaded already, in order to
return valid values. Renamed private methods to fit our guidelines.


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


# cf42e48ef150f74f758d8f3248f5f3f3be782602 25-Dec-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

call Draw() between PushState/PopState. Added some Todo.


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


# dc5219b0818f1e1e987da1fa5a7176054b7ef64c 30-Jul-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Added sanity check to public method. Set offset to first page in header.

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


# d4fd997069fe908339c68ffcb81dcbd52371899d 29-Jul-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Do not overwrite current printer name. Name should be provided by print_server already.

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


# c282eba324e5576a3a9beb8a2bb8a86ac58c04ad 05-Feb-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

* Fixed bug #1009. Update window while in BPrintJob.ConfigPage() or
ConfigPage().
* Set mime type of spool file so print_server accepts the file.


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


# 5c3281f91b24db5927e14a29b21e9bb5d71dd2da 08-Oct-2006 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Write print job to spool file. Not tested under Haiku. Seems to work fine with a simple R5 test application.


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


# 6b8c9f570822ddc2603f14394c648ae0da2ceaaa 20-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Return B_ERROR in unimplemented methods

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


# 8369eefa1bbaf2a387b1b647c79a6e2429d94730 20-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Changed return type of EnsureValidMessenger after Marcus's advice. Changed the semaptics of BPrintJob::SetSettings() to match R5 ones.

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


# 05883bf6dc198b9ba007011e2d0cec1b2149380c 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more work in progress. This code has been sitting on some forgotten hard drive for some time already

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


# 1a9e66f8e1cacba421e9aaf8a5fe890d81763ccd 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed class members to fit our style guidelines

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


# fc14c6808febc6224732ccb06695aab7503f996c 17-Feb-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

EnsureValidMessenger returns a boolean value now. Fixed indentation

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


# 515c369ec96cdd3aebcb0875ba96a32938d64b9e 18-Jul-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Some more work on BPrintJob.

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


# 70cb1d917cb64d5b5b960b52bedff551b09572d7 15-Jul-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Implemented BPrintJob::BeginJob() and CancelJob() (tested a bit)

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


# 41d64d67923b1bec8ee070746656bb9f3bed244b 02-Mar-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Looks like I _HAD_ screwed something. Fixed some wrong stuff about printjob's settings, implemented more functions. Communication with the print_server should be ok, and also settings. Now comes the hard part: setting up the spool file. Any hint ?


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


# 6bb758a26fd2ca15fea6f2933894d56011c186ce 02-Mar-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Implemented some basic BPrintJob methods (hope I didn't screw anything, is there any print server guy around ?). Is there any reason why it is left out of the build (besides being incomplete) ?


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


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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