filters

Para Class Reference

#include <para.h>

Inheritance diagram for Para:

Layout TextFormat Format XmlParser XmlParser ListPara List of all members.

Detailed Description

This class hold a real paragraph.

It tells about the text in this paragraph, its format, etc. The complete text is a list of Para instances. A footnote is a list of paragraph instances (now but not in the "futur").

Definition at line 58 of file para.h.


Public Member Functions

 Para (TextFrame *textFrame=0)
virtual ~Para ()
QString * getName () const
EP_INFO getInfo () const
TextFrame * getFrame () const
SSect getFrameType () const
EFormat getTypeFormat (const QDomNode) const
int getNbCharPara () const
bool notEmpty () const
void analyse (const QDomNode)
void generate (QTextStream &)
void generateBeginEnv (QTextStream &)
void generateEndEnv (QTextStream &)
void generateTitle (QTextStream &)
void openList (QTextStream &)
void closeList (QTextStream &, Para *)

Constructor & Destructor Documentation

Para::Para ( TextFrame *  textFrame = 0  ) 

Constructors.

Creates a new instance of Para.

Parameters:
Text The text frame this paragraph is belonging to.

Definition at line 41 of file para.cc.


Member Function Documentation

QString* Para::getName (  )  const [inline]

Returns:
the paragraph's name.

Definition at line 110 of file para.h.

EP_INFO Para::getInfo (  )  const [inline]

Returns:
the paragraph's type (contents or footnote).

Definition at line 114 of file para.h.

TextFrame* Para::getFrame (  )  const [inline]

Returns:
the frame the paragraph belonging to.

Definition at line 118 of file para.h.

SSect Para::getFrameType (  )  const

Returns:
the frame type (Header, footer, body, footnote or table, .

..).

Definition at line 69 of file para.cc.

EFormat Para::getTypeFormat ( const   QDomNode  )  const

Returns:
the next format type (picture, text, variable, footnote).

Definition at line 80 of file para.cc.

int Para::getNbCharPara (  )  const

Returns:
count the number of characters in the paragraph.

Definition at line 92 of file para.cc.

void Para::analyse ( const   QDomNode  )  [virtual]

Get informations from a markup tree.

Reimplemented from Format.

Definition at line 129 of file para.cc.

void Para::generate ( QTextStream &   )  [virtual]

Write the paragraph in a file.

Implements Format.

Definition at line 359 of file para.cc.

void Para::generateBeginEnv ( QTextStream &   ) 

If the paragraph has a different environment, change it.

Definition at line 447 of file para.cc.

void Para::generateEndEnv ( QTextStream &   ) 

If the next paragraph has a different environment, close it.

Definition at line 545 of file para.cc.

void Para::generateTitle ( QTextStream &   ) 

If the paragraph is a title, generate the command.

Definition at line 657 of file para.cc.

void Para::openList ( QTextStream &   ) 

Write the markup to begin a list.

Definition at line 476 of file para.cc.

void Para::closeList ( QTextStream &  ,
Para *   
)

Write the markup to close a list.

Definition at line 584 of file para.cc.


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