Location:
txtstyle.h
Link against: etext.lib
CParagraphStyle
Supported from 5.0
Defines a paragraph style. A paragraph style is a named paragraph format layer which owns a set of character format attributes, has an outline level and a type UID. The outline level controls which headings should be shown when in document outline view. The type UID is used to differentiate between the word processor's built-in styles, which cannot be deleted, and user-defined styles, which can be deleted.
The style's paragraph format attributes can be set using the
functions derived from the base class CParaFormatLayer
. Its
character format attributes can be set through the owned
CCharFormatLayer*
. The style's character and paragraph format
attributes are based on the global format layers specified on
construction.
|
Defined in CParagraphStyle
:
CharFormatLayer()
, CloneL()
, EAddNewStyles
, EConvertNewStyles
, EIgnoreNewStyles
, ERetainAllSpecificFormats
, ERetainNoSpecificFormats
, ERetainSpecificCharFormat
, ERetainSpecificParaFormat
, NewL()
, OutlineLevel()
, SetOutlineLevel()
, SetType()
, TApplyParaStyleMode
, TStylePasteMode
, Type()
, iName
, ~CParagraphStyle()
Inherited from CBase
:
operator new()
Inherited from CFormatLayer
:
ChainCount()
,
ExternalizeChainL()
,
InternalizeChainL()
,
IsEmpty()
,
Reset()
,
SenseBase()
,
SetBase()
Inherited from CParaFormatLayer
:
ExternalizeL()
,
InternalizeL()
,
IsIdentical()
,
IsIdenticalL()
,
Ptr()
,
SenseEffectiveL()
,
SenseL()
,
SetL()
static CParagraphStyle* NewL(const CParaFormatLayer& aGlobalParaFormatLayer,const CCharFormatLayer& aGlobalCharFormatLayer);
Allocates and constructs a CParagraphStyle
object
whose formatting is based on a global paragraph and character format layer. The
type UID is initialised to KUserDefinedParagraphStyleUid
. The
outline level is not initialised.
|
|
~CParagraphStyle();
The destructor frees all resources owned by the object, prior to its destruction.
void SetOutlineLevel(TInt aOutlineLevel);
Sets the style’s outline level.
|
void SetType(TUid aType);
Sets the style’s type UID. On construction, the style’s
type UID is initialized to KUserDefinedParagraphStyleUid
to
distinguish it from ordinary paragraph format layers, which have a type of
KNormalParagraphStyleUid
. This function can be used to change it
to another value.
|
CParagraphStyle* CloneL()const;
Creates and returns a CParagraphStyle
object which is a
clone of the current style.
|
TInt OutlineLevel()const;
Gets the style’s outline level.
|
virtual TUid Type()const;
Gets the style’s type UID.
|
CCharFormatLayer* CharFormatLayer()const;
Gets a pointer to the character format layer owned by the object.
Note
The style's character formatting is set and retrieved using this pointer.
|
TApplyParaStyleMode
Retention of specific formatting
|
TStylePasteMode
Controls what happens to the styles when styled rich text is pasted into another rich text object.
|
TParagraphStyleName iName
Unique style name, with a maximum of 32 characters.