21 #import <scl/SCDelegate.h>
22 #import <scl/SCTextDelegateProtocol.h>
25 #pragma mark Константы класса
30 #define SCTextDelegateClass @"SCTextDelegate"
48 #pragma mark Обработка строк
49 - (void)processString:(NSString *)string text:(
SCStrings *)text;
52 #pragma mark Обработка текстовых ошибок
56 #pragma mark События добавления строк
57 - (void)text:(
SCStrings *)text willAddString:(NSString *)string;
58 - (void)text:(
SCStrings *)text willInsertString:(NSString *)string atIndex:(
SCIndex)index;
59 - (void)text:(
SCStrings *)text didFinishAddingString:(NSString *)string;
60 - (void)text:(
SCStrings *)text didFinishInsertingString:(NSString *)string atIndex:(
SCIndex)index;
63 #pragma mark События удаления строк
64 - (void)willRemoveAllStringsFromText:(
SCStrings *)text;
66 - (void)text:(
SCStrings *)text willRemoveString:(NSString *)string;
67 - (void)text:(
SCText *)text willRemoveTextInRange:(NSRange)range;
68 - (void)text:(
SCText *)text willRemoveSubstring:(NSString *)substring;
70 - (void)didFinishRemovingAllStringsFromText:(
SCStrings *)text;
71 - (void)text:(
SCStrings *)text didFinishRemovingStringAtIndex:(
SCIndex)index;
72 - (void)text:(
SCStrings *)text didFinishRemovingString:(NSString *)string;
73 - (void)text:(
SCText *)text didFinishRemovingTextInRange:(NSRange)range;
74 - (void)text:(
SCText *)text didFinishRemovingSubstring:(NSString *)substring;
75 - (void)text:(
SCText *)text didFinishRemovingText:(
SCStrings *)removedText;
78 #pragma mark События сортировки строк
79 - (void)text:(
SCStrings *)text willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
80 - (void)text:(
SCStrings *)text didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
83 #pragma mark События замены строк
84 - (void)text:(
SCStrings *)text willReplaceStringAtIndex:(
SCIndex)index withString:(NSString *)string;
85 - (void)text:(
SCStrings *)text willReplaceString:(NSString *)string withString:(NSString *)newString;
86 - (void)text:(
SCText *)text willReplaceTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
88 - (void)text:(
SCStrings *)text didFinishReplacingStringAtIndex:(
SCIndex)index withString:(NSString *)string;
89 - (void)text:(
SCStrings *)text didFinishReplacingString:(NSString *)string withString:(NSString *)newString;
90 - (void)text:(
SCText *)text didFinishReplacingTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
94 #pragma mark События копирования и перемещения строк
97 - (void)willDuplicateText:(
SCStrings *)text;
98 - (void)text:(
SCText *)text willExchangeTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
99 - (void)text:(
SCStrings *)text didFinishExchangingStringAtIndex:(
SCIndex)index withStringAtIndex:(
SCIndex)destination;
100 - (void)text:(
SCStrings *)text didFinishDuplicatingStringAtIndex:(
SCIndex)index;
101 - (void)didFinishDuplicatingText:(
SCStrings *)text;
102 - (void)text:(
SCText *)text didFinishExchangingTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
105 #pragma mark События чтения и записи файлов
107 - (void)text:(
SCTextFile *)text willReadWithPath:(NSString *)path;
109 - (void)text:(
SCTextFile *)text willWriteWithPath:(NSString *)path;
112 - (void)text:(
SCTextFile *)text didFinishReadingWithPath:(NSString *)path;
114 - (void)text:(
SCTextFile *)text didFinishWritingWithPath:(NSString *)path;
115 - (void)didFinishResettingText:(
SCTextFile *)text;
Text class.
Definition: SCText.h:68
SCULong SCIndex
Index data type.
Definition: SCTypes.h:240
Strings list class.
Definition: SCStrings.h:65
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:37
Text object event handlers class.
Definition: SCTextDelegate.h:45
Parent class of all library delegate classes.
Definition: SCDelegate.h:46
Text file class.
Definition: SCTextFile.h:79
Text objects delegate protocol.
Definition: SCTextDelegateProtocol.h:45
Exception class SCTextException.
Definition: SCTextException.h:194
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:242