From 69c12e163713013af75fdb80d6982f30b81a9a06 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 28 Mar 2014 23:08:39 +0100 Subject: Add favorite name as export filename token --- Source/SPExportFilenameUtilities.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source') diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m index c056fdf0..d9637e4d 100644 --- a/Source/SPExportFilenameUtilities.m +++ b/Source/SPExportFilenameUtilities.m @@ -80,6 +80,7 @@ NSLocalizedString(@"month", @"export filename date token"), NSLocalizedString(@"day", @"export filename date token"), NSLocalizedString(@"time", @"export filename time token"), + NSLocalizedString(@"favorite", @"export filename favorite name token"), nil]; // Determine whether to remove the table from the tokens list @@ -370,6 +371,9 @@ [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [string appendString:[dateFormatter stringFromDate:[NSDate date]]]; } + else if ([tokenContent isEqualToString:NSLocalizedString(@"favorite", @"export filename favorite name token")]) { + [string appendString:[tableDocumentInstance name]]; + } } else { [string appendString:filenamePart]; -- cgit v1.2.3