Revision: 4742
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4742&view=rev
Author:   hofman
Date:     2008-10-05 20:54:05 +0000 (Sun, 05 Oct 2008)

Log Message:
-----------
Set print info for printable view to document's print info

Modified Paths:
--------------
    trunk/BDSKPrintableView.m
    trunk/SKNotesDocument.m

Modified: trunk/BDSKPrintableView.m
===================================================================
--- trunk/BDSKPrintableView.m   2008-10-05 16:01:28 UTC (rev 4741)
+++ trunk/BDSKPrintableView.m   2008-10-05 20:54:05 UTC (rev 4742)
@@ -106,7 +106,7 @@
     unsigned cnt, numberOfPages = [self numberOfPages];
     NSArray *textContainers = [[self layoutManager] textContainers];
     
-    [self setPrintInfo:printInfo];
+    [super setPrintInfo:printInfo];
     
     for (cnt = 0; cnt < numberOfPages; cnt++) {
         NSRect textFrame = [self documentRectForPageNumber:cnt];
@@ -116,6 +116,11 @@
     }
 }
 
+- (void)setPrintInfo:(NSPrintInfo *)info {
+    [super setPrintInfo:info];
+    [self printInfoUpdated];
+}
+
 - (void)addPage {
     NSZone *zone = [self zone];
     unsigned numberOfPages = [self numberOfPages];

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2008-10-05 16:01:28 UTC (rev 4741)
+++ trunk/SKNotesDocument.m     2008-10-05 20:54:05 UTC (rev 4742)
@@ -290,6 +290,7 @@
 - (NSView *)printableView{
     BDSKPrintableView *printableView = [[[BDSKPrintableView alloc] 
initForScreenDisplay:NO] autorelease];
     NSAttributedString *attrString = [[[NSAttributedString alloc] 
initWithRTF:[self notesRTFData] documentAttributes:NULL] autorelease];
+    [printableView setPrintInfo:[self printInfo]];
     [printableView setAttributedString:attrString];
     return printableView;
 }


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to