Initial skeleton for NSTextCheckingController class

This commit is contained in:
Gregory John Casamento 2020-08-02 09:31:20 -04:00
parent 836e2e8b1e
commit 786b641efd
2 changed files with 131 additions and 0 deletions

View file

@ -26,6 +26,9 @@
#define _NSTextCheckingController_h_GNUSTEP_GUI_INCLUDE
#import <Foundation/NSObject.h>
#import <Foundation/NSRange.h>
#import <AppKit/NSTextCheckingClient.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_15, GS_API_LATEST)
@ -33,8 +36,40 @@
extern "C" {
#endif
@class NSArray, NSDictionary, NSMenu;
@interface NSTextCheckingController : NSObject
// initializer
- (instancetype) initWithClient: (id<NSTextCheckingClient>)client;
// properties...
- (id<NSTextCheckingClient>) client;
- (NSInteger) spellCheckerDocumentTag;
- (void) setSpellCheckerDocumentTag: (NSInteger)tag;
// instance methods...
- (void) changeSpelling: (id)sender;
- (void) checkSpelling: (id)sender;
- (void) checkTextInRange: (NSRange)range
types: (NSTextCheckingTypes)checkingTypes
options: (NSDictionary *)options;
- (void) checkTextInSelection: (id)sender;
- (void) checkTextInDocument: (id)sender;
- (void) didChangeTextInRange: (NSRange)range;
- (void) considerTextCheckingForRange: (NSRange)range;
- (void) didChangeSelectedRange;
- (void) ignoreSpelling: (id)sender;
- (void) insertedTextInRange: (NSRange)range;
- (void) invalidate;
- (NSMenu *) menuAtIndex: (NSUInteger)location
clickedOnSelection: (BOOL)clickedOnSelection
effectiveRange: (NSRangePointer)effectiveRange;
- (void) orderFrontSubstitutionsPanel: (id)sender;
- (void) showGuessPanel: (id)sender;
- (void) updateCandidates;
- (NSArray *) validAnnotations;
@end
#if defined(__cplusplus)

View file

@ -26,5 +26,101 @@
@implementation NSTextCheckingController
// initializer
- (instancetype) initWithClient: (id<NSTextCheckingClient>)client
{
self = [super init];
if (self != nil)
{
}
return self;
}
// properties...
- (id<NSTextCheckingClient>) client
{
return nil;
}
- (NSInteger) spellCheckerDocumentTag
{
return 0;
}
- (void) setSpellCheckerDocumentTag: (NSInteger)tag
{
}
// instance methods...
- (void) changeSpelling: (id)sender
{
}
- (void) checkSpelling: (id)sender
{
}
- (void) checkTextInRange: (NSRange)range
types: (NSTextCheckingTypes)checkingTypes
options: (NSDictionary *)options
{
}
- (void) checkTextInSelection: (id)sender
{
}
- (void) checkTextInDocument: (id)sender
{
}
- (void) didChangeTextInRange: (NSRange)range
{
}
- (void) considerTextCheckingForRange: (NSRange)range
{
}
- (void) didChangeSelectedRange
{
}
- (void) ignoreSpelling: (id)sender
{
}
- (void) insertedTextInRange: (NSRange)range
{
}
- (void) invalidate
{
}
- (NSMenu *) menuAtIndex: (NSUInteger)location
clickedOnSelection: (BOOL)clickedOnSelection
effectiveRange: (NSRangePointer)effectiveRange
{
return nil;
}
- (void) orderFrontSubstitutionsPanel: (id)sender
{
}
- (void) showGuessPanel: (id)sender
{
}
- (void) updateCandidates
{
}
- (NSArray *) validAnnotations
{
return nil;
}
@end