filters

Layout Class Reference

#include <layout.h>

Inheritance diagram for Layout:
TextFormat Format XmlParser XmlParser Para

Public Member Functions

 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 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 tells about a paragraph and its contents.

For example, a list, a title and the format for the paragraph.

Definition at line 66 of file layout.h.

Constructor & Destructor Documentation

◆ Layout()

Layout::Layout ( )

Constructors.

Creates a new instance of Layout.

Definition at line 37 of file layout.cpp.

◆ ~Layout()

virtual Layout::~Layout ( )
inlinevirtual

Definition at line 95 of file layout.h.

Member Function Documentation

◆ analyseLayout()

void Layout::analyseLayout ( const TQDomNode  balise)

Helpfull functions.

Definition at line 55 of file layout.cpp.

◆ getCounterBullet()

int Layout::getCounterBullet ( ) const
inline

Definition at line 111 of file layout.h.

◆ getCounterDepth()

int Layout::getCounterDepth ( ) const
inline

Definition at line 110 of file layout.h.

◆ getCounterStart()

int Layout::getCounterStart ( ) const
inline

Definition at line 112 of file layout.h.

◆ getCounterType()

EType Layout::getCounterType ( ) const
inline

Definition at line 109 of file layout.h.

◆ getEnv()

EEnv Layout::getEnv ( ) const
inline

Definition at line 114 of file layout.h.

◆ getLastCounter()

EType Layout::getLastCounter ( ) const
inline

Definition at line 108 of file layout.h.

◆ getLastName()

TQString Layout::getLastName ( ) const
inline

Definition at line 107 of file layout.h.

◆ getNumberingType()

int Layout::getNumberingType ( ) const
inline

Definition at line 113 of file layout.h.

◆ isChapter()

bool Layout::isChapter ( ) const
inline

Accessors.

Definition at line 102 of file layout.h.

◆ isEnum()

bool Layout::isEnum ( ) const
inline

Definition at line 104 of file layout.h.

◆ isHardBreak()

bool Layout::isHardBreak ( ) const
inline

Definition at line 116 of file layout.h.

◆ isHardBreakAfter()

bool Layout::isHardBreakAfter ( ) const
inline

Definition at line 115 of file layout.h.

◆ isKeppLinesTogether()

bool Layout::isKeppLinesTogether ( ) const
inline

Definition at line 117 of file layout.h.

◆ isLastSame()

bool Layout::isLastSame ( ) const
inline

Definition at line 105 of file layout.h.

◆ isList()

bool Layout::isList ( ) const
inline

Definition at line 103 of file layout.h.

◆ isNextSame()

bool Layout::isNextSame ( ) const
inline

Definition at line 106 of file layout.h.

◆ keepLinesTogether()

void Layout::keepLinesTogether ( )
inline

Definition at line 134 of file layout.h.

◆ setCounterBullet()

void Layout::setCounterBullet ( int  cb)
inline

Definition at line 128 of file layout.h.

◆ setCounterDepth()

void Layout::setCounterDepth ( int  cd)
inline

Definition at line 127 of file layout.h.

◆ setCounterStart()

void Layout::setCounterStart ( int  cs)
inline

Definition at line 129 of file layout.h.

◆ setCounterType()

void Layout::setCounterType ( int  ct)
inline

Definition at line 126 of file layout.h.

◆ setEnv()

void Layout::setEnv ( int  env)
inline

Definition at line 131 of file layout.h.

◆ setFollowing()

void Layout::setFollowing ( TQString  name)
inline

Definition at line 125 of file layout.h.

◆ setLastCounter()

void Layout::setLastCounter ( )
inline

Definition at line 124 of file layout.h.

◆ setLastName()

void Layout::setLastName ( )
inline

Definition at line 123 of file layout.h.

◆ setName()

void Layout::setName ( TQString  name)
inline

Modifiers.

Definition at line 122 of file layout.h.

◆ setNumberingType()

void Layout::setNumberingType ( int  nt)
inline

Definition at line 130 of file layout.h.

◆ useHardBreak()

void Layout::useHardBreak ( )
inline

Definition at line 133 of file layout.h.

◆ useHardBreakAfter()

void Layout::useHardBreakAfter ( )
inline

Definition at line 132 of file layout.h.


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