aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportFilenameUtilities.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-07 04:20:06 +0100
committerMax <post@wickenrode.com>2015-11-07 04:20:06 +0100
commitfdef91b45a56b2f94aa477041b8f4185a2e7e7e2 (patch)
tree82782958767e3bda7bf7118cc3b357fa78fb4db7 /Source/SPExportFilenameUtilities.m
parent72951bfbb85dd91095823fc6a170d3ce41718246 (diff)
downloadsequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.tar.gz
sequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.tar.bz2
sequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.zip
Allow import of saved export settings (in export dialog)
Diffstat (limited to 'Source/SPExportFilenameUtilities.m')
-rw-r--r--Source/SPExportFilenameUtilities.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m
index ac09dd3b..69b8f786 100644
--- a/Source/SPExportFilenameUtilities.m
+++ b/Source/SPExportFilenameUtilities.m
@@ -153,6 +153,18 @@
[self updateDisplayedExportFilename];
}
+- (NSArray *)currentAllowedExportFilenameTokens
+{
+ NSArray *mixed = [exportCustomFilenameTokenPool objectValue];
+ NSMutableArray *tokens = [NSMutableArray arrayWithCapacity:[mixed count]]; // ...or less
+
+ for (id obj in mixed) {
+ if([obj isKindOfClass:[SPExportFileNameTokenObject class]]) [tokens addObject:obj];
+ }
+
+ return tokens;
+}
+
/**
* Generates the default export filename based on the selected export options.
*