forked from ttscoff/nv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreviewController.h
executable file
·74 lines (66 loc) · 1.99 KB
/
PreviewController.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// PreviewController.h
// Notation
//
// Created by Christian Tietze on 15.10.10.
// Copyright 2010
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import "MAAttachedWindow.h"
@class AppController;
@class NoteObject;
@class ETTransparentButton;
@interface PreviewController : NSWindowController
{
IBOutlet WebView *preview;
IBOutlet NSTextView *sourceView;
IBOutlet NSTabView *tabView;
IBOutlet NSButton *tabSwitcher;
IBOutlet NSButton *shareButton;
IBOutlet NSButton *saveButton;
IBOutlet NSButton *stickyPreviewButton;
IBOutlet NSButton *printPreviewButton;
ETTransparentButton *viewOnWebButton;
BOOL isPreviewOutdated;
BOOL isPreviewSticky;
NSMutableData *receivedData;
// IBOutlet NSWindow *wnd;
MAAttachedWindow *attachedWindow;
MAAttachedWindow *confirmWindow;
IBOutlet NSTextField *urlTextField;
IBOutlet NSView *shareNotification;
IBOutlet NSView *shareConfirmation;
ETTransparentButton *shareCancel;
ETTransparentButton *shareConfirm;
NSString *shareURL;
NSString *cssString;
NSString *htmlString;
IBOutlet NSButton *includeTemplate;
IBOutlet NSTextField *templateNote;
IBOutlet NSView *accessoryView;
NoteObject *lastNote;
}
@property (assign) BOOL isPreviewOutdated;
@property (retain) WebView *preview;
@property (assign) BOOL isPreviewSticky;
-(IBAction)saveHTML:(id)sender;
-(IBAction)switchTabs:(id)sender;
-(IBAction)shareNote:(id)sender;
-(IBAction)shareAsk:(id)sender;
-(IBAction)cancelShare:(id)sender;
-(IBAction)makePreviewSticky:(id)sender;
-(IBAction)makePreviewNotSticky:(id)sender;
-(IBAction)printPreview:(id)sender;
-(BOOL)previewIsVisible;
-(void)togglePreview:(id)sender;
-(void)requestPreviewUpdate:(NSNotification *)notification;
+(void)createCustomFiles;
-(SEL)markupProcessorSelector:(NSInteger)previewMode;
-(NSString *)urlEncodeValue:(NSString *)str;
-(void)showShareURL:(NSString *)url isError:(BOOL)isError;
-(IBAction)hideShareURL:(id)sender;
-(void)closeShareURLView;
-(IBAction)openShareURL:(id)sender;
+(NSString *)css;
+(NSString *)html;
@end