-
Notifications
You must be signed in to change notification settings - Fork 2
/
DataView.h
58 lines (52 loc) · 1.51 KB
/
DataView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// DataView.h
// Pipe
//
// Created by RenŽ Puls on 27.02.05.
// Copyright 2005 RenŽ Puls. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern NSString * const DataViewDidChangeContentViewNotification;
typedef enum {
DataViewDefaultContentType = 0,
DataViewTextContentType = 1,
DataViewImageContentType = 2,
DataViewWebContentType = 3
} DataViewContentType;
@class DataControlView;
@interface DataView : NSView {
id delegate;
DataViewContentType contentType;
NSView *contentView;
DataControlView *controlView;
NSData *data;
NSStringEncoding dataStringEncoding;
NSWritingDirection baseWritingDirection;
BOOL isEditable;
BOOL isControlViewVisible;
}
- (id)delegate;
- (void)setDelegate:(id)newDelegate;
- (DataControlView *)controlView;
- (BOOL)isControlViewVisible;
- (void)setControlViewVisible:(BOOL)flag;
- (NSData *)data;
- (void)setData:(NSData *)newData;
- (NSStringEncoding)dataStringEncoding;
- (void)setDataStringEncoding:(NSStringEncoding)newStringEncoding;
- (NSWritingDirection)baseWritingDirection;
- (void)setBaseWritingDirection:(NSWritingDirection)newDirection;
- (BOOL)isEditable;
- (void)setEditable:(BOOL)flag;
- (DataViewContentType)contentType;
- (void)setContentType:(DataViewContentType)newType;
- (id)contentView;
- (void)setContentView:(id)newView;
- (NSRect)contentFrame;
- (id)preparedContentViewForType:(DataViewContentType)aType;
- (void)updateContentView;
- (void)tile;
@end
@interface NSObject (DataViewDelegate)
- (void)dataViewDidChangeContentView:(NSNotification *)aNotification;
@end