12fd6cc2e7
* move libprint headers into libs headers folder accordingly * merge all shared folders sources into kits print, we might build later on a real print kit, propably also to access cups from an nicely API, atm static * move all shared headers into private print, also pr_server.h from interface * adjust build to work with the changed folder layout git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26570 a95241bf-73f2-0310-859d-f6bbb57e9c96
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
/*
|
|
* PageSetupDlg.h
|
|
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef __PAGESETUPDLG_H
|
|
#define __PAGESETUPDLG_H
|
|
|
|
#include <View.h>
|
|
#include "DialogWindow.h"
|
|
#include "JobData.h"
|
|
|
|
class BRadioButton;
|
|
class BPopUpMenu;
|
|
class JobData;
|
|
class PaperCap;
|
|
class PrinterData;
|
|
class PrinterCap;
|
|
class MarginView;
|
|
|
|
class PageSetupView : public BView {
|
|
public:
|
|
PageSetupView(BRect frame, JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
~PageSetupView();
|
|
virtual void AttachedToWindow();
|
|
bool UpdateJobData();
|
|
void MessageReceived(BMessage *msg);
|
|
|
|
private:
|
|
void AddOrientationItem(const char *name, JobData::Orientation orientation);
|
|
JobData::Orientation GetOrientation();
|
|
PaperCap *GetPaperCap();
|
|
|
|
JobData *fJobData;
|
|
PrinterData *fPrinterData;
|
|
const PrinterCap *fPrinterCap;
|
|
BPopUpMenu *fPaper;
|
|
BPopUpMenu *fOrientation;
|
|
BPopUpMenu *fResolution;
|
|
BTextControl *fScaling;
|
|
MarginView *fMarginView;
|
|
};
|
|
|
|
class PageSetupDlg : public DialogWindow {
|
|
public:
|
|
PageSetupDlg(JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap);
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
private:
|
|
BMessageFilter *fFilter;
|
|
};
|
|
|
|
#endif /* __PAGESETUPDLG_H */
|