Inherits from GBParagraphItem : NSObject
Declared in GBParagraphDecoratorItem.h
GBParagraphDecoratorItem.m

Overview

Specifies a decorator paragraph item.

Decorator items wrap an array of GBParagraphItem and speficies a decoration to be applied over them. Use decorationType to determine the type of decoration and decoratedItems to get the array of item to be decorated.

Tasks

Item handling

Values

Other Methods

Properties

decoratedItems

The GBParagraphItem instances we're decorating.

@property (readonly) NSArray *decoratedItems

Discussion

Items can be registered through registerItem: or registerItems: methods.

Declared In

GBParagraphDecoratorItem.h

decorationType

The type of decoration to apply over assigned decoratedItems.

@property (assign) GBDecorationType decorationType

Declared In

GBParagraphDecoratorItem.h

Instance Methods

descriptionStringValue

String value as used in debug description.

- (NSString *)descriptionStringValue

Discussion

By default this returns string value trimmed to a predefined maximum length, but subclasses can override to provide their specific implementation. This is only used for debugging purposes and should not be used for any output generation! See description method implementation for details.

Sending this message is equivalent to sending descriptionForStringValue: to receiver and passing it stringValue as the parameter.

Declared In

GBParagraphItem.h@48 -> GBParagraphDecoratorItem.m

isBoldDecoratorItem

Returns YES if this is bold decorator item. This is only used to simplify output generation!

- (BOOL)isBoldDecoratorItem

Declared In

GBParagraphItem.h@78 -> GBParagraphDecoratorItem.m

isCodeDecoratorItem

Returns YES if this is code decorator item. This is only used to simplify output generation!

- (BOOL)isCodeDecoratorItem

Declared In

GBParagraphItem.h@84 -> GBParagraphDecoratorItem.m

isItalicsDecoratorItem

Returns YES if this is italics decorator item. This is only used to simplify output generation!

- (BOOL)isItalicsDecoratorItem

Declared In

GBParagraphItem.h@81 -> GBParagraphDecoratorItem.m

registerItem:

Registers the given item to the end of decoratedItems array.

- (void)registerItem:(GBParagraphItem *)item

Parameters

item
The item to register.

Exceptions

NSException
Thrown if the given item is nil.

Declared In

GBParagraphDecoratorItem.h

replaceItemsByRegisteringItemsFromArray:

Replaces the decoratedItems array with the objects from the given array.

- (void)replaceItemsByRegisteringItemsFromArray:(NSArray *)items

Parameters

items
The array of GBParagraphItem instances to register.

See Also

Declared In

GBParagraphDecoratorItem.h