mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:40:47 +00:00
Add new MacOSX 10.4 files used by simple web kit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
262f9d8b86
commit
24957adafd
9 changed files with 871 additions and 0 deletions
95
Source/NSTextTableBlock.m
Normal file
95
Source/NSTextTableBlock.m
Normal file
|
@ -0,0 +1,95 @@
|
|||
/* NSTextTableBlock.m
|
||||
|
||||
Copyright (C) 2008 Free Software Foundation, Inc.
|
||||
|
||||
Author: H. Nikolaus Schaller
|
||||
Date: 2007
|
||||
Author: Fred Kiefer <fredkiefer@gmx.de>
|
||||
Date: January 2008
|
||||
|
||||
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 Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 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
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, see <http://www.gnu.org/licenses/> or write to the
|
||||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <Foundation/NSCoder.h>
|
||||
#include <Foundation/NSString.h>
|
||||
|
||||
#include "AppKit/NSTextTable.h"
|
||||
|
||||
@implementation NSTextTableBlock
|
||||
|
||||
- (id) initWithTable: (NSTextTable *)table
|
||||
startingRow: (int)row
|
||||
rowSpan: (int)rspan
|
||||
startingColumn: (int)col
|
||||
columnSpan: (int)cspan;
|
||||
{
|
||||
self = [super init];
|
||||
if (self == nil)
|
||||
return nil;
|
||||
|
||||
ASSIGN(_table, table);
|
||||
_row = row;
|
||||
_rowSpan = rspan;
|
||||
_col = col;
|
||||
_colSpan = cspan;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_table);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (int) columnSpan
|
||||
{
|
||||
return _colSpan;
|
||||
}
|
||||
|
||||
- (int) rowSpan
|
||||
{
|
||||
return _rowSpan;
|
||||
}
|
||||
|
||||
- (int) startingColumn
|
||||
{
|
||||
return _col;
|
||||
}
|
||||
|
||||
- (int) startingRow
|
||||
{
|
||||
return _row;
|
||||
}
|
||||
|
||||
- (NSTextTable *) table
|
||||
{
|
||||
return _table;
|
||||
}
|
||||
|
||||
- (id) copyWithZone: (NSZone*)zone
|
||||
{
|
||||
NSTextTableBlock *t = [super copyWithZone: zone];
|
||||
|
||||
TEST_RETAIN(_table);
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue