Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: TXTSTYLE.H

Class RParagraphStyleInfo

class RParagraphStyleInfo;

Description

A paragraph style.

This is a named set of paragraph and character format attributes, which can only be applied to whole paragraphs. Paragraph styles may be used in rich text. Global text does not support styles.

This class owns a pointer to an object of class CParagraphStyle, which stores the style information for the current paragraph; it also references another pointer which is optional, and stores the style information for the next paragraph. After construction, the RParagraphStyleInfo object should be appended to a style list (class CStyleList) which takes ownership of it.

Members

Defined in RParagraphStyleInfo:
Discard(), RParagraphStyleInfo(), RParagraphStyleInfo(), iStyle, iStyleForNextPara


Construction and destruction


RParagraphStyleInfo()

inline RParagraphStyleInfo();

Description

This default C++ constructor is used to construct the object, initializing both style pointers to NULL.


RParagraphStyleInfo()

inline RParagraphStyleInfo(CParagraphStyle *aStyle, CParagraphStyle *aStyleForNextPara=0);

Description

The C++ constructor is used to construct the object with a pointer to the style information for the current paragraph and optionally a pointer to the style information for the next paragraph.

Parameters

CParagraphStyle *aStyle

The style to apply to the current paragraph.

CParagraphStyle *aStyleForNextPara

Optionally, the style to apply to the next paragraph. By default, NULL.

[Top]


Member functions


Discard()

inline void Discard();

Description

Deletes the style pointer owned by the object. The pointer to the style for the following paragraph is not deleted.

[Top]


Member data


iStyle

CParagraphStyle * iStyle;

Description

Pointer to the paragraph style information. Owned by the RParagraphStyleInfo object.


iStyleForNextPara

CParagraphStyle * iStyleForNextPara;

Description

Pointer to the paragraph style information for the next paragraph. May be NULL.