filters

Format Class Referenceabstract

#include <format.h>

Inheritance diagram for Format:
XmlParser XmlParser Anchor Column Footnote Row TextFormat Layout TextZone Para VariableFormat VariableZone

Public Member Functions

 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)
virtual void analyseFont (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 describe a cell, row or column format.

This class describe a format or a part of an element (text zone, picture zone, footnote, ...).

An element has a lot of format. For example, a Text has a lot of text zone but can have a picture too.

Definition at line 42 of file kspread/latex/export/format.h.

Constructor & Destructor Documentation

◆ Format() [1/2]

Format::Format ( )

Constructors.

Creates a new instance of Format.

Parameters
Parathe parent class of the format.

Definition at line 31 of file kspread/latex/export/format.cpp.

◆ ~Format() [1/2]

Format::~Format ( )
virtual

Definition at line 42 of file kspread/latex/export/format.cpp.

◆ Format() [2/2]

Format::Format ( Para * para = 0)
inline

Constructors.

Creates a new instance of Format.

Parameters
Parathe parent class of the format.

Definition at line 73 of file kword/latex/export/format.h.

◆ ~Format() [2/2]

virtual Format::~Format ( )
inlinevirtual

Definition at line 81 of file kword/latex/export/format.h.

Member Function Documentation

◆ analyse() [1/2]

void Format::analyse ( const TQDomNode balise)
virtual

Helpfull functions.

Get informations from a markup tree (only param of a format).

Reimplemented in Anchor, Column, Footnote, Para, Row, TextZone, and VariableZone.

Definition at line 83 of file kspread/latex/export/format.cpp.

◆ analyse() [2/2]

virtual void Format::analyse ( const TQDomNode )
virtual

Helpfull functions.

Get informations from a markup tree (only param of a format).

Reimplemented in Anchor, Column, Footnote, Para, Row, TextZone, and VariableZone.

◆ analyseFont()

void Format::analyseFont ( const TQDomNode balise)
virtual

Definition at line 137 of file kspread/latex/export/format.cpp.

◆ analysePen()

void Format::analysePen ( const TQDomNode balise)
virtual

Definition at line 128 of file kspread/latex/export/format.cpp.

◆ generate() [1/2]

virtual void Format::generate ( TQTextStream & )
pure virtual

Implemented in Para.

◆ generate() [2/2]

void Format::generate ( TQTextStream & out,
Column * col = NULL,
Row * row = NULL )

Generate the cell format inherited from the row or the colum format or use its own format.

Parameters
outThe output stream.
colThe column of this cell.
rowThe row of this cell.

Definition at line 145 of file kspread/latex/export/format.cpp.

◆ generateColor()

void Format::generateColor ( TQTextStream & out)

Generate the color format for a column or a row.

The command can be either columncolor or rowcolor.

Parameters
outThe output stream

Definition at line 192 of file kspread/latex/export/format.cpp.

◆ generateTextFormat()

void Format::generateTextFormat ( TQTextStream & out,
TQString text )

Generate the text cell format (color and font).

Definition at line 179 of file kspread/latex/export/format.cpp.

◆ getAlign()

long Format::getAlign ( ) const
inline

Definition at line 95 of file kspread/latex/export/format.h.

◆ getAlignY()

long Format::getAlignY ( ) const
inline

Definition at line 96 of file kspread/latex/export/format.h.

◆ getAngle()

double Format::getAngle ( ) const
inline

Definition at line 99 of file kspread/latex/export/format.h.

◆ getBgColor()

TQColor Format::getBgColor ( ) const
inline

Definition at line 97 of file kspread/latex/export/format.h.

◆ getBrushColor()

TQColor Format::getBrushColor ( ) const
inline

Definition at line 100 of file kspread/latex/export/format.h.

◆ getBrushStyle()

int Format::getBrushStyle ( ) const
inline

Definition at line 101 of file kspread/latex/export/format.h.

◆ getDontPrintText()

bool Format::getDontPrintText ( ) const
inline

Definition at line 103 of file kspread/latex/export/format.h.

◆ getFontFamily()

TQString Format::getFontFamily ( ) const
inline

Definition at line 122 of file kspread/latex/export/format.h.

◆ getFontSize()

int Format::getFontSize ( ) const
inline

Definition at line 121 of file kspread/latex/export/format.h.

◆ getFontWeight()

int Format::getFontWeight ( ) const
inline

Definition at line 123 of file kspread/latex/export/format.h.

◆ getFormatType()

EFormat Format::getFormatType ( ) const
inline

Definition at line 88 of file kword/latex/export/format.h.

◆ getId()

EFormat Format::getId ( ) const
inline

Accessors.

Definition at line 86 of file kword/latex/export/format.h.

◆ getIndent()

int Format::getIndent ( ) const
inline

Definition at line 102 of file kspread/latex/export/format.h.

◆ getLength()

unsigned int Format::getLength ( ) const
inline

Definition at line 90 of file kword/latex/export/format.h.

◆ getMultirow()

long Format::getMultirow ( ) const
inline

getters

Definition at line 94 of file kspread/latex/export/format.h.

◆ getPara()

Para * Format::getPara ( ) const
inline

Definition at line 87 of file kword/latex/export/format.h.

◆ getPenColor()

TQColor Format::getPenColor ( ) const
inline

Definition at line 118 of file kspread/latex/export/format.h.

◆ getPenStyle()

int Format::getPenStyle ( ) const
inline

Definition at line 117 of file kspread/latex/export/format.h.

◆ getPenWidth()

double Format::getPenWidth ( ) const
inline

Definition at line 116 of file kspread/latex/export/format.h.

◆ getPos()

unsigned int Format::getPos ( ) const
inline

Definition at line 89 of file kword/latex/export/format.h.

◆ getVerticalText()

bool Format::getVerticalText ( ) const
inline

Definition at line 98 of file kspread/latex/export/format.h.

◆ hasBorder()

bool Format::hasBorder ( ) const
inline

Definition at line 105 of file kspread/latex/export/format.h.

◆ hasBottomBorder()

bool Format::hasBottomBorder ( ) const

Definition at line 58 of file kspread/latex/export/format.cpp.

◆ hasLeftBorder()

bool Format::hasLeftBorder ( ) const

Definition at line 66 of file kspread/latex/export/format.cpp.

◆ hasRightBorder()

bool Format::hasRightBorder ( ) const

Definition at line 74 of file kspread/latex/export/format.cpp.

◆ hasTopBorder()

bool Format::hasTopBorder ( ) const

Definition at line 50 of file kspread/latex/export/format.cpp.

◆ isValidFormat()

bool Format::isValidFormat ( ) const
inline

Definition at line 124 of file kspread/latex/export/format.h.

◆ setAlign()

void Format::setAlign ( long a)
inline

setters

Definition at line 129 of file kspread/latex/export/format.h.

◆ setAlignY()

void Format::setAlignY ( long a)
inline

Definition at line 130 of file kspread/latex/export/format.h.

◆ setAngle()

void Format::setAngle ( double a)
inline

Definition at line 134 of file kspread/latex/export/format.h.

◆ setBgColor()

void Format::setBgColor ( TQColor b)
inline

Definition at line 131 of file kspread/latex/export/format.h.

◆ setBrushColor()

void Format::setBrushColor ( TQString bc)
inline

Definition at line 135 of file kspread/latex/export/format.h.

◆ setBrushStyle()

void Format::setBrushStyle ( int bs)
inline

Definition at line 136 of file kspread/latex/export/format.h.

◆ setDontPrintText()

void Format::setDontPrintText ( bool dpt)
inline

Definition at line 138 of file kspread/latex/export/format.h.

◆ setFontFamily()

void Format::setFontFamily ( TQString f)
inline

Definition at line 147 of file kspread/latex/export/format.h.

◆ setFontSize()

void Format::setFontSize ( int s)
inline

Definition at line 146 of file kspread/latex/export/format.h.

◆ setFontWeight()

void Format::setFontWeight ( int w)
inline

Definition at line 148 of file kspread/latex/export/format.h.

◆ setId()

void Format::setId ( int id)
inline

Modifiers.

Definition at line 95 of file kword/latex/export/format.h.

◆ setIndent()

void Format::setIndent ( int indent)
inline

Definition at line 137 of file kspread/latex/export/format.h.

◆ setLength()

void Format::setLength ( const unsigned int t)
inline

Definition at line 98 of file kword/latex/export/format.h.

◆ setMultirow()

void Format::setMultirow ( long mr)
inline

Definition at line 132 of file kspread/latex/export/format.h.

◆ setPara()

void Format::setPara ( Para * para)
inline

Definition at line 96 of file kword/latex/export/format.h.

◆ setPenColor()

void Format::setPenColor ( TQString pc)
inline

Definition at line 143 of file kspread/latex/export/format.h.

◆ setPenStyle()

void Format::setPenStyle ( int ps)
inline

Definition at line 142 of file kspread/latex/export/format.h.

◆ setPenWidth()

void Format::setPenWidth ( double pw)
inline

Definition at line 141 of file kspread/latex/export/format.h.

◆ setPos()

void Format::setPos ( const unsigned int pos)
inline

Definition at line 97 of file kword/latex/export/format.h.

◆ setVerticalText()

void Format::setVerticalText ( bool vt)
inline

Definition at line 133 of file kspread/latex/export/format.h.


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