| 6128 |
bibiko |
1 |
/*
|
|
|
2 |
* R.app : a Cocoa front end to: "R A Computer Language for Statistical Data Analysis"
|
|
|
3 |
*
|
|
|
4 |
* R.app Copyright notes:
|
|
|
5 |
* Copyright (C) 2004-12 The R Foundation
|
|
|
6 |
* written by Stefano M. Iacus and Simon Urbanek
|
|
|
7 |
*
|
|
|
8 |
*
|
|
|
9 |
* R Copyright notes:
|
|
|
10 |
* Copyright (C) 1995-1996 Robert Gentleman and Ross Ihaka
|
|
|
11 |
* Copyright (C) 1998-2001 The R Development Core Team
|
|
|
12 |
* Copyright (C) 2002-2004 The R Foundation
|
|
|
13 |
*
|
|
|
14 |
* This program is free software; you can redistribute it and/or modify
|
|
|
15 |
* it under the terms of the GNU General Public License as published by
|
|
|
16 |
* the Free Software Foundation; either version 2 of the License, or
|
|
|
17 |
* (at your option) any later version.
|
|
|
18 |
*
|
|
|
19 |
* This program is distributed in the hope that it will be useful,
|
|
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
22 |
* GNU General Public License for more details.
|
|
|
23 |
*
|
|
|
24 |
* A copy of the GNU General Public License is available via WWW at
|
|
|
25 |
* http://www.gnu.org/copyleft/gpl.html. You can also obtain it by
|
|
|
26 |
* writing to the Free Software Foundation, Inc., 59 Temple Place,
|
|
|
27 |
* Suite 330, Boston, MA 02111-1307 USA.
|
|
|
28 |
*
|
|
|
29 |
* RScriptEditorTextStorage.h
|
|
|
30 |
*
|
|
|
31 |
* Created by Hans-J. Bibiko on 01/03/2012.
|
|
|
32 |
*
|
|
|
33 |
*/
|
|
|
34 |
|
|
|
35 |
#import <Cocoa/Cocoa.h>
|
|
|
36 |
|
| 6238 |
bibiko |
37 |
#define R_MAX_FOLDED_ITEMS 1024
|
| 6233 |
bibiko |
38 |
|
| 6128 |
bibiko |
39 |
@interface RScriptEditorTextStorage : NSTextStorage
|
|
|
40 |
{
|
|
|
41 |
|
|
|
42 |
NSTextStorage *_attributedString;
|
| 6238 |
bibiko |
43 |
NSInteger foldedRanges[R_MAX_FOLDED_ITEMS][3];
|
| 6233 |
bibiko |
44 |
NSInteger foldedCounter;
|
| 6238 |
bibiko |
45 |
NSInteger currentMaxFoldedIndex;
|
| 6248 |
bibiko |
46 |
|
|
|
47 |
id selfDelegate;
|
| 6233 |
bibiko |
48 |
|
| 6137 |
bibiko |
49 |
IMP _getImp;
|
|
|
50 |
IMP _setImp;
|
| 6232 |
bibiko |
51 |
IMP _strImp;
|
|
|
52 |
IMP _replImp;
|
|
|
53 |
IMP _editImp;
|
| 6233 |
bibiko |
54 |
IMP _getlImp;
|
| 6128 |
bibiko |
55 |
|
|
|
56 |
}
|
|
|
57 |
|
| 6249 |
bibiko |
58 |
- (id)initWithDelegate:(id)theDelegate;
|
|
|
59 |
|
| 6233 |
bibiko |
60 |
- (NSInteger)foldedAtIndex:(NSInteger)index;
|
|
|
61 |
- (NSInteger)foldedForIndicatorAtIndex:(NSInteger)index;
|
|
|
62 |
- (NSRange)foldedRangeAtIndex:(NSInteger)index;
|
|
|
63 |
- (NSInteger)registerFoldedRange:(NSRange)range;
|
| 6238 |
bibiko |
64 |
- (BOOL)inFoldedRangeForRange:(NSRange)range;
|
| 6241 |
bibiko |
65 |
- (BOOL)removeFoldedRangeWithIndex:(NSInteger)index;
|
| 6233 |
bibiko |
66 |
- (void)removeAllFoldedRanges;
|
|
|
67 |
- (BOOL)existsFoldedRange:(NSRange)range;
|
|
|
68 |
- (BOOL)hasFoldedItems;
|
|
|
69 |
|
| 6128 |
bibiko |
70 |
@end
|