mirror of
https://github.com/tappollo/Xcode-Quick-Localization.git
synced 2026-01-12 22:37:18 +08:00
123 lines
3.3 KiB
Objective-C
123 lines
3.3 KiB
Objective-C
//
|
|
//
|
|
// Created by Zitao on 12/05/13.
|
|
//
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface DVTTextDocumentLocation : NSObject
|
|
@property (readonly) NSRange characterRange;
|
|
@property (readonly) NSRange lineRange;
|
|
@end
|
|
|
|
@interface DVTTextPreferences : NSObject
|
|
+ (id)preferences;
|
|
@property BOOL trimWhitespaceOnlyLines;
|
|
@property BOOL trimTrailingWhitespace;
|
|
@property BOOL useSyntaxAwareIndenting;
|
|
@end
|
|
|
|
@interface DVTSourceTextStorage : NSTextStorage
|
|
- (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string withUndoManager:(id)undoManager;
|
|
- (NSRange)lineRangeForCharacterRange:(NSRange)range;
|
|
- (NSRange)characterRangeForLineRange:(NSRange)range;
|
|
- (void)indentCharacterRange:(NSRange)range undoManager:(id)undoManager;
|
|
@end
|
|
|
|
@interface DVTFileDataType : NSObject
|
|
@property (readonly) NSString *identifier;
|
|
@end
|
|
|
|
@interface DVTFilePath : NSObject
|
|
@property (readonly) NSURL *fileURL;
|
|
@property (readonly) DVTFileDataType *fileDataTypePresumed;
|
|
@end
|
|
|
|
@interface IDEContainerItem : NSObject
|
|
@property (readonly) DVTFilePath *resolvedFilePath;
|
|
@end
|
|
|
|
@interface IDEGroup : IDEContainerItem
|
|
|
|
@end
|
|
|
|
@interface IDEFileReference : IDEContainerItem
|
|
|
|
@end
|
|
|
|
@interface IDENavigableItem : NSObject
|
|
@property (readonly) IDENavigableItem *parentItem;
|
|
@property (readonly) id representedObject;
|
|
@end
|
|
|
|
@interface IDEFileNavigableItem : IDENavigableItem
|
|
@property (readonly) DVTFileDataType *documentType;
|
|
@property (readonly) NSURL *fileURL;
|
|
@end
|
|
|
|
@interface IDEStructureNavigator : NSObject
|
|
@property (retain) NSArray *selectedObjects;
|
|
@end
|
|
|
|
@interface IDENavigableItemCoordinator : NSObject
|
|
- (id)structureNavigableItemForDocumentURL:(id)arg1 inWorkspace:(id)arg2 error:(id *)arg3;
|
|
@end
|
|
|
|
@interface IDENavigatorArea : NSObject
|
|
- (id)currentNavigator;
|
|
@end
|
|
|
|
@interface IDEWorkspaceTabController : NSObject
|
|
@property (readonly) IDENavigatorArea *navigatorArea;
|
|
@end
|
|
|
|
@interface IDEDocumentController : NSDocumentController
|
|
+ (id)editorDocumentForNavigableItem:(id)arg1;
|
|
+ (id)retainedEditorDocumentForNavigableItem:(id)arg1 error:(id *)arg2;
|
|
+ (void)releaseEditorDocument:(id)arg1;
|
|
@end
|
|
|
|
@interface IDESourceCodeDocument : NSDocument
|
|
- (DVTSourceTextStorage *)textStorage;
|
|
- (NSUndoManager *)undoManager;
|
|
@end
|
|
|
|
@interface IDESourceCodeComparisonEditor : NSObject
|
|
@property (readonly) NSTextView *keyTextView;
|
|
@property (retain) NSDocument *primaryDocument;
|
|
@end
|
|
|
|
@interface IDESourceCodeEditor : NSObject
|
|
@property (retain) NSTextView *textView;
|
|
- (IDESourceCodeDocument *)sourceCodeDocument;
|
|
@end
|
|
|
|
@interface IDEEditorContext : NSObject
|
|
- (id)editor; // returns the current editor. If the editor is the code editor, the class is `IDESourceCodeEditor`
|
|
@end
|
|
|
|
@interface IDEEditorArea : NSObject
|
|
- (IDEEditorContext *)lastActiveEditorContext;
|
|
@end
|
|
|
|
@interface IDEWorkspaceWindowController : NSObject
|
|
@property (readonly) IDEWorkspaceTabController *activeWorkspaceTabController;
|
|
- (IDEEditorArea *)editorArea;
|
|
@end
|
|
|
|
@interface IDEWorkspace : NSObject
|
|
@property (readonly) DVTFilePath *representingFilePath;
|
|
@end
|
|
|
|
@interface IDEWorkspaceDocument : NSDocument
|
|
@property (readonly) IDEWorkspace *workspace;
|
|
@end
|
|
|
|
@interface RCXcode : NSObject
|
|
+ (IDEWorkspaceDocument *)currentWorkspaceDocument;
|
|
+ (IDESourceCodeDocument *)currentSourceCodeDocument;
|
|
+ (NSTextView *)currentSourceCodeTextView;
|
|
+ (NSArray *)selectedObjCFileNavigableItems;
|
|
@end
|