1 /*
2     EditorTextView.h
3 
4     Interface declaration of the EditorTextView class for the
5     ProjectManager application.
6 
7     Copyright (C) 2005-2014 Free Software Foundation
8       Saso Kiselkov
9       Riccardo Mottola
10 
11     This program is free software; you can redistribute it and/or modify
12     it under the terms of the GNU General Public License as published by
13     the Free Software Foundation; either version 2 of the License, or
14     (at your option) any later version.
15 
16     This program is distributed in the hope that it will be useful,
17     but WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19     GNU General Public License for more details.
20 
21     You should have received a copy of the GNU General Public License
22     along with this program; if not, write to the Free Software
23     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24 */
25 
26 #import <AppKit/NSTextView.h>
27 
28 #import <Protocols/CodeEditorView.h>
29 
30 @class NSColor;
31 @class PCEditor;
32 @class SyntaxHighlighter;
33 
34 @interface PCEditorView : NSTextView <CodeEditorView>
35 {
36   PCEditor          *editor;
37   SyntaxHighlighter *highlighter;
38 }
39 
40 + (NSFont *)defaultEditorFont;
41 + (NSFont *)defaultEditorBoldFont;
42 + (NSFont *)defaultEditorItalicFont;
43 + (NSFont *)defaultEditorBoldItalicFont;
44 
45 - (void)setEditor:(PCEditor *)anEditor;
46 
47 - (void)createSyntaxHighlighterForFileType:(NSString *)fileType;
48 
49 - (void)insertText:text;
50 
51 - (NSRect)selectionRect;
52 
53 // =====
54 // CodeEditorView protocol
55 // =====
56 - (void)performGoToLinePanelAction:(id)sender;
57 - (void)goToLineNumber:(NSUInteger)lineNumber;
58 
59 @end
60