Dummy implementation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-08-18 15:17:49 +00:00
parent a3e838fd0f
commit 9a44480126
2 changed files with 273 additions and 0 deletions

154
Source/NSInputManager.m Normal file
View file

@ -0,0 +1,154 @@
/* -*-objc-*-
NSInputManager.m
Copyright (C) 2001 Free Software Foundation, Inc.
Author: Fred Kiefer <FredKiefer@gmx.de>
Date: August 2001
This file is part of the GNUstep GUI Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <AppKit/NSEvent.h>
#include <AppKit/NSImage.h>
#include <AppKit/NSInputManager.h>
#include <AppKit/NSInputServer.h>
@implementation NSInputManager
// Class methods
+ (NSInputManager *) currentInputManager
{
return nil;
}
+ (void) cycleToNextInputLanguage: (id)sender
{}
+ (void) cycleToNextInputServerInLanguage: (id)sender;
{}
- (NSInputManager *) initWithName: (NSString *)inputServerName
host: (NSString *)hostName
{
return nil;
}
- (BOOL) handleMouseEvent: (NSEvent *)theMouseEvent
{
return NO;
}
- (NSImage *) image
{
return nil;
}
- (NSString *) language
{
return nil;
}
- (NSString *) localizedInputManagerName
{
return nil;
}
- (void) markedTextAbandoned: (id)client
{}
- (void) markedTextSelectionChanged: (NSRange)newSel
client: (id)client
{}
- (NSInputServer *) server
{
return nil;
}
- (BOOL) wantsToDelayTextChangeNotifications
{
return NO;
}
- (BOOL) wantsToHandleMouseEvents
{
return NO;
}
- (BOOL) wantsToInterpretAllKeystrokes
{
return NO;
}
// NSTextInput protocol
- (void) setMarkedText: (id)aString
selectedRange: (NSRange)selRange
{}
- (BOOL) hasMarkedText
{
return NO;
}
- (NSRange) markedRange
{
return NSMakeRange(NSNotFound, 0);
}
- (NSRange) selectedRange
{
return NSMakeRange(NSNotFound, 0);
}
- (void) unmarkText
{}
- (NSArray*) validAttributesForMarkedText
{
return nil;
}
- (NSAttributedString *) attributedSubstringFromRange: (NSRange)theRange;
{
return nil;
}
- (unsigned int) characterIndexForPoint: (NSPoint)thePoint
{
return 0;
}
- (long) conversationIdentifier
{
return 0;
}
- (void) doCommandBySelector: (SEL)aSelector
{}
- (NSRect) firstRectForCharacterRange: (NSRange)theRange
{
return NSZeroRect;
}
- (void) insertText: (id)aString
{}
@end

119
Source/NSInputServer.m Normal file
View file

@ -0,0 +1,119 @@
/* -*-objc-*-
NSInputServer.m
Copyright (C) 2001 Free Software Foundation, Inc.
Author: Fred Kiefer <FredKiefer@gmx.de>
Date: August 2001
This file is part of the GNUstep GUI Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <AppKit/NSInputServer.h>
@implementation NSInputServer
- (id) initWithDelegate: (id)aDelegate
name: (NSString *)name
{
return nil;
}
// NSInputServerMouseTracker protocol
- (BOOL) mouseDownOnCharacterIndex: (unsigned)index
atCoordinate: (NSPoint)point
withModifier: (unsigned int)flags
client: (id)sender
{
return NO;
}
- (BOOL) mouseDraggedOnCharacterIndex: (unsigned)index
atCoordinate: (NSPoint)point
withModifier: (unsigned int)flags
client: (id)sender
{
return NO;
}
- (void) mouseUpOnCharacterIndex: (unsigned)index
atCoordinate: (NSPoint)point
withModifier: (unsigned int)flags
client: (id)sender
{}
// NSInputServiceProvider protocol
- (void) activeConversationChanged: (id)sender
toNewConversation: (long)newConversation
{}
- (void) activeConversationWillChange: (id)sender
fromOldConversation: (long)oldConversation
{}
- (BOOL) canBeDisabled
{
return NO;
}
- (void) doCommandBySelector: (SEL)aSelector
client: (id)sender
{}
- (void) inputClientBecomeActive: (id)sender
{}
- (void) inputClientDisabled: (id)sender
{}
- (void) inputClientEnabled: (id)sender
{}
- (void) inputClientResignActive: (id)sender
{}
- (void) insertText: (id)aString
client: (id)sender
{}
- (void) markedTextAbandoned: (id)sender
{}
- (void) markedTextSelectionChanged: (NSRange)newSelection
client: (id)sender
{}
- (void) terminate: (id)sender
{}
- (BOOL) wantsToDelayTextChangeNotifications
{
return NO;
}
- (BOOL) wantsToHandleMouseEvents
{
return NO;
}
- (BOOL) wantsToInterpretAllKeystrokes
{
return NO;
}
@end