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

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23157 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-12-25 22:47:19 +00:00
parent c9198a4cce
commit cf42e48ef1
+9 -3
View File
@@ -266,8 +266,9 @@ BPrintJob::~BPrintJob()
fCurrentPageHeader = NULL;
}
static
status_t ConfigPageThread(void *data)
static status_t
ConfigPageThread(void *data)
{
BPrivate::Configuration* configuration = static_cast<BPrivate::Configuration*>(data);
@@ -581,6 +582,7 @@ BPrintJob::IsSettingsMessageValid(BMessage *message) const
return valid;
}
// Either SetSettings() or ConfigPage() has to be called prior
// to any of the getters otherwise they return undefined values.
BRect
@@ -654,10 +656,14 @@ BPrintJob::RecurseView(BView *view, BPoint origin,
BPicture *picture, BRect rect)
{
ASSERT(picture != NULL);
// TODO: test what happens if views don't have
// the B_WILL_DRAW flag or have B_DRAW_ON_CHILDREN
view->AppendToPicture(picture);
view->f_is_printing = true;
view->PushState();
view->Draw(rect);
view->PopState();
view->f_is_printing = false;
view->EndPicture();