Added method GetScale
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5eb50e4689
commit
fe970f9d5d
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user