diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-16 19:22:17 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-16 19:22:17 +0000 |
commit | 1ef653b918ddd53d6e54d4e1923b217f8b555080 (patch) | |
tree | fbc1d58a5c7efa6384a1847d0601c52a5fa018a8 /Source/SPCopyTable.h | |
parent | 422c1a7b2ad474e8bef20e787bca44b954d1e2ef (diff) | |
download | sequelpro-1ef653b918ddd53d6e54d4e1923b217f8b555080.tar.gz sequelpro-1ef653b918ddd53d6e54d4e1923b217f8b555080.tar.bz2 sequelpro-1ef653b918ddd53d6e54d4e1923b217f8b555080.zip |
• Bundle Support
- improved Data Table input commands SelectedTableRowsAsTab/Csv/SqlInsert, TableRowsAsTab/Csv/SqlInsert
• fixed issue for Copy with Column Names: removed ?\020last appended tab in header line
Diffstat (limited to 'Source/SPCopyTable.h')
-rw-r--r-- | Source/SPCopyTable.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Source/SPCopyTable.h b/Source/SPCopyTable.h index 22e6f15c..d46caf02 100644 --- a/Source/SPCopyTable.h +++ b/Source/SPCopyTable.h @@ -82,21 +82,32 @@ - (NSUInteger)draggingSourceOperationMaskForLocal:(BOOL)isLocal; /*! - @method selectedRowsAsTabStringWithHeaders - @abstract getter of the selected rows of the table for copy - @discussion For the selected rows returns a single string with each row + @method rowsAsTabStringWithHeaders:onlySelectedRows: + @abstract getter of the selected rows or all of the table for copy + @discussion For the selected rows or all returns a single string with each row separated by a newline and then for each column value separated by a tab. Values are from the objects description method, so make sure it returns something meaningful. @result The above described string, or nil if nothing selected */ -- (NSString *)selectedRowsAsTabStringWithHeaders:(BOOL)withHeaders; +- (NSString *)rowsAsTabStringWithHeaders:(BOOL)withHeaders onlySelectedRows:(BOOL)onlySelected; + +/*! + @method rowsAsCsvStringWithHeaders:onlySelectedRows: + @abstract getter of the selected rows or all of the table csv formatted + @discussion For the selected rows or all returns a single string with each row + separated by a newline and then for each column value separated by a + , wherby each cell will be wrapped into quotes. Values are from the objects description method, so make sure it + returns something meaningful. + @result The above described string, or nil if nothing selected +*/ +- (NSString *)rowsAsCsvStringWithHeaders:(BOOL)withHeaders onlySelectedRows:(BOOL)onlySelected; /* * Generate a string in form of INSERT INTO <table> VALUES () of - * currently selected rows. Support blob data as well. + * currently selected rows or all. Support blob data as well. */ -- (NSString *)selectedRowsAsSqlInserts; +- (NSString *)rowsAsSqlInsertsOnlySelectedRows:(BOOL)onlySelected; /* * Set all necessary data from the table content view. |