fSetupMsg
fSetupMsg->RemoveName("copies");
fSetupMsg->AddInt32("copies", copies);
fSetupMsg->RemoveName("first_page");
fSetupMsg->AddInt32("first_page", from);
fSetupMsg->RemoveName("last_page");
fSetupMsg->AddInt32("last_page", to);
fSetupMsg->FindInt32("first_page", &firstPage);
fSetupMsg->FindInt32("last_page", &lastPage);
BMessage *fSetupMsg;
fSetupMsg(msg),
if (fSetupMsg->FindInt32("orientation", &fCurrentOrientation) != B_OK)
if (fSetupMsg->FindRect("preview:paper_rect", &page) == B_OK) {
if (fSetupMsg->FindString("preview:paper_size", &label) != B_OK)
if (fSetupMsg->FindInt32("units", &units) != B_OK)
if (fSetupMsg->FindRect("preview:printable_rect", &margin) == B_OK) {
if (fSetupMsg->FindFloat("scale", &scale0) == B_OK)
SetInt32(fSetupMsg, "xres", 300);
SetInt32(fSetupMsg, "yres", 300);
SetInt32(fSetupMsg, "orientation", fCurrentOrientation);
SetFloat(fSetupMsg, "scale", scale);
SetRect(fSetupMsg, "preview:paper_rect", r);
SetRect(fSetupMsg, "paper_rect", ScaleRect(r, scaleR));
SetString(fSetupMsg, "preview:paper_size", item->Label());
SetRect(fSetupMsg, "preview:printable_rect", margin);
SetRect(fSetupMsg, "printable_rect", ScaleRect(margin, scaleR));
SetInt32(fSetupMsg, "units", fMarginView->Unit());
BMessage * fSetupMsg;