filters

DomNode Class Reference

List of all members.

Detailed Description

Definition at line 26 of file rtfimport_dom.h.


Public Member Functions

 DomNode ()
 DomNode (const char *doctype)
void clear (int level=0)
void addNode (const char *name)
void addTextNode (const char *text, QTextCodec *codec)
void addBorder (int id, const QColor &color, int style, double width)
void addColor (const QColor &color)
void addRect (int left, int top, int right, int bottom)
void addKey (const QDateTime &dt, const QString &filename, const QString &name=QString::null)
void addFrameSet (const char *name, int frameType, int frameInfo)
void addFrame (int left, int top, int right, int bottom, int autoCreateNewFrame, int newFrameBehaviour, int sheetSide)
void setAttribute (const QString &attribute, const QString &value)
void setAttribute (const char *name, int value)
void setAttribute (const char *name, double value)
void closeNode (const char *name)
void closeTag (bool nl)
void appendNode (const DomNode &child)
void append (const QCString &cstr)
void append (const QString &_str)
void append (const char ch)
bool isEmpty () const
QString toString () const

Constructor & Destructor Documentation

DomNode::DomNode const char *  doctype  ) 
 

Creates a new document.

Parameters:
doctype the document type (tag)

Definition at line 67 of file rtfimport_dom.cpp.


Member Function Documentation

void DomNode::addBorder int  id,
const QColor &  color,
int  style,
double  width
 

Add border to existing frameset (see KWord DTD).

Definition at line 124 of file rtfimport_dom.cpp.

void DomNode::addColor const QColor &  color  ) 
 

Add color attributes to document node.

Parameters:
color the color

Definition at line 143 of file rtfimport_dom.cpp.

void DomNode::addFrame int  left,
int  top,
int  right,
int  bottom,
int  autoCreateNewFrame,
int  newFrameBehaviour,
int  sheetSide
 

Add frame to existing frameset (see KWord DTD).

Definition at line 205 of file rtfimport_dom.cpp.

void DomNode::addFrameSet const char *  name,
int  frameType,
int  frameInfo
 

Add frameset to document (see KWord DTD).

Definition at line 192 of file rtfimport_dom.cpp.

void DomNode::addKey const QDateTime &  dt,
const QString &  filename,
const QString &  name = QString::null
 

Add pixmap or clipart key.

Parameters:
dt date/time
filename the filename of the image
name the relative path to the image in the store (optional)

Definition at line 167 of file rtfimport_dom.cpp.

void DomNode::addNode const char *  name  ) 
 

Adds a new node.

Parameters:
name the name of the new node (tag)

Definition at line 94 of file rtfimport_dom.cpp.

void DomNode::addRect int  left,
int  top,
int  right,
int  bottom
 

Add rectangle attributes to document node.

Definition at line 153 of file rtfimport_dom.cpp.

void DomNode::addTextNode const char *  text,
QTextCodec *  codec
 

Adds a text node.

Parameters:
text the text to write into the document node

Definition at line 107 of file rtfimport_dom.cpp.

void DomNode::append const QString &  _str  ) 
 

Appends XML text to node.

Definition at line 315 of file rtfimport_dom.cpp.

void DomNode::append const QCString &  cstr  ) 
 

Appends XML text to node.

Definition at line 320 of file rtfimport_dom.cpp.

void DomNode::appendNode const DomNode child  ) 
 

Appends a child node.

Parameters:
child the node to append to this document node

Definition at line 305 of file rtfimport_dom.cpp.

void DomNode::clear int  level = 0  ) 
 

Creates a new document node (no memory allocation).

Parameters:
level the document depth of the node

Definition at line 82 of file rtfimport_dom.cpp.

void DomNode::closeNode const char *  name  ) 
 

Closes a document node.

Parameters:
name the node (tag) to close

Definition at line 256 of file rtfimport_dom.cpp.

void DomNode::closeTag bool  nl  ) 
 

Closes the current XML tag (if open).

Parameters:
nl add a newline

Definition at line 281 of file rtfimport_dom.cpp.

bool DomNode::isEmpty  )  const
 

Returns true if node is empty.

Definition at line 333 of file rtfimport_dom.cpp.

void DomNode::setAttribute const char *  name,
double  value
 

Sets a new attribute to a double value.

Definition at line 245 of file rtfimport_dom.cpp.

void DomNode::setAttribute const char *  name,
int  value
 

Sets a new attribute to an integer value.

Definition at line 235 of file rtfimport_dom.cpp.

void DomNode::setAttribute const QString &  attribute,
const QString &  value
 

Sets a new attribute to a string value.

Definition at line 221 of file rtfimport_dom.cpp.

QString DomNode::toString  )  const
 

Returns the data of the document node.

Definition at line 341 of file rtfimport_dom.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys