From a8dc3ac2af642fb59c8fbed12c3a28038ef3a175 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 18 Mar 2010 00:34:29 +0000 Subject: Present a warning to the user when attempting to print the current table's content view which exceeds a set number of rows. This number is currently set to 1000 which can be changed via the hidden preference key 'PrintWarningRowLimit'. The approach to cancelling the print HTML generation thread may also need to be re-implemented to ensure that it is killed straight away, something that is currently not possible using NSThread. Rowan suggested using pthreads instead, but this should be discussed in terms of potential memory leaks and stability. --- Source/SPConstants.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/SPConstants.m') diff --git a/Source/SPConstants.m b/Source/SPConstants.m index 7db91664..1b34b1c7 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -57,7 +57,6 @@ NSString *SPDefaultEncoding = @"DefaultEncoding"; NSString *SPUseMonospacedFonts = @"UseMonospacedFonts"; NSString *SPDisplayTableViewVerticalGridlines = @"DisplayTableViewVerticalGridlines"; NSString *SPCustomQueryMaxHistoryItems = @"CustomQueryMaxHistoryItems"; -NSString *SPDisplayServerVersionInWindowTitle = @"DisplayServerVersionInWindowTitle"; // Tables Prefpane NSString *SPReloadAfterAddingRow = @"ReloadAfterAddingRow"; @@ -124,6 +123,10 @@ NSString *SPEditInSheetEnabled = @"EditInSheetEnabled"; NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollapsed"; NSString *SPTableColumnWidths = @"tableColumnWidths"; +// Hidden Prefs +NSString *SPPrintWarningRowLimit = @"PrintWarningRowLimit"; +NSString *SPDisplayServerVersionInWindowTitle = @"DisplayServerVersionInWindowTitle"; + // Import NSString *SPCSVImportFieldEnclosedBy = @"CSVImportFieldEnclosedBy"; NSString *SPCSVImportFieldEscapeCharacter = @"CSVImportFieldEscapeCharacter"; -- cgit v1.2.3