filters

TextFormat Class Reference

#include <textformat.h>

Inheritance diagram for TextFormat:
Format XmlParser XmlParser Layout TextZone Para VariableFormat VariableZone

Public Member Functions

 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 analyse (const TQDomNode)
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)
virtual void analyse (const TQDomNode)
virtual void generate (TQTextStream &)=0
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 holds information formating the textzone.

It may be incorporated in few time in textzone.

Definition at line 69 of file textformat.h.

Constructor & Destructor Documentation

◆ TextFormat()

TextFormat::TextFormat ( )
inline

Constructors.

Creates a new instance of TextFormat.

Definition at line 90 of file textformat.h.

◆ ~TextFormat()

virtual TextFormat::~TextFormat ( )
inlinevirtual

Definition at line 107 of file textformat.h.

Member Function Documentation

◆ analyseAlign()

void TextFormat::analyseAlign ( const TQDomNode balise)

Definition at line 244 of file textformat.cpp.

◆ analyseBackgroundColor()

void TextFormat::analyseBackgroundColor ( const TQDomNode balise)

Definition at line 141 of file textformat.cpp.

◆ analyseColor()

void TextFormat::analyseColor ( const TQDomNode balise)

Definition at line 256 of file textformat.cpp.

◆ analyseFont()

void TextFormat::analyseFont ( const TQDomNode balise)
virtual

Reimplemented from Format.

Definition at line 181 of file textformat.cpp.

◆ analyseFormat()

void TextFormat::analyseFormat ( const TQDomNode balise)

Definition at line 110 of file textformat.cpp.

◆ analyseItalic()

void TextFormat::analyseItalic ( const TQDomNode balise)

Definition at line 192 of file textformat.cpp.

◆ analyseParam()

void TextFormat::analyseParam ( const TQDomNode balise)

Definition at line 166 of file textformat.cpp.

◆ analyseSize()

void TextFormat::analyseSize ( const TQDomNode balise)

Definition at line 281 of file textformat.cpp.

◆ analyseStrikeout()

void TextFormat::analyseStrikeout ( const TQDomNode balise)

Definition at line 218 of file textformat.cpp.

◆ analyseUnderlined()

void TextFormat::analyseUnderlined ( const TQDomNode balise)

Definition at line 203 of file textformat.cpp.

◆ analyseWeight()

void TextFormat::analyseWeight ( const TQDomNode balise)

Definition at line 232 of file textformat.cpp.

◆ getAlign()

EAlign TextFormat::getAlign ( ) const
inline

Definition at line 112 of file textformat.h.

◆ getBkColorBlue()

int TextFormat::getBkColorBlue ( ) const

Definition at line 59 of file textformat.cpp.

◆ getBkColorGreen()

int TextFormat::getBkColorGreen ( ) const

Definition at line 67 of file textformat.cpp.

◆ getBkColorRed()

int TextFormat::getBkColorRed ( ) const

Definition at line 75 of file textformat.cpp.

◆ getColorBlue()

int TextFormat::getColorBlue ( ) const

Definition at line 32 of file textformat.cpp.

◆ getColorGreen()

int TextFormat::getColorGreen ( ) const

Definition at line 40 of file textformat.cpp.

◆ getColorRed()

int TextFormat::getColorRed ( ) const

Definition at line 48 of file textformat.cpp.

◆ getSize()

unsigned int TextFormat::getSize ( ) const
inline

Definition at line 110 of file textformat.h.

◆ getUnderlineType()

ETypeUnderline TextFormat::getUnderlineType ( ) const
inline

Definition at line 116 of file textformat.h.

◆ getWeight()

unsigned int TextFormat::getWeight ( ) const
inline

Definition at line 111 of file textformat.h.

◆ isBkColored()

bool TextFormat::isBkColored ( ) const
inline

Definition at line 126 of file textformat.h.

◆ isColor()

bool TextFormat::isColor ( ) const
inline

Definition at line 125 of file textformat.h.

◆ isItalic()

bool TextFormat::isItalic ( ) const
inline

Definition at line 122 of file textformat.h.

◆ isStrikeout()

bool TextFormat::isStrikeout ( ) const
inline

Definition at line 124 of file textformat.h.

◆ isUnderlined()

bool TextFormat::isUnderlined ( ) const
inline

Definition at line 123 of file textformat.h.

◆ setAlign()

void TextFormat::setAlign ( const int a)
inline

Definition at line 146 of file textformat.h.

◆ setBkColor()

void TextFormat::setBkColor ( const int r,
const int g,
const int b )

Definition at line 97 of file textformat.cpp.

◆ setColor()

void TextFormat::setColor ( const int r,
const int g,
const int b )

Definition at line 86 of file textformat.cpp.

◆ setItalic()

void TextFormat::setItalic ( bool i)
inline

Definition at line 131 of file textformat.h.

◆ setPolice()

void TextFormat::setPolice ( TQString p)
inline

Definition at line 145 of file textformat.h.

◆ setSize()

void TextFormat::setSize ( const unsigned int t)
inline

Definition at line 129 of file textformat.h.

◆ setStrikeout()

void TextFormat::setStrikeout ( bool s)
inline

Definition at line 144 of file textformat.h.

◆ setUnderlined() [1/2]

void TextFormat::setUnderlined ( ETypeUnderline u)
inline

Definition at line 132 of file textformat.h.

◆ setUnderlined() [2/2]

void TextFormat::setUnderlined ( TQString u)
inline

Definition at line 133 of file textformat.h.

◆ setWeight()

void TextFormat::setWeight ( const unsigned int w)
inline

Definition at line 130 of file textformat.h.


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