Add -_updateInputMethodState and -_updateInputMethodWithInsertionPoint: methods.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-07-12 16:40:16 +00:00
parent af06535736
commit def73c1f91
3 changed files with 42 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2003-07-12 18:20 Alexander Malmberg <alexander@malmberg.org>
* Headers/gnustep/gui/NSTextView.h, Source/NSTextView.m: Add
-_updateInputMethodState and -_updateInputMethodWithInsertionPoint:
methods. Minor cleanups in comments.
2003-07-12 Gregory John Casamento <greg_casamento@yahoo.com> 2003-07-12 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSMatrix.m: -[NSMatrix keyCell] failed to check if the * Source/NSMatrix.m: -[NSMatrix keyCell] failed to check if the

View file

@ -71,8 +71,8 @@ therefore be stored in the NSLayoutManager to avoid problems.
@interface NSTextView : NSText <NSTextInput> @interface NSTextView : NSText <NSTextInput>
{ {
/** These attributes are shared by all text views attached to a layout /* These attributes are shared by all text views attached to a layout
manager. Any changes must be replicated in all those text views. **/ manager. Any changes must be replicated in all those text views. */
id _delegate; id _delegate;
struct GSTextViewFlagsType { struct GSTextViewFlagsType {
unsigned is_field_editor:1; unsigned is_field_editor:1;
@ -90,7 +90,7 @@ therefore be stored in the NSLayoutManager to avoid problems.
would be very awkward if they weren't. */ would be very awkward if they weren't. */
unsigned allows_undo:1; unsigned allows_undo:1;
unsigned smart_insert_delete:1; unsigned smart_insert_delete:1;
/** End of shared attributes. **/ /* End of shared attributes. */
unsigned draws_background:1; unsigned draws_background:1;
@ -209,9 +209,14 @@ therefore be stored in the NSLayoutManager to avoid problems.
} }
/* Returns the default typing attributes: black text, default paragraph /**
style, default user font and size. */ Returns the default typing attributes: black text, default paragraph
+(NSDictionary *) defaultTypingAttributes; /* GNUstep extension */ style (as returned by [NSParagraphStyle defaultParagraphStyle]), and default
user font and size (as returned by [NSFont userFontOfSize: 0.0]).
GNUstep extension.
*/
+(NSDictionary *) defaultTypingAttributes;
/**** Initializing ****/ /**** Initializing ****/
@ -227,7 +232,7 @@ should ensure that you only register once. */
/* This variant will create the text network (NSTextStorage, NSLayoutManager, /* This variant will create the text network (NSTextStorage, NSLayoutManager,
and a NSTextContainer). The network will be owned by the NSTextView; and a NSTextContainer). The network will be owned by the NSTextView;
releasing it will release all parts of the network. */ releasing it will release all parts of the network. */
-(id) initWithFrame:(NSRect)frameRect; -(id) initWithFrame: (NSRect)frameRect;
/**** Text network management ****/ /**** Text network management ****/
@ -361,6 +366,19 @@ the text view is resizable. */
-(NSDictionary *) markedTextAttributes; -(NSDictionary *) markedTextAttributes;
#ifdef GNUSTEP
/*** Private, internal methods for (currently only) XIM support ***/
/*
The implementations for these are empty in NSTextView. Backends can override
these in a category.
*/
-(void) _updateInputMethodState;
-(void) _updateInputMethodWithInsertionPoint: (NSPoint)insertionPoint;
#endif
@end @end

View file

@ -2243,6 +2243,17 @@ Scroll so that the beginning of the range is visible.
} }
/* Private, internal methods to help input method handling in some backends
(XIM, currently). Backends may override these in categories with the real
(backend-specific) handling. */
-(void) _updateInputMethodState
{
}
-(void) _updateInputMethodWithInsertionPoint: (NSPoint)insertionPoint
{
}
@end @end