< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m

Print this page

        

*** 360,372 **** if ([nsLastPage respondsToSelector:@selector(integerValue)]) { jLastPage = [nsLastPage integerValue] - 1; } isRangeSet = true; ! } ! JNFCallVoidMethod(env, dstPrinterJob, jm_setPageRangeAttribute, ! jFirstPage, jLastPage, isRangeSet); // AWT_THREADING Safe (known object) } } --- 360,372 ---- if ([nsLastPage respondsToSelector:@selector(integerValue)]) { jLastPage = [nsLastPage integerValue] - 1; } isRangeSet = true; ! } ! JNFCallVoidMethod(env, dstPrinterJob, jm_setPageRangeAttribute, ! jFirstPage, jLastPage, isRangeSet); // AWT_THREADING Safe (known object) } }
*** 417,427 **** // setting fromPage and toPage will not be shown in the dialog if printing All pages [printingDictionary setObject:[NSNumber numberWithInteger:fromPage] forKey:NSPrintFirstPage]; [printingDictionary setObject:[NSNumber numberWithInteger:toPage] forKey:NSPrintLastPage]; ! jobject page = JNFCallObjectMethod(env, srcPrinterJob, jm_getPageFormat); if (page != NULL) { javaPageFormatToNSPrintInfo(env, NULL, page, dst); } } --- 417,427 ---- // setting fromPage and toPage will not be shown in the dialog if printing All pages [printingDictionary setObject:[NSNumber numberWithInteger:fromPage] forKey:NSPrintFirstPage]; [printingDictionary setObject:[NSNumber numberWithInteger:toPage] forKey:NSPrintLastPage]; ! jobject page = JNFCallObjectMethod(env, srcPrinterJob, jm_getPageFormat); if (page != NULL) { javaPageFormatToNSPrintInfo(env, NULL, page, dst); } }
< prev index next >