2002-11-27 02:03:14 +03:00
|
|
|
/*
|
|
|
|
* PageSetupDlg.h
|
|
|
|
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PAGESETUPDLG_H
|
|
|
|
#define __PAGESETUPDLG_H
|
|
|
|
|
|
|
|
#include <View.h>
|
2004-11-28 22:05:01 +03:00
|
|
|
#include "DialogWindow.h"
|
2005-01-22 17:26:52 +03:00
|
|
|
#include "JobData.h"
|
2002-11-27 02:03:14 +03:00
|
|
|
|
|
|
|
class BRadioButton;
|
|
|
|
class BPopUpMenu;
|
|
|
|
class JobData;
|
2005-01-22 17:26:52 +03:00
|
|
|
class PaperCap;
|
2002-11-27 02:03:14 +03:00
|
|
|
class PrinterData;
|
|
|
|
class PrinterCap;
|
2005-01-22 17:26:52 +03:00
|
|
|
class MarginView;
|
2002-11-27 02:03:14 +03:00
|
|
|
|
|
|
|
class PageSetupView : public BView {
|
|
|
|
public:
|
|
|
|
PageSetupView(BRect frame, JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
|
|
~PageSetupView();
|
|
|
|
virtual void AttachedToWindow();
|
|
|
|
bool UpdateJobData();
|
2005-01-22 17:26:52 +03:00
|
|
|
void MessageReceived(BMessage *msg);
|
2002-11-27 02:03:14 +03:00
|
|
|
|
|
|
|
private:
|
2005-01-22 17:26:52 +03:00
|
|
|
void AddOrientationItem(const char *name, JobData::Orientation orientation);
|
|
|
|
JobData::Orientation GetOrientation();
|
|
|
|
PaperCap *GetPaperCap();
|
|
|
|
|
2004-01-30 20:10:36 +03:00
|
|
|
JobData *fJobData;
|
|
|
|
PrinterData *fPrinterData;
|
|
|
|
const PrinterCap *fPrinterCap;
|
|
|
|
BPopUpMenu *fPaper;
|
2005-01-22 17:26:52 +03:00
|
|
|
BPopUpMenu *fOrientation;
|
2004-01-30 20:10:36 +03:00
|
|
|
BPopUpMenu *fResolution;
|
2005-01-09 20:37:46 +03:00
|
|
|
BTextControl *fScaling;
|
2005-01-22 17:26:52 +03:00
|
|
|
MarginView *fMarginView;
|
2002-11-27 02:03:14 +03:00
|
|
|
};
|
|
|
|
|
2004-11-28 22:05:01 +03:00
|
|
|
class PageSetupDlg : public DialogWindow {
|
2002-11-27 02:03:14 +03:00
|
|
|
public:
|
|
|
|
PageSetupDlg(JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
|
|
|
|
private:
|
2004-01-30 20:10:36 +03:00
|
|
|
BMessageFilter *fFilter;
|
2002-11-27 02:03:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __PAGESETUPDLG_H */
|