aquaprintview.mm (79aad27f) | aquaprintview.mm (cd426cce) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 41 unchanged lines hidden (view full) --- 50 51-(NSRect)rectForPage: (int)page 52{ 53 NSSize aPaperSize = [mpInfoPrinter->getPrintInfo() paperSize]; 54 int nWidth = (int)aPaperSize.width; 55 // #i101108# sanity check 56 if( nWidth < 1 ) 57 nWidth = 1; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 41 unchanged lines hidden (view full) --- 50 51-(NSRect)rectForPage: (int)page 52{ 53 NSSize aPaperSize = [mpInfoPrinter->getPrintInfo() paperSize]; 54 int nWidth = (int)aPaperSize.width; 55 // #i101108# sanity check 56 if( nWidth < 1 ) 57 nWidth = 1; |
58 NSRect aRect = { { page % nWidth, page / nWidth }, aPaperSize }; | 58 NSRect aRect = { NSMakePoint( page % nWidth, page / nWidth), aPaperSize }; |
59 return aRect; 60} 61 62-(NSPoint)locationOfPrintRect: (NSRect)aRect 63{ 64 (void)aRect; 65 NSPoint aPoint = { 0, 0 }; 66 return aPoint; --- 14 unchanged lines hidden --- | 59 return aRect; 60} 61 62-(NSPoint)locationOfPrintRect: (NSRect)aRect 63{ 64 (void)aRect; 65 NSPoint aPoint = { 0, 0 }; 66 return aPoint; --- 14 unchanged lines hidden --- |