Revision: 6938
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6938&view=rev
Author:   hofman
Date:     2010-12-06 15:49:25 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
define some string constants

Modified Paths:
--------------
    trunk/SKInfoWindowController.m
    trunk/SKMainDocument.m
    trunk/SKPDFDocument.h
    trunk/SKPDFDocument.m

Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m      2010-12-06 12:28:08 UTC (rev 6937)
+++ trunk/SKInfoWindowController.m      2010-12-06 15:49:25 UTC (rev 6938)
@@ -43,6 +43,8 @@
 
 #define SKInfoWindowFrameAutosaveName @"SKInfoWindow"
 
+#define SKBoolStringTransformerName @"SKBoolStringTransformer"
+
 #define SKInfoVersionKey @"Version"
 #define SKInfoPageCountKey @"PageCount"
 #define SKInfoPageSizeKey @"PageSize"
@@ -74,7 +76,7 @@
     SKINITIALIZE;
     
     SKBoolStringTransformer *transformer = [[SKBoolStringTransformer alloc] 
init];
-    [NSValueTransformer setValueTransformer:transformer 
forName:@"SKBoolStringTransformer"];
+    [NSValueTransformer setValueTransformer:transformer 
forName:SKBoolStringTransformerName];
     [transformer release];
 }
 

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2010-12-06 12:28:08 UTC (rev 6937)
+++ trunk/SKMainDocument.m      2010-12-06 15:49:25 UTC (rev 6938)
@@ -2038,7 +2038,7 @@
     }
     
     if (showPanel && [showPanel boolValue] == NO)
-        [[printInfo dictionary] setObject:[NSNumber numberWithBool:YES] 
forKey:@"SKSuppressPrintPanel"];
+        [[printInfo dictionary] setObject:[NSNumber numberWithBool:YES] 
forKey:SKSuppressPrintPanel];
     
     [[self pdfView] printWithInfo:printInfo autoRotate:YES];
     

Modified: trunk/SKPDFDocument.h
===================================================================
--- trunk/SKPDFDocument.h       2010-12-06 12:28:08 UTC (rev 6937)
+++ trunk/SKPDFDocument.h       2010-12-06 15:49:25 UTC (rev 6938)
@@ -39,6 +39,7 @@
 #import <Cocoa/Cocoa.h>
 #import <Quartz/Quartz.h>
 
+extern NSString *SKSuppressPrintPanel;
 
 @interface SKPDFDocument : PDFDocument
 @end

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2010-12-06 12:28:08 UTC (rev 6937)
+++ trunk/SKPDFDocument.m       2010-12-06 15:49:25 UTC (rev 6938)
@@ -40,6 +40,7 @@
 #import "SKPDFPage.h"
 #import "SKPrintAccessoryController.h"
 
+NSString *SKSuppressPrintPanel = @"SKSuppressPrintPanel";
 
 @interface PDFDocument (SKPrivateDeclarations)
 - (NSPrintOperation *)getPrintOperationForPrintInfo:(NSPrintInfo *)printInfo 
autoRotate:(BOOL)autoRotate;
@@ -56,7 +57,7 @@
     NSPrintOperation *printOperation = nil;
     if ([[SKPDFDocument superclass] instancesRespondToSelector:_cmd]) {
         printOperation = [super getPrintOperationForPrintInfo:printInfo 
autoRotate:autoRotate];
-        if ([[[[printOperation printInfo] dictionary] 
objectForKey:@"SKSuppressPrintPanel"] boolValue])
+        if ([[[[printOperation printInfo] dictionary] 
objectForKey:SKSuppressPrintPanel] boolValue])
             [printOperation setShowsPrintPanel:NO];
         
         NSPrintPanel *printPanel = [printOperation printPanel];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to