mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
prototypes+style
This commit is contained in:
@@ -154,7 +154,7 @@ var _objectsInRange = function(aList, aRange)
|
||||
CPArray _glyphsFrames;
|
||||
}
|
||||
|
||||
- (id)createDOMElementWithText:aString andFont:aFont andColor:aColor
|
||||
- (id)createDOMElementWithText:(CPString)aString andFont:(CPFont)aFont andColor: (CPColor)aColor
|
||||
{
|
||||
var style,
|
||||
span = document.createElement("span");
|
||||
@@ -221,7 +221,7 @@ var _objectsInRange = function(aList, aRange)
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)setAdvancements:someAdvancements
|
||||
- (void)setAdvancements:(CPArray)someAdvancements
|
||||
{
|
||||
_glyphsFrames = [];
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ CPParagraphStyleAttributeName = @"CPParagraphStyleAttributeName";
|
||||
var other = [[self class] alloc];
|
||||
return [other initWithParagraphStyle:self];
|
||||
}
|
||||
- initWithParagraphStyle:(CPParagraphStyle) other
|
||||
- (CPParagraphStyle)initWithParagraphStyle:(CPParagraphStyle)other
|
||||
{
|
||||
other._tabStops = [_tabStops copy];
|
||||
other._alignment = _alignment;
|
||||
|
||||
@@ -1390,7 +1390,8 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
return _textStorage._string;
|
||||
}
|
||||
|
||||
- objectValue
|
||||
// fixme: rich text should return attributed string, shouldn't it?
|
||||
- (CPString)objectValue
|
||||
{
|
||||
return [self stringValue];
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ var kRgsymRtf = {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (CPString)_checkChar:sym parameter:ch
|
||||
- (CPString)_checkChar:(CPArray)sym parameter:(CPString)ch
|
||||
{
|
||||
switch (_curState)
|
||||
{
|
||||
@@ -431,7 +431,7 @@ var kRgsymRtf = {
|
||||
}
|
||||
|
||||
|
||||
- (CPString)_changeDest:sym
|
||||
- (CPString)_changeDest:(CPArray)sym
|
||||
{
|
||||
switch (sym[0])
|
||||
{
|
||||
@@ -451,7 +451,7 @@ var kRgsymRtf = {
|
||||
return '';
|
||||
}
|
||||
|
||||
- (CPString)_translateKeyword:keyword parameter:param fParameter:(BOOL)fParam
|
||||
- (CPString)_translateKeyword:(CPString)keyword parameter:(CPString)param fParameter:(BOOL)fParam
|
||||
{
|
||||
if (kRgsymRtf[keyword] !== undefined)
|
||||
{
|
||||
@@ -530,7 +530,7 @@ var kRgsymRtf = {
|
||||
}
|
||||
}
|
||||
|
||||
- (CPString)_parseKeyword:rtf length:len
|
||||
- (CPString)_parseKeyword:(CPString)rtf length:(unsigned)len
|
||||
{
|
||||
var ch = '',
|
||||
fParam = false,
|
||||
|
||||
Reference in New Issue
Block a user