#include <textzone.h>
Public Member Functions | |
| TextZone (Para *para=0) | |
| TextZone (TQString text, Para *para=0) | |
| bool | useFormat () const |
| TQString | getTexte () const |
| void | setTexte (TQString texte) |
| TQString | escapeLatin1 (TQString) |
| void | analyse (const TQDomNode) |
| void | analyse () |
| virtual void | generate (TQTextStream &) |
| void | generate_format_begin (TQTextStream &) |
| void | generate_format_end (TQTextStream &) |
| 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 () |
Protected Member Functions | |
| void | display (TQString, TQTextStream &) |
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 zone of text with only one formating.
Definition at line 40 of file textzone.h.
Constructor & Destructor Documentation
◆ TextZone() [1/2]
| TextZone::TextZone | ( | Para * | para = 0 | ) |
Creates a new instance of TextZone.
- Parameters
-
para which is the parent class.
Definition at line 37 of file textzone.cpp.
◆ TextZone() [2/2]
| TextZone::TextZone | ( | TQString | text, |
| Para * | para = 0 ) |
Creates a new instance of TextZOne.
- Parameters
-
text the text in this zone. para which is the parent class.
Definition at line 53 of file textzone.cpp.
◆ ~TextZone()
|
virtual |
Definition at line 69 of file textzone.cpp.
Member Function Documentation
◆ analyse() [1/2]
| void TextZone::analyse | ( | ) |
Definition at line 305 of file textzone.cpp.
◆ analyse() [2/2]
|
virtual |
Helpfull functions.
Get informations from a markup tree (only param of a format).
Reimplemented from Format.
Reimplemented in VariableZone.
Definition at line 282 of file textzone.cpp.
◆ display()
|
protected |
Definition at line 346 of file textzone.cpp.
◆ escapeLatin1()
| TQString TextZone::escapeLatin1 | ( | TQString | text | ) |
convert a unicode text in latin1 enconding ala latex.
Definition at line 91 of file textzone.cpp.
◆ generate()
|
virtual |
Implements Format.
Definition at line 322 of file textzone.cpp.
◆ generate_format_begin()
| void TextZone::generate_format_begin | ( | TQTextStream & | out | ) |
Definition at line 381 of file textzone.cpp.
◆ generate_format_end()
| void TextZone::generate_format_end | ( | TQTextStream & | out | ) |
Definition at line 454 of file textzone.cpp.
◆ getTexte()
|
inline |
Definition at line 75 of file textzone.h.
◆ setTexte()
|
inline |
Definition at line 79 of file textzone.h.
◆ useFormat()
| bool TextZone::useFormat | ( | ) | const |
- Returns
- Specify if the text must be formated.
Definition at line 80 of file textzone.cpp.
The documentation for this class was generated from the following files:
