1 /* 2 * PageSetupDlg.h 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 */ 5 6 #ifndef __PAGESETUPDLG_H 7 #define __PAGESETUPDLG_H 8 9 #include <View.h> 10 #include "DialogWindow.h" 11 #include "JobData.h" 12 13 class BRadioButton; 14 class BPopUpMenu; 15 class JobData; 16 class PaperCap; 17 class PrinterData; 18 class PrinterCap; 19 class MarginView; 20 21 class PageSetupView : public BView { 22 public: 23 PageSetupView(BRect frame, JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap); 24 ~PageSetupView(); 25 virtual void AttachedToWindow(); 26 bool UpdateJobData(); 27 void MessageReceived(BMessage *msg); 28 29 private: 30 void AddOrientationItem(const char *name, JobData::Orientation orientation); 31 JobData::Orientation GetOrientation(); 32 PaperCap *GetPaperCap(); 33 34 JobData *fJobData; 35 PrinterData *fPrinterData; 36 const PrinterCap *fPrinterCap; 37 BPopUpMenu *fPaper; 38 BPopUpMenu *fOrientation; 39 BPopUpMenu *fResolution; 40 BTextControl *fScaling; 41 MarginView *fMarginView; 42 }; 43 44 class PageSetupDlg : public DialogWindow { 45 public: 46 PageSetupDlg(JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap); 47 virtual void MessageReceived(BMessage *message); 48 49 private: 50 BMessageFilter *fFilter; 51 }; 52 53 #endif /* __PAGESETUPDLG_H */ 54