2440d2c1cf
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2091 a95241bf-73f2-0310-859d-f6bbb57e9c96
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
/*
|
|
* PageSetupDlg.h
|
|
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef __PAGESETUPDLG_H
|
|
#define __PAGESETUPDLG_H
|
|
|
|
#include <View.h>
|
|
#include <Window.h>
|
|
|
|
class BRadioButton;
|
|
class BPopUpMenu;
|
|
class JobData;
|
|
class PrinterData;
|
|
class PrinterCap;
|
|
|
|
class PageSetupView : public BView {
|
|
public:
|
|
PageSetupView(BRect frame, JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
~PageSetupView();
|
|
virtual void AttachedToWindow();
|
|
bool UpdateJobData();
|
|
|
|
private:
|
|
JobData *__job_data;
|
|
PrinterData *__printer_data;
|
|
const PrinterCap *__printer_cap;
|
|
BRadioButton *__portrait;
|
|
BPopUpMenu *__paper;
|
|
BPopUpMenu *__resolution;
|
|
};
|
|
|
|
class PageSetupDlg : public BWindow {
|
|
public:
|
|
PageSetupDlg(JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
~PageSetupDlg();
|
|
virtual bool QuitRequested();
|
|
virtual void MessageReceived(BMessage *message);
|
|
int Go();
|
|
|
|
private:
|
|
int __result;
|
|
long __semaphore;
|
|
BMessageFilter *__filter;
|
|
};
|
|
|
|
#endif /* __PAGESETUPDLG_H */
|