3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
10 #include "PrinterData.h"
11 #include "JobSetupDlg.h"
12 #include "PageSetupDlg.h"
16 UIDriver::UIDriver(BMessage
* message
, PrinterData
*printerData
,
17 const PrinterCap
*printerCap
)
20 fPrinterData(printerData
),
21 fPrinterCap(printerCap
)
32 UIDriver::ConfigPage()
34 BMessage
*clonedMessage
= new BMessage(*fMsg
);
35 JobData
*jobData
= new JobData(clonedMessage
, fPrinterCap
,
36 JobData::kPageSettings
);
38 if (PageSetup(jobData
, fPrinterData
, fPrinterCap
) < 0) {
42 clonedMessage
->what
= 'okok';
53 BMessage
*clonedMessage
= new BMessage(*fMsg
);
54 JobData
*jobData
= new JobData(clonedMessage
, fPrinterCap
,
55 JobData::kJobSettings
);
57 if (JobSetup(jobData
, fPrinterData
, fPrinterCap
) < 0) {
61 clonedMessage
->what
= 'okok';
70 UIDriver::PageSetup(JobData
* jobData
, PrinterData
* printerData
,
71 const PrinterCap
* printerCap
)
73 PageSetupDlg
*dialog
= new PageSetupDlg(jobData
, printerData
, printerCap
);
79 UIDriver::JobSetup(JobData
*jobData
, PrinterData
*printerData
,
80 const PrinterCap
*printerCap
)
82 JobSetupDlg
*dialog
= new JobSetupDlg(jobData
, printerData
, printerCap
);