Added method GetScale

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2005-01-07 17:07:41 +00:00
parent 5eb50e4689
commit fe970f9d5d
2 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public:
BRect PaperRect() const;
BRect PrintableRect() const;
void GetResolution(int32 *xdpi, int32 *ydpi) const;
float GetScale() const;
// retrieve page
status_t GetPage(int no, PrintJobPage& pjp);

View File

@ -169,3 +169,8 @@ void PrintJobReader::GetResolution(int32 *xdpi, int32 *ydpi) const {
fJobSettings.FindInt32("yres", ydpi);
}
float PrintJobReader::GetScale() const {
float scale = 1.0;
fJobSettings.FindFloat("scale", &scale);
return scale;
}