filters

Element Class Referenceabstract

#include <element.h>

Inheritance diagram for Element:
XmlParser Border Formula Formula PixmapFrame Table TextFrame

Public Types

enum  EType { LATEX_NONE , LATEX_ENV , LATEX_MATH , LATEX_COMMAND }

Public Member Functions

 Element ()
SSect getSection () const
SType getType () const
SInfo getInfo () const
TQString getName () const
bool isVisible () const
bool isRemovable () const
TQString getGrpMgr () const
int getRow () const
int getCol () const
int getRows () const
int getCols () const
bool isTable () const
void setType (SType t)
void setSection (SSect s)
void setVisible (bool v)
void setRemovable (bool r)
void setGrpMgr (TQString g)
void setRow (int r)
void setCol (int c)
void setRows (int r)
void setCols (int c)
virtual void analyse (const TQDomNode)
virtual void generate (TQTextStream &)=0
EType getType () const
virtual TQString getName () const
void setType (EType t)
virtual void print (int tab=0)=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 ()
Public Member Functions inherited from Border
 Border ()
bool hasLeftBorder () const
bool hasRightBorder () const
bool hasTopBorder () const
bool hasBottomBorder () const
int getLeftWidth () const
int getRightWidth () const
int getTopWidth () const
int getBottomWidth () const
int getLeftRed () const
int getLeftGreen () const
int getLeftBlue () const
int getRightRed () const
int getRightGreen () const
int getRightBlue () const
int getTopRed () const
int getTopGreen () const
int getTopBlue () const
int getBottomRed () const
int getBottomGreen () const
int getBottomBlue () const
int getLeftStyle () const
int getRightStyle () const
int getTopStyle () const
int getBottomStyle () const
int getBkRed () const
int getBkGreen () const
int betBkBlue () const
void useLeftBorder ()
void useRightBorder ()
void useTopBorder ()
void useBottomBorder ()
void setLeftWidth (const int w)
void setRightWidth (const int w)
void setTopWidth (const int w)
void setBottomWidth (const int w)
void setLeftRed (const int r)
void setLeftGreen (const int g)
void setLeftBlue (const int b)
void setRightRed (const int r)
void setRightGreen (const int g)
void setRightBlue (const int b)
void setTopRed (const int r)
void setTopGreen (const int g)
void setTopBlue (const int b)
void setBottomRed (const int r)
void setBottomGreen (const int g)
void setBottomBlue (const int b)
void setLeftStyle (const int l)
void setRightStyle (const int r)
void setTopStyle (const int t)
void setBottomStyle (const int b)
void setBkRed (const int r)
void setBkGreen (const int g)
void setBkBlue (const int b)
void generate (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 is a element.

An element is a component of a frame (text, picture, formula, ...).

Definition at line 97 of file export/element.h.

Member Enumeration Documentation

◆ EType

enum Element::EType

Definition at line 33 of file import/parser/element.h.

Constructor & Destructor Documentation

◆ Element()

Element::Element ( )

Constructors.

Creates a new instance of Element.

Definition at line 29 of file export/element.cpp.

◆ ~Element()

Element::~Element ( )
virtual

Definition at line 47 of file export/element.cpp.

Member Function Documentation

◆ analyse()

void Element::analyse ( const TQDomNode balise_initiale)
virtual

Helpfull functions.

Get informations about frameset markupt only from a markup tree.

Reimplemented in Formula, Formula, PixmapFrame, Table, and TextFrame.

Definition at line 55 of file export/element.cpp.

◆ generate()

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

Implemented in Formula, Formula, and TextFrame.

◆ getCol()

int Element::getCol ( ) const
inline

Definition at line 142 of file export/element.h.

◆ getCols()

int Element::getCols ( ) const
inline

Definition at line 144 of file export/element.h.

◆ getGrpMgr()

TQString Element::getGrpMgr ( ) const
inline

Definition at line 140 of file export/element.h.

◆ getInfo()

SInfo Element::getInfo ( ) const
inline

Definition at line 136 of file export/element.h.

◆ getName() [1/2]

TQString Element::getName ( ) const
inline

Definition at line 137 of file export/element.h.

◆ getName() [2/2]

virtual TQString Element::getName ( ) const
inlinevirtual

Definition at line 43 of file import/parser/element.h.

◆ getRow()

int Element::getRow ( ) const
inline

Definition at line 141 of file export/element.h.

◆ getRows()

int Element::getRows ( ) const
inline

Definition at line 143 of file export/element.h.

◆ getSection()

SSect Element::getSection ( ) const
inline

Accessors.

Definition at line 134 of file export/element.h.

◆ getType() [1/2]

SType Element::getType ( ) const
inline

Definition at line 135 of file export/element.h.

◆ getType() [2/2]

EType Element::getType ( ) const
inline

Definition at line 42 of file import/parser/element.h.

◆ isRemovable()

bool Element::isRemovable ( ) const
inline

Definition at line 139 of file export/element.h.

◆ isTable()

bool Element::isTable ( ) const
inline

Definition at line 145 of file export/element.h.

◆ isVisible()

bool Element::isVisible ( ) const
inline

Definition at line 138 of file export/element.h.

◆ setCol()

void Element::setCol ( int c)
inline

Definition at line 156 of file export/element.h.

◆ setCols()

void Element::setCols ( int c)
inline

Definition at line 158 of file export/element.h.

◆ setGrpMgr()

void Element::setGrpMgr ( TQString g)
inline

Definition at line 154 of file export/element.h.

◆ setRemovable()

void Element::setRemovable ( bool r)
inline

Definition at line 153 of file export/element.h.

◆ setRow()

void Element::setRow ( int r)
inline

Definition at line 155 of file export/element.h.

◆ setRows()

void Element::setRows ( int r)
inline

Definition at line 157 of file export/element.h.

◆ setSection()

void Element::setSection ( SSect s)
inline

Definition at line 151 of file export/element.h.

◆ setType() [1/2]

void Element::setType ( EType t)
inline

Definition at line 46 of file import/parser/element.h.

◆ setType() [2/2]

void Element::setType ( SType t)
inline

Modifiors.

Definition at line 150 of file export/element.h.

◆ setVisible()

void Element::setVisible ( bool v)
inline

Definition at line 152 of file export/element.h.


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