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:
|
2010-10-16 23:56:34 +04:00
|
|
|
PageSetupView(JobData *job_data, PrinterData *printer_data,
|
|
|
|
const PrinterCap *printer_cap);
|
2002-11-27 02:03:14 +03:00
|
|
|
~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:
|
2010-10-16 23:56:34 +04:00
|
|
|
PageSetupDlg(JobData *job_data, PrinterData *printer_data,
|
|
|
|
const PrinterCap *printer_cap);
|
2002-11-27 02:03:14 +03:00
|
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
|
|
|
|
private:
|
2010-10-16 23:56:34 +04:00
|
|
|
BMessageFilter* fFilter;
|
|
|
|
PageSetupView* fPageSetupView;
|
2002-11-27 02:03:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __PAGESETUPDLG_H */
|