1 // 2 // HFLineCountingView.h 3 // HexFiend_2 4 // 5 // Copyright 2007 ridiculous_fish. All rights reserved. 6 // 7 8 #import <Cocoa/Cocoa.h> 9 #import <HexFiend/HFLineCountingRepresenter.h> 10 11 @interface HFLineCountingView : NSView { 12 NSLayoutManager *layoutManager; 13 NSTextStorage *textStorage; 14 NSTextContainer *textContainer; 15 NSDictionary *textAttributes; 16 17 unsigned long long storedLineIndex; 18 NSUInteger storedLineCount; 19 BOOL useStringDrawingPath; 20 BOOL registeredForAppNotifications; 21 } 22 23 @property (nonatomic, copy) NSFont *font; 24 @property (nonatomic) CGFloat lineHeight; 25 @property (nonatomic) HFFPRange lineRangeToDraw; 26 @property (nonatomic) NSUInteger bytesPerLine; 27 @property (nonatomic) HFLineNumberFormat lineNumberFormat; 28 @property (nonatomic, assign) HFLineCountingRepresenter *representer; 29 30 + (NSUInteger)digitsRequiredToDisplayLineNumber:(unsigned long long)lineNumber inFormat:(HFLineNumberFormat)format; 31 32 @end 33