filters

#include <para.h>

Inheritance diagram for Para:
Layout TextFormat Format XmlParser XmlParser

Public Member Functions

 Para (TextFrame *textFrame=0)
TQString * getName () const
EP_INFO getInfo () const
TextFrame * getFrame () const
SSect getFrameType () const
EFormat getTypeFormat (const TQDomNode) const
int getNbCharPara () const
bool notEmpty () const
void analyse (const TQDomNode)
void generate (TQTextStream &)
void generateBeginEnv (TQTextStream &)
void generateEndEnv (TQTextStream &)
void generateTitle (TQTextStream &)
void openList (TQTextStream &)
void closeList (TQTextStream &, Para *)
Public Member Functions inherited from Layout
 Layout ()
bool isChapter () const
bool isList () const
bool isEnum () const
bool isLastSame () const
bool isNextSame () const
TQString getLastName () const
EType getLastCounter () const
EType getCounterType () const
int getCounterDepth () const
int getCounterBullet () const
int getCounterStart () const
int getNumberingType () const
EEnv getEnv () const
bool isHardBreakAfter () const
bool isHardBreak () const
bool isKeppLinesTogether () const
void setName (TQString name)
void setLastName ()
void setLastCounter ()
void setFollowing (TQString name)
void setCounterType (int ct)
void setCounterDepth (int cd)
void setCounterBullet (int cb)
void setCounterStart (int cs)
void setNumberingType (int nt)
void setEnv (int env)
void useHardBreakAfter ()
void useHardBreak ()
void keepLinesTogether ()
void analyseLayout (const TQDomNode)
Public Member Functions inherited from TextFormat
 TextFormat ()
unsigned int getSize () const
unsigned int getWeight () const
EAlign getAlign () const
int getColorBlue () const
int getColorGreen () const
int getColorRed () const
ETypeUnderline getUnderlineType () const
int getBkColorBlue () const
int getBkColorGreen () const
int getBkColorRed () const
bool isItalic () const
bool isUnderlined () const
bool isStrikeout () const
bool isColor () const
bool isBkColored () const
void setSize (const unsigned int t)
void setWeight (const unsigned int w)
void setItalic (bool i)
void setUnderlined (ETypeUnderline u)
void setUnderlined (TQString u)
void setStrikeout (bool s)
void setPolice (TQString p)
void setAlign (const int a)
void setColor (const int, const int, const int)
void setBkColor (const int, const int, const int)
void analyseFormat (const TQDomNode)
void analyseParam (const TQDomNode)
void analyseFont (const TQDomNode)
void analyseItalic (const TQDomNode)
void analyseUnderlined (const TQDomNode)
void analyseStrikeout (const TQDomNode)
void analyseWeight (const TQDomNode)
void analyseAlign (const TQDomNode)
void analyseColor (const TQDomNode)
void analyseSize (const TQDomNode)
void analyseBackgroundColor (const TQDomNode)
Public Member Functions inherited from Format
 Format ()
long getMultirow () const
long getAlign () const
long getAlignY () const
TQColor getBgColor () const
bool getVerticalText () const
double getAngle () const
TQColor getBrushColor () const
int getBrushStyle () const
int getIndent () const
bool getDontPrintText () const
bool hasBorder () const
bool hasTopBorder () const
bool hasBottomBorder () const
bool hasLeftBorder () const
bool hasRightBorder () const
double getPenWidth () const
int getPenStyle () const
TQColor getPenColor () const
int getFontSize () const
TQString getFontFamily () const
int getFontWeight () const
bool isValidFormat () const
void setAlign (long a)
void setAlignY (long a)
void setBgColor (TQColor b)
void setMultirow (long mr)
void setVerticalText (bool vt)
void setAngle (double a)
void setBrushColor (TQString bc)
void setBrushStyle (int bs)
void setIndent (int indent)
void setDontPrintText (bool dpt)
void setPenWidth (double pw)
void setPenStyle (int ps)
void setPenColor (TQString pc)
void setFontSize (int s)
void setFontFamily (TQString f)
void setFontWeight (int w)
virtual void analysePen (const TQDomNode)
void generate (TQTextStream &out, Column *col=NULL, Row *row=NULL)
void generateTextFormat (TQTextStream &out, TQString text)
void generateColor (TQTextStream &out)
 Format (Para *para=0)
EFormat getId () const
Para * getPara () const
EFormat getFormatType () const
unsigned int getPos () const
unsigned int getLength () const
void setId (int id)
void setPara (Para *para)
void setPos (const unsigned int pos)
void setLength (const unsigned int t)
Public Member Functions inherited from XmlParser
 XmlParser (TQString)
 XmlParser (TQByteArray)
 XmlParser (const KoStore *)
TQString getFilename () const
TQString getDocument () const
Document * getRoot () const
FileHeader * getFileHeader () const
TQString getChildName (TQDomNode, int)
TQDomNode getChild (TQDomNode, TQString)
TQDomNode getChild (TQDomNode, TQString, int)
TQDomNode getChild (TQDomNode, int)
TQString getData (TQDomNode, int)
TQString getData (TQDomNode, TQString)
int getNbChild (TQDomNode, TQString)
int getNbChild (TQDomNode)
TQString getAttr (TQDomNode, TQString) const
bool isChild (TQDomNode, TQString)
void setFileHeader (FileHeader *h)
void setRoot (Document *r)
TQDomNode init ()
 XmlParser (Config *, TQString)
 XmlParser (Config *, TQByteArray)
 XmlParser (Config *, const KoStore *)
TQString getFilename () const
TQString getDocument () const
Document * getRoot () const
KoStore * getStorage () const
TQString getChildName (TQDomNode, int)
TQDomNode getChild (TQDomNode, TQString)
TQDomNode getChild (TQDomNode, TQString, int)
TQDomNode getChild (TQDomNode, int)
TQString getData (TQDomNode, int)
int getNbChild (TQDomNode, TQString)
int getNbChild (TQDomNode)
TQString getAttr (TQDomNode, TQString) const
bool isChild (TQDomNode, TQString)
void setRoot (Document *r)
TQDomNode init ()

Additional Inherited Members

Static Protected Attributes inherited from XmlParser
static FileHeader * _fileHeader = 0
static Document * _root = 0
static TQString _filename

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.

Constructor & Destructor Documentation

◆ Para()

Para::Para ( TextFrame * textFrame = 0)

Constructors.

Creates a new instance of Para.

Parameters
TextThe text frame this paragraph is belonging to.

Definition at line 41 of file para.cpp.

◆ ~Para()

Para::~Para ( )
virtual

Definition at line 56 of file para.cpp.

Member Function Documentation

◆ analyse()

void Para::analyse ( const TQDomNode balise)
virtual

Modifiers.

Helpfull functions Get informations from a markup tree.

Reimplemented from Format.

Definition at line 129 of file para.cpp.

◆ closeList()

void Para::closeList ( TQTextStream & out,
Para * next )

Write the markup to close a list.

Definition at line 584 of file para.cpp.

◆ generate()

void Para::generate ( TQTextStream & out)
virtual

Write the paragraph in a file.

Implements Format.

Definition at line 359 of file para.cpp.

◆ generateBeginEnv()

void Para::generateBeginEnv ( TQTextStream & out)

If the paragraph has a different environment, change it.

Definition at line 447 of file para.cpp.

◆ generateEndEnv()

void Para::generateEndEnv ( TQTextStream & out)

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

Definition at line 545 of file para.cpp.

◆ generateTitle()

void Para::generateTitle ( TQTextStream & out)

If the paragraph is a title, generate the command.

Definition at line 657 of file para.cpp.

◆ getFrame()

TextFrame * Para::getFrame ( ) const
inline
Returns
the frame the paragraph belonging to.

Definition at line 118 of file para.h.

◆ getFrameType()

SSect Para::getFrameType ( ) const
Returns
the frame type (Header, footer, body, footnote or table, ...).

Definition at line 69 of file para.cpp.

◆ getInfo()

EP_INFO Para::getInfo ( ) const
inline
Returns
the paragraph's type (contents or footnote).

Definition at line 114 of file para.h.

◆ getName()

TQString * Para::getName ( ) const
inline

Accessors.

Returns
true if the paragraph has a colored word.
true if the paragraph has a underlined word.
the paragraph's name.

Definition at line 110 of file para.h.

◆ getNbCharPara()

int Para::getNbCharPara ( ) const
Returns
count the number of characters in the paragraph.

Definition at line 92 of file para.cpp.

◆ getTypeFormat()

EFormat Para::getTypeFormat ( const TQDomNode balise) const
Returns
the next format type (picture, text, variable, footnote).

Definition at line 80 of file para.cpp.

◆ notEmpty()

bool Para::notEmpty ( ) const
inline

Definition at line 132 of file para.h.

◆ openList()

void Para::openList ( TQTextStream & out)

Write the markup to begin a list.

Definition at line 476 of file para.cpp.


The documentation for this class was generated from the following files: