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::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::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::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::addBorder | ( | int | id, | |
| const QColor & | color, | |||
| int | style, | |||
| double | width | |||
| ) |
| 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::addRect | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) |
| 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::addFrameSet | ( | const char * | name, | |
| int | frameType, | |||
| int | frameInfo | |||
| ) |
| void DomNode::addFrame | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| int | autoCreateNewFrame, | |||
| int | newFrameBehaviour, | |||
| int | sheetSide | |||
| ) |
| void DomNode::setAttribute | ( | const QString & | attribute, | |
| const QString & | value | |||
| ) |
| void DomNode::setAttribute | ( | const char * | name, | |
| int | value | |||
| ) |
| void DomNode::setAttribute | ( | const char * | name, | |
| double | value | |||
| ) |
| 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.
| 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::append | ( | const QCString & | cstr | ) |
| void DomNode::append | ( | const QString & | _str | ) |
| bool DomNode::isEmpty | ( | ) | const |
| QString DomNode::toString | ( | ) | const |
The documentation for this class was generated from the following files:

