Revision: 7000
http://skim-app.svn.sourceforge.net/skim-app/?rev=7000&view=rev
Author: hofman
Date: 2010-12-21 13:58:27 +0000 (Tue, 21 Dec 2010)
Log Message:
-----------
use macro
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2010-12-21 13:36:05 UTC (rev 6999)
+++ trunk/SKMainDocument.m 2010-12-21 13:58:27 UTC (rev 7000)
@@ -110,6 +110,9 @@
#define SKTagsKey @"Tags"
#define SKRatingKey @"Rating"
+#define SKPDFPrintAutoRotate @"PDFPrintAutoRotate"
+#define SKPDFPrintScalingMode @"PDFPrintScalingMode"
+
static char SKMainDocumentDefaultsObservationContext;
@@ -206,8 +209,8 @@
NSPrintInfo *printInfo = [[[self printInfo] copy] autorelease];
NSMutableDictionary *printDict = [printInfo dictionary];
- [printDict setValue:[NSNumber numberWithBool:YES]
forKey:@"PDFPrintAutoRotate"];
- [printDict setValue:[NSNumber numberWithInteger:kPDFPrintPageScaleNone]
forKey:@"PDFPrintScalingMode"];
+ [printDict setValue:[NSNumber numberWithBool:YES]
forKey:SKPDFPrintAutoRotate];
+ [printDict setValue:[NSNumber numberWithInteger:kPDFPrintPageScaleNone]
forKey:SKPDFPrintScalingMode];
[printDict setValue:[NSNumber numberWithInteger:1]
forKey:NSPrintFirstPage];
[printDict setValue:[NSNumber numberWithInteger:1] forKey:NSPrintLastPage];
[printDict setValue:[NSNumber numberWithBool:YES] forKey:NSPrintAllPages];
@@ -894,8 +897,8 @@
if (showPrintPanel == NO)
[infoDict setObject:[NSNumber numberWithBool:YES]
forKey:SKSuppressPrintPanel];
- BOOL autoRotate = [[infoDict objectForKey:@"PDFPrintAutoRotate"]
boolValue];
- PDFPrintScalingMode pageScaling = [[infoDict
objectForKey:@"PDFPrintScalingMode"] integerValue];
+ BOOL autoRotate = [[infoDict objectForKey:SKPDFPrintAutoRotate] boolValue];
+ PDFPrintScalingMode pageScaling = [[infoDict
objectForKey:SKPDFPrintScalingMode] integerValue];
[[self pdfView] printWithInfo:printInfo autoRotate:autoRotate
pageScaling:pageScaling];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit