Samond Classes Library 1.1.6-RELEASE build 132

SCTextDelegate.h

Go to the documentation of this file.
00001 //
00002 //  SCTextDelegate.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 <Foundation/Foundation.h>
00017 #import <scl/SCSortingProtocol.h>
00018 #import <scl/SCTypes.h>
00019 
00020 @class SCStrings;
00021 @class SCText;
00022 @class SCTextFile;
00023 @class SCTextException;
00024 
00031 @protocol SCTextDelegate
00032 
00033 @optional
00034 
00035 #pragma mark -
00036 #pragma mark Processing Text Strings
00037 
00044 - (void)processString:(NSString *)string text:(SCStrings *)text;
00045 
00046 #pragma mark -
00047 #pragma mark Processing Text Errors
00048 /* @name Processing Text Errors */
00049 
00056 - (BOOL)text:(SCStrings *)text didDetectException:(SCTextException *)exception;
00057 
00058 #pragma mark -
00059 #pragma mark Strings List Prior Events Methods
00060 
00067 - (void)text:(SCStrings *)text willAddString:(NSString *)string;
00068 
00075 - (void)text:(SCStrings *)text willCopyFromCollection:(id)source;
00076 
00083 - (void)text:(SCStrings *)text willCopyFromList:(SCStrings *)source;
00084 
00090 - (void)text:(SCStrings *)text willCopyFromString:(NSString *)string;
00091 
00096 - (void)willCopyStringsToText:(SCStrings *)text;
00097 
00102 - (void)willRemoveAllStringsFromText:(SCStrings *)text;
00103 
00110 - (void)text:(SCStrings *)text willSortAscending:(BOOL)ascending
00111  usingMethod:(id<SCSortingProtocol>)method;
00112 
00119 - (void)text:(SCStrings *)text willInsertString:(NSString *)string atIndex:(SCIndex)index;
00120 
00126 - (void)text:(SCStrings *)text willRemoveStringAtIndex:(SCIndex)index;
00127 
00133 - (void)text:(SCStrings *)text willRemoveStringsAtIndexes:(NSIndexSet *)indexes;
00134 
00140 - (void)text:(SCStrings *)text willRemoveString:(NSString *)string;
00141 
00149 - (void)text:(SCStrings *)text willReplaceStringAtIndex:(SCIndex)index
00150   withString:(NSString *)string;
00151 
00159 - (void)text:(SCStrings *)text
00160   willReplaceStringsAtIndexes:(NSIndexSet *)indexes
00161   withStringsFromCollection:(id)collection;
00162 
00169 - (void)text:(SCStrings *)text
00170   willExchangeStringAtIndex:(SCIndex)index
00171   withStringAtIndex:(SCIndex)destination;
00172 
00178 - (void)text:(SCStrings *)text willDuplicateStringAtIndex:(SCIndex)index;
00179 
00184 - (void)willDuplicateText:(SCStrings *)text;
00185 
00192 - (void)text:(SCStrings *)text willCopyStringAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
00193 
00200 - (void)text:(SCStrings *)text willMoveStringAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
00201 
00206 - (void)willReverseText:(SCStrings *)text;
00207 
00208 #pragma mark -
00209 #pragma mark Text Prior Events Methods
00210 
00217 - (void)text:(SCText *)text willAddText:(SCText *)addedText;
00218 
00226 - (void)text:(SCText *)text willInsertText:(SCText *)insertedText atIndex:(SCIndex)index;
00227 
00233 - (void)text:(SCText *)text willRemoveTextInRange:(NSRange)range;
00234 
00240 - (void)text:(SCText *)text willRemoveTextFromIndex:(SCIndex)index;
00241 
00247 - (void)text:(SCText *)text willRemoveTextToIndex:(SCIndex)index;
00248 
00254 - (void)text:(SCText *)text willRemoveSubstring:(NSString *)substring;
00255 
00263 - (void)text:(SCText *)text willReplaceTextInRange:(NSRange)range withText:(SCText *)ntext;
00264 
00272 - (void)text:(SCText *)text willReplaceTextFromIndex:(SCIndex)index withText:(SCText *)ntext;
00273 
00281 - (void)text:(SCText *)text willReplaceTextToIndex:(SCIndex)index withText:(SCText *)ntext;
00282 
00290 - (void)text:(SCText *)text willExchangeTextInRange:(NSRange)src withTextInRange:(NSRange)dst;
00291 
00297 - (void)text:(SCText *)text willDuplicateTextInRange:(NSRange)range;
00298 
00304 - (void)text:(SCText *)text willDuplicateTextFromIndex:(SCIndex)index;
00305 
00311 - (void)text:(SCText *)text willDuplicateTextToIndex:(SCIndex)index;
00312 
00319 - (void)text:(SCText *)text willDuplicateStringsInRange:(NSRange)range;
00320 
00327 - (void)text:(SCText *)text willDuplicateStringsFromIndex:(SCIndex)index;
00328 
00335 - (void)text:(SCText *)text willDuplicateStringsToIndex:(SCIndex)index;
00336 
00344 - (void)text:(SCText *)text willCopyTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00345 
00353 - (void)text:(SCText *)text willCopyTextFromIndex:(SCIndex)source toIndex:(SCIndex)destination;
00354 
00362 - (void)text:(SCText *)text willCopyTextToIndex:(SCIndex)source toIndex:(SCIndex)destination;
00363 
00371 - (void)text:(SCText *)text willMoveTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00372 
00380 - (void)text:(SCText *)text willMoveTextFromIndex:(SCIndex)index toIndex:(SCIndex)destination;
00381 
00389 - (void)text:(SCText *)text willMoveTextToIndex:(SCIndex)index toIndex:(SCIndex)destination;
00390 
00391 #pragma mark -
00392 #pragma mark Text File Prior Events Methods
00393 
00401 - (void)text:(SCTextFile *)text willLoadFromStream:(SCStream *)stream;
00402 
00409 - (void)text:(SCTextFile *)text willLoadWithPath:(NSString *)path;
00410 
00417 - (void)text:(SCTextFile *)text willSaveToStream:(SCStream *)stream;
00418 
00425 - (void)text:(SCTextFile *)text willSaveWithPath:(NSString *)path;
00426 
00433 - (void)text:(SCTextFile *)text willAppendToFileWithPath:(NSString *)path;
00434 
00440 - (void)text:(SCTextFile *)text willAddTextFromStream:(SCStream *)stream;
00441 
00448 - (void)text:(SCTextFile *)text willAddTextWithPath:(NSString *)path;
00449 
00457 - (void)text:(SCTextFile *)text willInsertTextFromStream:(SCStream *)stream atIndex:(SCIndex)index;
00458 
00466 - (void)text:(SCTextFile *)text willInsertTextWithPath:(NSString *)path atIndex:(SCIndex)index;
00467 
00475 - (void)text:(SCTextFile *)text willReplaceInRange:(NSRange)range fromStream:(SCStream *)stream;
00476 
00484 - (void)text:(SCTextFile *)text willReplaceInRange:(NSRange)range withPath:(NSString *)path;
00485 
00493 - (void)text:(SCTextFile *)text willSaveInRange:(NSRange)range toStream:(SCStream *)stream;
00494 
00502 - (void)text:(SCTextFile *)text willSaveInRange:(NSRange)range withPath:(NSString *)path;
00503 
00511 - (void)text:(SCTextFile *)text willAppendInRange:(NSRange)range withPath:(NSString *)path;
00512 
00520 - (void)text:(SCTextFile *)text willCutInRange:(NSRange)range toStream:(SCStream *)stream;
00521 
00529 - (void)text:(SCTextFile *)text willCutInRange:(NSRange)range withPath:(NSString *)path;
00530 
00538 - (void)text:(SCTextFile *)text willCutAndAppendInRange:(NSRange)range withPath:(NSString *)path;
00539 
00544 - (void)willResetText:(SCTextFile *)text;
00545 
00546 #pragma mark -
00547 #pragma mark Strings List Completed Events Methods
00548 
00555 - (void)text:(SCStrings *)text didFinishAddingString:(NSString *)string;
00556 
00563 - (void)text:(SCStrings *)text didFinishCopyingFromCollection:(id)source;
00564 
00571 - (void)text:(SCStrings *)text didFinishCopyingFromList:(SCStrings *)source;
00572 
00578 - (void)text:(SCStrings *)text didFinishCopyingFromString:(NSString *)string;
00579 
00584 - (void)didFinishCopyingStringsToText:(SCStrings *)text;
00585 
00590 - (void)didFinishRemovingAllObjectsFromText:(SCStrings *)text;
00591 
00598 - (void)text:(SCStrings *)text didFinishSortingAscending:(BOOL)ascending
00599  usingMethod:(id<SCSortingProtocol>)method;
00600 
00607 - (void)text:(SCStrings *)text didFinishInsertingString:(NSString *)string atIndex:(SCIndex)index;
00608 
00614 - (void)text:(SCStrings *)text didFinishRemovingStringAtIndex:(SCIndex)index;
00615 
00621 - (void)text:(SCStrings *)text didFinishRemovingStringsAtIndexes:(NSIndexSet *)indexes;
00622 
00628 - (void)text:(SCStrings *)text didFinishRemovingString:(NSString *)string;
00629 
00637 - (void)text:(SCStrings *)text didFinishReplacingStringAtIndex:(SCIndex)index
00638   withString:(NSString *)string;
00639 
00647 - (void)text:(SCStrings *)text
00648   didFinishReplacingStringsAtIndexes:(NSIndexSet *)indexes
00649   withStringsFromCollection:(id)collection;
00650 
00657 - (void)text:(SCStrings *)text
00658   didFinishExchangingStringAtIndex:(SCIndex)index
00659   withStringAtIndex:(SCIndex)destination;
00660 
00666 - (void)text:(SCStrings *)text didFinishDuplicatingStringAtIndex:(SCIndex)index;
00667 
00672 - (void)didFinishDuplicatingText:(SCStrings *)text;
00673 
00681 - (void)text:(SCStrings *)text didFinishCopyingStringAtIndex:(SCIndex)index
00682          toIndex:(SCIndex)destination;
00683 
00691 - (void)text:(SCStrings *)text didFinishMovingStringAtIndex:(SCIndex)index
00692          toIndex:(SCIndex)destination;
00693 
00698 - (void)didFinishReversingText:(SCStrings *)text;
00699 
00700 #pragma mark -
00701 #pragma mark Text Completed Events Methods
00702 
00709 - (void)text:(SCText *)text didFinishAddingText:(SCText *)addedText;
00710 
00718 - (void)text:(SCText *)text didFinishInsertingText:(SCText *)insertedText atIndex:(SCIndex)index;
00719 
00726 - (void)text:(SCText *)text didFinishRemovingTextInRange:(NSRange)range;
00727 
00734 - (void)text:(SCText *)text didFinishRemovingTextFromIndex:(SCIndex)index;
00735 
00742 - (void)text:(SCText *)text didFinishRemovingTextToIndex:(SCIndex)index;
00743 
00749 - (void)text:(SCText *)text didFinishRemovingSubstring:(NSString *)substring;
00750 
00758 - (void)text:(SCText *)text didFinishReplacingTextInRange:(NSRange)range withText:(SCText *)ntext;
00759 
00767 - (void)text:(SCText *)text didFinishReplacingTextFromIndex:(SCIndex)index withText:(SCText *)ntext;
00768 
00776 - (void)text:(SCText *)text didFinishReplacingTextToIndex:(SCIndex)index withText:(SCText *)ntext;
00777 
00785 - (void)text:(SCText *)text didFinishExchangingTextInRange:(NSRange)src withTextInRange:(NSRange)ds;
00786 
00792 - (void)text:(SCText *)text didFinishDuplicatingTextInRange:(NSRange)range;
00793 
00799 - (void)text:(SCText *)text didFinishDuplicatingTextFromIndex:(SCIndex)index;
00800 
00806 - (void)text:(SCText *)text didFinishDuplicatingTextToIndex:(SCIndex)index;
00807 
00813 - (void)text:(SCText *)text didFinishDuplicatingStringsInRange:(NSRange)range;
00814 
00821 - (void)text:(SCText *)text didFinishDuplicatingStringsFromIndex:(SCIndex)index;
00822 
00828 - (void)text:(SCText *)text didFinishDuplicatingStringsToIndex:(SCIndex)index;
00829 
00837 - (void)text:(SCText *)text didFinishCopyingTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00838 
00846 - (void)text:(SCText *)text didFinishCopyingTextFromIndex:(SCIndex)source toIndex:(SCIndex)dst;
00847 
00855 - (void)text:(SCText *)text didFinishCopyingTextToIndex:(SCIndex)source toIndex:(SCIndex)dst;
00856 
00864 - (void)text:(SCText *)text didFinishMovingTextInRange:(NSRange)range toIndex:(SCIndex)destination;
00865 
00873 - (void)text:(SCText *)text didFinishMovingTextFromIndex:(SCIndex)index toIndex:(SCIndex)dst;
00874 
00882 - (void)text:(SCText *)text didFinishMovingTextToIndex:(SCIndex)index toIndex:(SCIndex)destination;
00883 
00884 #pragma mark -
00885 #pragma mark Text File Completed Events Methods
00886 
00893 - (void)text:(SCTextFile *)text didFinishLoadingFromStream:(SCStream *)stream;
00894 
00901 - (void)text:(SCTextFile *)text didFinishLoadingWithPath:(NSString *)path;
00902 
00909 - (void)text:(SCTextFile *)text didFinishSavingToStream:(SCStream *)stream;
00910 
00917 - (void)text:(SCTextFile *)text didFinishSavingWithPath:(NSString *)path;
00918 
00925 - (void)text:(SCTextFile *)text didFinishAppendingToFileWithPath:(NSString *)path;
00926 
00934 - (void)text:(SCTextFile *)text didFinishAddingText:(SCTextFile *)add fromStream:(SCStream *)stream;
00935 
00943 - (void)text:(SCTextFile *)text didFinishAddingText:(SCTextFile *)add withPath:(NSString *)path;
00944 
00953 - (void)text:(SCTextFile *)text didFinishInsertingText:(SCTextFile *)add
00954   fromStream:(SCStream *)stream atIndex:(SCIndex)index;
00955 
00964 - (void)text:(SCTextFile *)text didFinishInsertingText:(SCTextFile *)add
00965         withPath:(NSString *)path atIndex:(SCIndex)index;
00966 
00975 - (void)text:(SCTextFile *)text didFinishReplacingInRange:(NSRange)range text:(SCTextFile *)add
00976   fromStream:(SCStream *)stream;
00977 
00986 - (void)text:(SCTextFile *)text didFinishReplacingInRange:(NSRange)range text:(SCTextFile *)add
00987         withPath:(NSString *)path;
00988 
00996 - (void)text:(SCTextFile *)text didFinishSavingInRange:(NSRange)range toStream:(SCStream *)stream;
00997 
01005 - (void)text:(SCTextFile *)text didFinishSavingInRange:(NSRange)range withPath:(NSString *)path;
01006 
01014 - (void)text:(SCTextFile *)text didFinishAppendingInRange:(NSRange)range withPath:(NSString *)path;
01015 
01023 - (void)text:(SCTextFile *)text didFinishCuttingInRange:(NSRange)range toStream:(SCStream *)stream;
01024 
01032 - (void)text:(SCTextFile *)text didFinishCuttingInRange:(NSRange)range withPath:(NSString *)path;
01033 
01041 - (void)text:(SCTextFile *)text didFinishCuttingAndAppendingInRange:(NSRange)range
01042         withPath:(NSString *)path;
01043 
01048 - (void)didFinishResettingText:(SCTextFile *)text;
01049 
01050 @end
 All Classes Files Functions Typedefs Enumerations Enumerator Defines