- 'encoding' defaults to 'utf-8' in $VIM/gvimrc
[MacVim/jjgod.git] / MMTextStorage.h
blob50f3e6d10bac115cbc32a354f8581241a2e2d3f1
1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
3 * VIM - Vi IMproved by Bram Moolenaar
4 * MacVim GUI port by Bjorn Winckler
6 * Do ":help uganda" in Vim to read copying and usage conditions.
7 * Do ":help credits" in Vim to see a list of people who contributed.
8 * See README.txt for an overview of the Vim source code.
9 */
11 #import <Cocoa/Cocoa.h>
16 @interface MMTextStorage : NSTextStorage {
17 NSMutableAttributedString *attribString;
18 int maxRows, maxColumns;
19 int actualRows, actualColumns;
20 NSAttributedString *emptyRowString;
21 NSFont *font;
22 NSFont *boldFont;
23 NSFont *italicFont;
24 NSFont *boldItalicFont;
25 NSColor *defaultBackgroundColor;
26 NSColor *defaultForegroundColor;
27 NSSize cellSize;
28 float linespace;
31 - (NSString *)string;
32 - (NSDictionary *)attributesAtIndex:(unsigned)index
33 effectiveRange:(NSRangePointer)aRange;
34 - (void)replaceCharactersInRange:(NSRange)aRange
35 withString:(NSString *)aString;
36 - (void)setAttributes:(NSDictionary *)attributes range:(NSRange)aRange;
38 - (int)maxRows;
39 - (int)maxColumns;
40 - (int)actualRows;
41 - (int)actualColumns;
42 - (float)linespace;
43 - (void)setLinespace:(float)newLinespace;
44 - (void)getMaxRows:(int*)rows columns:(int*)cols;
45 - (void)setMaxRows:(int)rows columns:(int)cols;
46 - (void)replaceString:(NSString *)string atRow:(int)row column:(int)col
47 withFlags:(int)flags foregroundColor:(NSColor *)fg
48 backgroundColor:(NSColor *)bg specialColor:(NSColor *)sp;
49 - (void)deleteLinesFromRow:(int)row lineCount:(int)count
50 scrollBottom:(int)bottom left:(int)left right:(int)right
51 color:(NSColor *)color;
52 - (void)insertLinesAtRow:(int)row lineCount:(int)count
53 scrollBottom:(int)bottom left:(int)left right:(int)right
54 color:(NSColor *)color;
55 - (void)clearBlockFromRow:(int)row1 column:(int)col1 toRow:(int)row2
56 column:(int)col2 color:(NSColor *)color;
57 - (void)clearAll;
58 - (void)setDefaultColorsBackground:(NSColor *)bgColor
59 foreground:(NSColor *)fgColor;
60 - (void)setFont:(NSFont *)newFont;
61 - (NSFont *)font;
62 - (NSColor *)defaultBackgroundColor;
63 - (NSColor *)defaultForegroundColor;
64 - (NSSize)size;
65 - (NSSize)cellSize;
66 - (NSRect)rectForRowsInRange:(NSRange)range;
67 - (NSRect)rectForColumnsInRange:(NSRange)range;
68 - (unsigned)characterIndexForRow:(int)row column:(int)col;
69 - (BOOL)resizeToFitSize:(NSSize)size;
70 - (NSSize)fitToSize:(NSSize)size;
71 - (NSSize)fitToSize:(NSSize)size rows:(int *)rows columns:(int *)columns;
73 @end