forked from rentzsch/markdownlive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
MyDocument.h
27 lines (19 loc) · 829 Bytes
/
MyDocument.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
/*******************************************************************************
MyDocument.h - <http://github.com/rentzsch/MarkdownLive>
Copyright (c) 2006-2010 Jonathan 'Wolf' Rentzsch: <http://rentzsch.com>
Some rights reserved: <http://opensource.org/licenses/mit-license.php>
***************************************************************************/
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@interface MyDocument : NSDocument {
IBOutlet NSTextView *markdownSourceTextView;
IBOutlet WebView *htmlPreviewWebView;
NSMutableAttributedString *markdownSource;
NSTimeInterval whenToUpdatePreview;
NSTimer *htmlPreviewTimer;
BOOL hasSavedOrigin;
NSPoint savedOrigin;
BOOL savedAtBottom;
}
- (IBAction)copyGeneratedHTMLAction:(id)sender;
@end