mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Merge Source/NSParagraphStyle.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38737 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9fe74e0c52
commit
392e6ceb1a
1 changed files with 12 additions and 2 deletions
|
@ -474,7 +474,12 @@ static NSParagraphStyle *defaultStyle = nil;
|
|||
{
|
||||
if ([aCoder allowsKeyedCoding])
|
||||
{
|
||||
// TODO_NIB: Determine keys for NSParagraphStyle, if there are any.
|
||||
_firstLineHeadIndent = [aCoder decodeFloatForKey: @"NSFirstLineHeadIndent"];
|
||||
_headIndent = [aCoder decodeFloatForKey: @"NSHeadIndent"];
|
||||
_paragraphSpacing = [aCoder decodeFloatForKey: @"NSParagraphSpacingBefore"];
|
||||
ASSIGN(_tabStops, [aCoder decodeObjectForKey: @"NSTabStops"]);
|
||||
ASSIGN(_textLists, [aCoder decodeObjectForKey: @"NSTextLists"]);
|
||||
_baseDirection = [aCoder decodeIntForKey: @"NSWritingDirection"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -540,7 +545,12 @@ static NSParagraphStyle *defaultStyle = nil;
|
|||
{
|
||||
if ([aCoder allowsKeyedCoding])
|
||||
{
|
||||
// TODO_NIB: Determine keys for NSParagraphStyle, if there are any.
|
||||
[aCoder encodeFloat: _firstLineHeadIndent forKey: @"NSFirstLineHeadIndent"];
|
||||
[aCoder encodeFloat: _headIndent forKey: @"NSHeadIndent"];
|
||||
[aCoder encodeFloat: _paragraphSpacing forKey: @"NSParagraphSpacingBefore"];
|
||||
[aCoder encodeObject: _tabStops forKey: @"NSTabStops"];
|
||||
[aCoder encodeObject: _textLists forKey: @"NSTextLists"];
|
||||
[aCoder encodeInt: _baseDirection forKey: @"NSWritingDirection"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue