Revision: 5574
http://skim-app.svn.sourceforge.net/skim-app/?rev=5574&view=rev
Author: hofman
Date: 2009-08-21 07:57:30 +0000 (Fri, 21 Aug 2009)
Log Message:
-----------
remove PDF With Embedded Notes from writable types rather than the popup
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-08-20 22:58:50 UTC (rev 5573)
+++ trunk/SKPDFDocument.m 2009-08-21 07:57:30 UTC (rev 5574)
@@ -260,6 +260,8 @@
[writableTypes removeObject:SKBareDVIDocumentType];
}
if (saveOperation == NSSaveToOperation) {
+ if ([[self pdfDocument] isEncrypted])
+ [writableTypes removeObject:SKEmbeddedPDFDocumentType];
[writableTypes addObjectsFromArray:[[NSDocumentController
sharedDocumentController] customExportTemplateFilesResetting]];
}
return writableTypes;
@@ -285,11 +287,6 @@
NSPopUpButton *formatPopup = [[savePanel accessoryView]
subviewOfClass:[NSPopUpButton class]];
if (formatPopup) {
NSString *lastExportedType = [[NSUserDefaults
standardUserDefaults] stringForKey:SKLastExportedTypeKey];
- if ([[self pdfDocument] isEncrypted]) {
- NSInteger idx = [formatPopup
indexOfItemWithRepresentedObject:SKEmbeddedPDFDocumentType];
- if (idx != -1)
- [formatPopup removeItemAtIndex:idx];
- }
if (lastExportedType) {
NSInteger idx = [formatPopup
indexOfItemWithRepresentedObject:lastExportedType];
if (idx != -1 && idx != [formatPopup indexOfSelectedItem]) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit