lib

PunctuationType Class Reference

Inheritance diagram for PunctuationType:

AbstractOperatorType SingleElementType ElementType List of all members.

Detailed Description

Definition at line 374 of file elementtype.h.


Public Member Functions

 PunctuationType (SequenceParser *parser)
virtual luPt getSpaceBefore (const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (MultiElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (RelationType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (PunctuationType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (BracketType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (ComplexElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (InnerElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual QFont getFont (const ContextStyle &context)
virtual void setUpPainter (const ContextStyle &context, QPainter &painter)

Member Function Documentation

luPt PunctuationType::getSpaceBefore ( const ContextStyle context,
ContextStyle::TextStyle  tstyle,
double  factor 
) [virtual]

Returns:
the space to be left before each char for the given style and font size.

Reimplemented from ElementType.

Definition at line 544 of file elementtype.cc.

QFont PunctuationType::getFont ( const ContextStyle context  )  [virtual]

Returns:
the font to be used for this kind of element

Reimplemented from ElementType.

Definition at line 602 of file elementtype.cc.

void PunctuationType::setUpPainter ( const ContextStyle context,
QPainter &  painter 
) [virtual]

sets the painters pen to a appropriate value

Reimplemented from ElementType.

Definition at line 607 of file elementtype.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys