-
Notifications
You must be signed in to change notification settings - Fork 56
/
MyDocument.h
43 lines (33 loc) · 1.25 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*******************************************************************************
MyDocument.h - <http://github.com/rentzsch/MarkdownLive>
Copyright (c) 2006-2011 Jonathan 'Wolf' Rentzsch: <http://rentzsch.com>
Some rights reserved: <http://opensource.org/licenses/mit-license.php>
***************************************************************************/
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@class EditPaneTextView;
@class EditPaneLayoutManager;
@interface MyDocument : NSDocument {
IBOutlet EditPaneTextView *markdownSourceTextView;
IBOutlet WebView *htmlPreviewWebView;
NSTextStorage *markdownSource;
NSTimeInterval whenToUpdatePreview;
NSTimer *htmlPreviewTimer;
BOOL hasSavedOrigin;
NSPoint savedOrigin;
BOOL savedAtBottom;
}
- (IBAction)copyGeneratedHTMLAction:(id)sender;
- (IBAction)boldItalic:(id)sender;
- (IBAction)bold:(id)sender;
- (IBAction)italic:(id)sender;
- (IBAction)header1:(id)sender;
- (IBAction)header2:(id)sender;
- (IBAction)header3:(id)sender;
- (IBAction)blockQuote:(id)sender;
- (IBAction)codeSection:(id)sender;
- (IBAction)unorderedList:(id)sender;
- (IBAction)numberedList:(id)sender;
- (IBAction)link:(id)sender;
- (IBAction)image:(id)sender;
@end