Samond Classes Library 1.1.6-RELEASE build 132

SCTextDelegateObject.h

Go to the documentation of this file.
00001 //
00002 //  SCTextDelegateObject.h
00003 //  scl
00004 //
00005 //  Created by Viacheslav Smolensky on 05.02.13.
00006 //  Copyright (c) 2007 - 2014 by Samond Development Corporation. All rights reserved.
00007 //
00008 
00016 #import <scl/SCDelegateObject.h>
00017 #import <scl/SCTextDelegate.h>
00018 
00019 #define SCTextDelegateObjectClass  @"SCTextDelegateObject" ///< SCTextDelegateObject class name
00020 
00027 @interface SCTextDelegateObject : SCDelegateObject <SCTextDelegate> {
00028 
00029 }
00030 
00031 #pragma mark -
00032 #pragma mark Processing Text Strings
00033 
00039 - (void)processString:(NSString *)string text:(SCStrings *)text;
00040 
00041 #pragma mark -
00042 #pragma mark Processing Text Errors
00043 
00050 - (BOOL)text:(SCStrings *)text didDetectException:(SCTextException *)exception;
00051 
00052 #pragma mark -
00053 #pragma mark Strings List Prior Events Methods
00054 
00060 - (void)text:(SCStrings *)text willAddString:(NSString *)string;
00061 
00068 - (void)text:(SCStrings *)text willCopyFromCollection:(id)source;
00069 
00076 - (void)text:(SCStrings *)text willCopyFromList:(SCStrings *)source;
00077 
00083 - (void)text:(SCStrings *)text willCopyFromString:(NSString *)string;
00084 
00089 - (void)willCopyStringsToText:(SCStrings *)text;
00090 
00095 - (void)willRemoveAllStringsFromText:(SCStrings *)text;
00096 
00103 - (void)text:(SCStrings *)text willSortAscending:(BOOL)ascending
00104  usingMethod:(id<SCSortingProtocol>)method;
00105 
00112 - (void)text:(SCStrings *)text willInsertString:(NSString *)string atIndex:(SCIndex)index;
00113 
00119 - (void)text:(SCStrings *)text willRemoveStringAtIndex:(SCIndex)index;
00120 
00126 - (void)text:(SCStrings *)text willRemoveStringsAtIndexes:(NSIndexSet *)indexes;
00127 
00133 - (void)text:(SCStrings *)text willRemoveString:(NSString *)string;
00134 
00142 - (void)text:(SCStrings *)text willReplaceStringAtIndex:(SCIndex)index
00143   withString:(NSString *)string;
00144 
00152 - (void)text:(SCStrings *)text
00153   willReplaceStringsAtIndexes:(NSIndexSet *)indexes
00154   withStringsFromCollection:(id)collection;
00155 
00162 - (void)text:(SCStrings *)text
00163   willExchangeStringAtIndex:(SCIndex)index
00164   withStringAtIndex:(SCIndex)destination;
00165 
00171 - (void)text:(SCStrings *)text willDuplicateStringAtIndex:(SCIndex)index;
00172 
00177 - (void)willDuplicateText:(SCStrings *)text;
00178 
00185 - (void)text:(SCStrings *)text willCopyStringAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
00186 
00193 - (void)text:(SCStrings *)text willMoveStringAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
00194 
00199 - (void)willReverseText:(SCStrings *)text;
00200 
00201 #pragma mark -
00202 #pragma mark Text Prior Events Methods
00203 
00209 - (void)text:(SCText *)text willAddText:(SCText *)addedText;
00210 
00218 - (void)text:(SCText *)text willInsertText:(SCText *)insertedText atIndex:(SCIndex)index;
00219 
00225 - (void)text:(SCText *)text willRemoveTextInRange:(NSRange)range;
00226 
00232 - (void)text:(SCText *)text willRemoveTextFromIndex:(SCIndex)index;
00233 
00239 - (void)text:(SCText *)text willRemoveTextToIndex:(SCIndex)index;
00240 
00246 - (void)text:(SCText *)text willRemoveSubstring:(NSString *)substring;
00247 
00255 - (void)text:(SCText *)text willReplaceTextInRange:(NSRange)range withText:(SCText *)ntext;
00256 
00264 - (void)text:(SCText *)text willReplaceTextFromIndex:(SCIndex)index withText:(SCText *)ntext;
00265 
00273 - (void)text:(SCText *)text willReplaceTextToIndex:(SCIndex)index withText:(SCText *)ntext;
00274 
00282 - (void)text:(SCText *)text willExchangeTextInRange:(NSRange)src withTextInRange:(NSRange)dst;
00283 
00289 - (void)text:(SCText *)text willDuplicateTextInRange:(NSRange)range;
00290 
00296 - (void)text:(SCText *)text willDuplicateTextFromIndex:(SCIndex)index;
00297 
00303 - (void)text:(SCText *)text willDuplicateTextToIndex:(SCIndex)index;
00304 
00311 - (void)text:(SCText *)text willDuplicateStringsInRange:(NSRange)range;
00312 
00319 - (void)text:(SCText *)text willDuplicateStringsFromIndex:(SCIndex)index;
00320 
00327 - (void)text:(SCText *)text willDuplicateStringsToIndex:(SCIndex)index;
00328 
00336 - (void)text:(SCText *)text willCopyTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00337 
00345 - (void)text:(SCText *)text willCopyTextFromIndex:(SCIndex)source toIndex:(SCIndex)destination;
00346 
00354 - (void)text:(SCText *)text willCopyTextToIndex:(SCIndex)source toIndex:(SCIndex)destination;
00355 
00363 - (void)text:(SCText *)text willMoveTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00364 
00372 - (void)text:(SCText *)text willMoveTextFromIndex:(SCIndex)index toIndex:(SCIndex)destination;
00373 
00381 - (void)text:(SCText *)text willMoveTextToIndex:(SCIndex)index toIndex:(SCIndex)destination;
00382 
00383 #pragma mark -
00384 #pragma mark Text File Prior Events Methods
00385 
00392 - (void)text:(SCTextFile *)text willLoadFromStream:(SCStream *)stream;
00393 
00400 - (void)text:(SCTextFile *)text willLoadWithPath:(NSString *)path;
00401 
00408 - (void)text:(SCTextFile *)text willSaveToStream:(SCStream *)stream;
00409 
00416 - (void)text:(SCTextFile *)text willSaveWithPath:(NSString *)path;
00417 
00424 - (void)text:(SCTextFile *)text willAppendToFileWithPath:(NSString *)path;
00425 
00431 - (void)text:(SCTextFile *)text willAddTextFromStream:(SCStream *)stream;
00432 
00439 - (void)text:(SCTextFile *)text willAddTextWithPath:(NSString *)path;
00440 
00448 - (void)text:(SCTextFile *)text willInsertTextFromStream:(SCStream *)stream atIndex:(SCIndex)index;
00449 
00457 - (void)text:(SCTextFile *)text willInsertTextWithPath:(NSString *)path atIndex:(SCIndex)index;
00458 
00466 - (void)text:(SCTextFile *)text willReplaceInRange:(NSRange)range fromStream:(SCStream *)stream;
00467 
00475 - (void)text:(SCTextFile *)text willReplaceInRange:(NSRange)range withPath:(NSString *)path;
00476 
00484 - (void)text:(SCTextFile *)text willSaveInRange:(NSRange)range toStream:(SCStream *)stream;
00485 
00493 - (void)text:(SCTextFile *)text willSaveInRange:(NSRange)range withPath:(NSString *)path;
00494 
00502 - (void)text:(SCTextFile *)text willAppendInRange:(NSRange)range withPath:(NSString *)path;
00503 
00511 - (void)text:(SCTextFile *)text willCutInRange:(NSRange)range toStream:(SCStream *)stream;
00512 
00520 - (void)text:(SCTextFile *)text willCutInRange:(NSRange)range withPath:(NSString *)path;
00521 
00529 - (void)text:(SCTextFile *)text willCutAndAppendInRange:(NSRange)range withPath:(NSString *)path;
00530 
00535 - (void)willResetText:(SCTextFile *)text;
00536 
00537 #pragma mark -
00538 #pragma mark Strings List Completed Events Methods
00539 
00545 - (void)text:(SCStrings *)text didFinishAddingString:(NSString *)string;
00546 
00553 - (void)text:(SCStrings *)text didFinishCopyingFromCollection:(id)source;
00554 
00561 - (void)text:(SCStrings *)text didFinishCopyingFromList:(SCStrings *)source;
00562 
00568 - (void)text:(SCStrings *)text didFinishCopyingFromString:(NSString *)string;
00569 
00574 - (void)didFinishCopyingStringsToText:(SCStrings *)text;
00575 
00580 - (void)didFinishRemovingAllObjectsFromText:(SCStrings *)text;
00581 
00588 - (void)text:(SCStrings *)text didFinishSortingAscending:(BOOL)ascending
00589  usingMethod:(id<SCSortingProtocol>)method;
00590 
00597 - (void)text:(SCStrings *)text didFinishInsertingString:(NSString *)string atIndex:(SCIndex)index;
00598 
00604 - (void)text:(SCStrings *)text didFinishRemovingStringAtIndex:(SCIndex)index;
00605 
00611 - (void)text:(SCStrings *)text didFinishRemovingStringsAtIndexes:(NSIndexSet *)indexes;
00612 
00618 - (void)text:(SCStrings *)text didFinishRemovingString:(NSString *)string;
00619 
00627 - (void)text:(SCStrings *)text didFinishReplacingStringAtIndex:(SCIndex)index
00628   withString:(NSString *)string;
00629 
00637 - (void)text:(SCStrings *)text
00638   didFinishReplacingStringsAtIndexes:(NSIndexSet *)indexes
00639   withStringsFromCollection:(id)collection;
00640 
00647 - (void)text:(SCStrings *)text
00648   didFinishExchangingStringAtIndex:(SCIndex)index
00649   withStringAtIndex:(SCIndex)destination;
00650 
00656 - (void)text:(SCStrings *)text didFinishDuplicatingStringAtIndex:(SCIndex)index;
00657 
00662 - (void)didFinishDuplicatingText:(SCStrings *)text;
00663 
00671 - (void)text:(SCStrings *)text didFinishCopyingStringAtIndex:(SCIndex)index
00672          toIndex:(SCIndex)destination;
00673 
00681 - (void)text:(SCStrings *)text didFinishMovingStringAtIndex:(SCIndex)index
00682          toIndex:(SCIndex)destination;
00683 
00688 - (void)didFinishReversingText:(SCStrings *)text;
00689 
00690 #pragma mark -
00691 #pragma mark Text Completed Events Methods
00692 
00698 - (void)text:(SCText *)text didFinishAddingText:(SCText *)addedText;
00699 
00707 - (void)text:(SCText *)text didFinishInsertingText:(SCText *)insertedText atIndex:(SCIndex)index;
00708 
00715 - (void)text:(SCText *)text didFinishRemovingTextInRange:(NSRange)range;
00716 
00723 - (void)text:(SCText *)text didFinishRemovingTextFromIndex:(SCIndex)index;
00724 
00731 - (void)text:(SCText *)text didFinishRemovingTextToIndex:(SCIndex)index;
00732 
00738 - (void)text:(SCText *)text didFinishRemovingSubstring:(NSString *)substring;
00739 
00747 - (void)text:(SCText *)text didFinishReplacingTextInRange:(NSRange)range withText:(SCText *)ntext;
00748 
00756 - (void)text:(SCText *)text didFinishReplacingTextFromIndex:(SCIndex)index withText:(SCText *)ntext;
00757 
00765 - (void)text:(SCText *)text didFinishReplacingTextToIndex:(SCIndex)index withText:(SCText *)ntext;
00766 
00774 - (void)text:(SCText *)text didFinishExchangingTextInRange:(NSRange)src withTextInRange:(NSRange)ds;
00775 
00781 - (void)text:(SCText *)text didFinishDuplicatingTextInRange:(NSRange)range;
00782 
00788 - (void)text:(SCText *)text didFinishDuplicatingTextFromIndex:(SCIndex)index;
00789 
00795 - (void)text:(SCText *)text didFinishDuplicatingTextToIndex:(SCIndex)index;
00796 
00802 - (void)text:(SCText *)text didFinishDuplicatingStringsInRange:(NSRange)range;
00803 
00810 - (void)text:(SCText *)text didFinishDuplicatingStringsFromIndex:(SCIndex)index;
00811 
00817 - (void)text:(SCText *)text didFinishDuplicatingStringsToIndex:(SCIndex)index;
00818 
00826 - (void)text:(SCText *)text didFinishCopyingTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00827 
00835 - (void)text:(SCText *)text didFinishCopyingTextFromIndex:(SCIndex)source toIndex:(SCIndex)dst;
00836 
00844 - (void)text:(SCText *)text didFinishCopyingTextToIndex:(SCIndex)source toIndex:(SCIndex)dst;
00845 
00853 - (void)text:(SCText *)text didFinishMovingTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00854 
00862 - (void)text:(SCText *)text didFinishMovingTextFromIndex:(SCIndex)index toIndex:(SCIndex)dst;
00863 
00871 - (void)text:(SCText *)text didFinishMovingTextToIndex:(SCIndex)index toIndex:(SCIndex)destination;
00872 
00873 #pragma mark -
00874 #pragma mark Text File Completed Events Methods
00875 
00881 - (void)text:(SCTextFile *)text didFinishLoadingFromStream:(SCStream *)stream;
00882 
00889 - (void)text:(SCTextFile *)text didFinishLoadingWithPath:(NSString *)path;
00890 
00897 - (void)text:(SCTextFile *)text didFinishSavingToStream:(SCStream *)stream;
00898 
00905 - (void)text:(SCTextFile *)text didFinishSavingWithPath:(NSString *)path;
00906 
00913 - (void)text:(SCTextFile *)text didFinishAppendingToFileWithPath:(NSString *)path;
00914 
00922 - (void)text:(SCTextFile *)text didFinishAddingText:(SCTextFile *)add fromStream:(SCStream *)stream;
00923 
00931 - (void)text:(SCTextFile *)text didFinishAddingText:(SCTextFile *)add withPath:(NSString *)path;
00932 
00941 - (void)text:(SCTextFile *)text didFinishInsertingText:(SCTextFile *)add
00942   fromStream:(SCStream *)stream atIndex:(SCIndex)index;
00943 
00952 - (void)text:(SCTextFile *)text didFinishInsertingText:(SCTextFile *)add
00953         withPath:(NSString *)path atIndex:(SCIndex)index;
00954 
00963 - (void)text:(SCTextFile *)text didFinishReplacingInRange:(NSRange)range text:(SCTextFile *)add
00964   fromStream:(SCStream *)stream;
00965 
00974 - (void)text:(SCTextFile *)text didFinishReplacingInRange:(NSRange)range text:(SCTextFile *)add
00975         withPath:(NSString *)path;
00976 
00984 - (void)text:(SCTextFile *)text didFinishSavingInRange:(NSRange)range toStream:(SCStream *)stream;
00985 
00993 - (void)text:(SCTextFile *)text didFinishSavingInRange:(NSRange)range withPath:(NSString *)path;
00994 
01002 - (void)text:(SCTextFile *)text didFinishAppendingInRange:(NSRange)range withPath:(NSString *)path;
01003 
01011 - (void)text:(SCTextFile *)text didFinishCuttingInRange:(NSRange)range toStream:(SCStream *)stream;
01012 
01020 - (void)text:(SCTextFile *)text didFinishCuttingInRange:(NSRange)range withPath:(NSString *)path;
01021 
01029 - (void)text:(SCTextFile *)text didFinishCuttingAndAppendingInRange:(NSRange)range
01030         withPath:(NSString *)path;
01031 
01036 - (void)didFinishResettingText:(SCTextFile *)text;
01037 
01038 @end
 All Classes Files Functions Typedefs Enumerations Enumerator Defines