00001
00014 #ifndef CTEXT_H_INCLUDED
00015 #define CTEXT_H_INCLUDED
00016
00017 #include <Coconut/coconut-sysdep.h>
00018
00024 @interface CText : NSObject
00025 {
00027 NSMutableArray * line_array ;
00028 }
00029
00037 - init ;
00038
00046 - initWithString: (NSString *) str ;
00047
00053 - (void) dealloc ;
00054
00061 - (uint_t) lineNum ;
00062
00071 - (NSString *) lineAtIndex: (uint_t) index ;
00072
00084 - (void) appendLine: (NSString *) src ;
00085
00094 - (void) appendSomeLines: (NSString *) src ;
00095
00108 - (void) prependLine: (NSString *) src ;
00109
00118 - (void) prependSomeLines: (NSString *) src ;
00119
00126 - (uint_t) width ;
00127
00134 - (void) print: (FILE *) outfp ;
00135
00144 - (CText *) paste: (CText *) text ;
00145
00146 @end
00147
00148 #endif
00149