Added scaling ability to libprint.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10617 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -220,7 +220,9 @@ private:
|
|||||||
Orientation fOrientation;
|
Orientation fOrientation;
|
||||||
float fScaling;
|
float fScaling;
|
||||||
BRect fPaperRect;
|
BRect fPaperRect;
|
||||||
|
BRect fScaledPaperRect;
|
||||||
BRect fPrintableRect;
|
BRect fPrintableRect;
|
||||||
|
BRect fScaledPrintableRect;
|
||||||
int32 fNup;
|
int32 fNup;
|
||||||
int32 fFirstPage;
|
int32 fFirstPage;
|
||||||
int32 fLastPage;
|
int32 fLastPage;
|
||||||
@@ -266,9 +268,15 @@ public:
|
|||||||
const BRect &getPaperRect() const { return fPaperRect; }
|
const BRect &getPaperRect() const { return fPaperRect; }
|
||||||
void setPaperRect(const BRect &paper_rect) { fPaperRect = paper_rect; }
|
void setPaperRect(const BRect &paper_rect) { fPaperRect = paper_rect; }
|
||||||
|
|
||||||
|
const BRect &getScaledPaperRect() const { return fScaledPaperRect; }
|
||||||
|
void setScaledPaperRect(const BRect &paper_rect) { fScaledPaperRect = paper_rect; }
|
||||||
|
|
||||||
const BRect &getPrintableRect() const { return fPrintableRect; }
|
const BRect &getPrintableRect() const { return fPrintableRect; }
|
||||||
void setPrintableRect(const BRect &printable_rect) { fPrintableRect = printable_rect; }
|
void setPrintableRect(const BRect &printable_rect) { fPrintableRect = printable_rect; }
|
||||||
|
|
||||||
|
const BRect &getScaledPrintableRect() const { return fScaledPrintableRect; }
|
||||||
|
void setScaledPrintableRect(const BRect &printable_rect) { fScaledPrintableRect = printable_rect; }
|
||||||
|
|
||||||
int32 getNup() const { return fNup; }
|
int32 getNup() const { return fNup; }
|
||||||
void setNup(int32 nup) { fNup = nup; }
|
void setNup(int32 nup) { fNup = nup; }
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ private:
|
|||||||
BRadioButton *fPortrait;
|
BRadioButton *fPortrait;
|
||||||
BPopUpMenu *fPaper;
|
BPopUpMenu *fPaper;
|
||||||
BPopUpMenu *fResolution;
|
BPopUpMenu *fResolution;
|
||||||
|
BTextControl *fScaling;
|
||||||
};
|
};
|
||||||
|
|
||||||
class PageSetupDlg : public DialogWindow {
|
class PageSetupDlg : public DialogWindow {
|
||||||
|
|||||||
Reference in New Issue
Block a user