From edf0be966a89453b068f17ced7c5ce77bd95baeb Mon Sep 17 00:00:00 2001 From: far Date: Wed, 19 Aug 1998 09:05:31 +0000 Subject: [PATCH] update changelog and add NSAttributedString.h git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2935 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 23 ++++++++ Headers/gnustep/gui/NSAttributedString.h | 70 ++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 Headers/gnustep/gui/NSAttributedString.h diff --git a/ChangeLog b/ChangeLog index 02d3cb9dd..c355c0e8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,27 @@ <<<<<<< ChangeLog +Weds Aug 19 1998 Felipe A. Rodriguez + + * NSView.h added specific values and comments to resize constants enum. + * NSView.m implemented resizeWithOldSuperviewSize (needs work). + * NSMatrix.m mousedown clarified description comment. + * NSSavePanel.m integrated source from Daniel Bðhringer into premliminary + implementations provided by Scott Christley. + * NSSavePanel.h integrated source from Daniel Bðhringer into premliminary + implementations provided by Scott Christley. + * NSOpenPanel.m integrated source from Daniel Bðhringer into premliminary + implementations provided by Scott Christley. + * NSOpenPanel.h integrated source from Daniel Bðhringer into premliminary + implementations provided by Scott Christley. + * NSStringDrawing.h defined NSAttributedString portion of extension. + * NSAttributedString.h created preliminary implementation of extension. + * Appkit.h added includes for NSAttributedString and NSStringDrawing. + * NSPasteboard.h added extern NSRTFDPboardType define. + * externs.m defined NSRTFDPboardType. + * NSText.h integrated source from Daniel Bðhringer + * NSTextView.m preliminary implementation from Daniel Bðhringer + * NSTextView.h preliminary implementation from Daniel Bðhringer + * NSSplitView.m in drawRect use NSRectFill() + Weds Aug 12 1998 Richard Frith-Macdonald * NSCell.m: Modified ([-copyWithZone:]) to use alloc-init to create diff --git a/Headers/gnustep/gui/NSAttributedString.h b/Headers/gnustep/gui/NSAttributedString.h new file mode 100644 index 000000000..8d828ba94 --- /dev/null +++ b/Headers/gnustep/gui/NSAttributedString.h @@ -0,0 +1,70 @@ +/* + NSAttributedString.h + + Category which defines appkit extensions to NSAttributedString and + NSMutableAttributedString. + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Felipe A. Rodriguez + Date: Aug 1998 + + 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. +*/ + +#ifndef _GNUstep_H_NSAttributedString +#define _GNUstep_H_NSAttributedString + +#include +#include +#include + + // global NSString attribute names used in ascessing + // the respective property in a text attributes + // dictionary. if the key is not in the dictionary the + // default value is assumed +extern NSString *NSFontAttributeName; // NSFont, defaults to Helvetica 12 + // NSParagraphStyle, default is defaultParagraphStyle +extern NSString *NSParagraphStyleAttributeName; + // NSColor, default is blackColor +extern NSString *NSForegroundColorAttributeName; + // int, default 0 = no underline +extern NSString *NSUnderlineStyleAttributeName; +extern NSString *NSSuperscriptAttributeName; // int, default 0 + // NSColor, default nil = no background color +extern NSString *NSBackgroundColorAttributeName; +extern NSString *NSAttachmentAttributeName; // NSTextAttachment, default nil + // int, default 1, 0 = no ligatures, 2 = all ligatures +extern NSString *NSLigatureAttributeName; +extern NSString *NSBaselineOffsetAttributeName; // float, default 0 in points; + // float, offset from baseline, +extern NSString *NSKernAttributeName; // amount to modify default + // kerning, if 0 kerning is off + + + +@interface NSAttributedString (NSAttributedStringKitAdditions) + +@end + + +@interface NSMutableAttributedString (NSMutableAttributedStringKitAdditions) + +@end + +#endif /* _GNUstep_H_NSAttributedString */