Revision: 7058
http://skim-app.svn.sourceforge.net/skim-app/?rev=7058&view=rev
Author: hofman
Date: 2011-01-07 20:09:41 +0000 (Fri, 07 Jan 2011)
Log Message:
-----------
no snapshots of locked documents
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
trunk/SKPDFView.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2011-01-07 19:18:23 UTC (rev 7057)
+++ trunk/SKMainWindowController_UI.m 2011-01-07 20:09:41 UTC (rev 7058)
@@ -1467,6 +1467,8 @@
return [self interactionMode] != SKPresentationMode && [[self
pdfDocument] isLocked] == NO;
} else if (action == @selector(autoSelectContent:)) {
return [self interactionMode] != SKPresentationMode && [[self
pdfDocument] isLocked] == NO && [pdfView toolMode] == SKSelectToolMode;
+ } else if (action == @selector(takeSnapshot:)) {
+ return [[self pdfDocument] isLocked] == NO;
} else if (action == @selector(toggleLeftSidePane:)) {
if ([self leftSidePaneIsOpen])
[menuItem setTitle:NSLocalizedString(@"Hide Contents Pane", @"Menu
item title")];
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-01-07 19:18:23 UTC (rev 7057)
+++ trunk/SKPDFView.m 2011-01-07 20:09:41 UTC (rev 7058)
@@ -2349,6 +2349,8 @@
return [[self currentSelection] hasCharacters] != 0;
} else if (action == @selector(autoSelectContent:)) {
return toolMode == SKSelectToolMode;
+ } else if (action == @selector(takeSnapshot:)) {
+ return [[self document] isLocked] == NO;
} else {
return [super validateMenuItem:menuItem];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit