Ananas Library 0.9.5
|
#include <amsotemplate.h>
Public Member Functions | |
virtual bool | open (const QString &fname) |
virtual void | close () |
virtual void | clear () |
virtual QString | getValue (const QString &name) |
virtual void | setValue (const QString &name, const QString &value) |
virtual QString | exec (const QString &sname) |
virtual QString | result () |
virtual bool | save (const QString &fname) |
virtual void | cleanUpTags () |
virtual void | setDir (const QString &dir) |
virtual QString | getDir () |
Public Member Functions inherited from iTemplate | |
iTemplate () | |
virtual | ~iTemplate () |
Protected Member Functions | |
void | searchTags (QDomNode node, const QString &sname) |
virtual bool | getNodeTags (QDomNode node, const QString &tagname, bool params) |
void | insertRowValues (QDomNode node) |
virtual void | insertTagsValues (QDomNode node, const QString &tagName) |
void | clearTags (QDomNode node, bool section) |
void | clearRow (QDomNode node) |
void | clearAttributes (QDomNode n, const QString node, const QString attr) |
int | getRowIndex (QDomNode node) |
Protected Attributes | |
QMap< QString, QString > | values |
QString | templateDir |
QDomDocument | docTpl |
Class for work with pattern in Microsoft Office Word 2003 format
|
virtual |
clears all tags from pattern
Reimplemented from iTemplate.
References clearAttributes(), clearRow(), clearTags(), and docTpl.
|
virtual |
clears internal variable.
Reimplemented from iTemplate.
|
protected |
Deletes from node attribute
node | - context |
nodename | - node name |
attr | - attribut name |
References clearAttributes().
Referenced by cleanUpTags(), and clearAttributes().
|
protected |
Deletes row, having section tag
node | - context |
References clearRow().
Referenced by cleanUpTags(), and clearRow().
|
protected |
Deletes tags from node
node | - context |
section | - |
References clearTags().
Referenced by cleanUpTags(), clearTags(), and insertRowValues().
|
virtual |
|
virtual |
Execute replace tags to values.
sname | - name of parametr. |
Reimplemented from iTemplate.
References docTpl, getValue(), searchTags(), and setValue().
|
virtual |
The catalogue for storage of time files of the report
Reimplemented from iTemplate.
|
protectedvirtual |
Return true, if node contain tag
node | - context for searching |
sname | - tag name |
params | - true, if find simple tag and false, if section |
Referenced by searchTags().
|
protected |
|
virtual |
Returns value parameter name
name | - name of parametr. |
Reimplemented from iTemplate.
References aLog::print().
Referenced by exec(), and insertTagsValues().
|
protected |
insert new row in table and replace tag to value
node | - context for inserting |
References clearTags(), getRowIndex(), and searchTags().
Referenced by searchTags().
|
protectedvirtual |
Addes to tag value of parametr tagName
node | - context |
sname | - tag name |
References getValue().
Referenced by searchTags().
|
virtual |
Open pattern.
fname | name of pattern. |
Implements iTemplate.
References docTpl, aLog::print(), and templateDir.
|
virtual |
|
virtual |
|
protected |
Added value to end tag with name ‘sname’. Don't deletes tag.
node | - context for searching |
sname | - tag name |
References getNodeTags(), insertRowValues(), insertTagsValues(), and searchTags().
Referenced by exec(), insertRowValues(), and searchTags().
|
virtual |
clears all tags from pattern
dir | - The catalogue in which is a pattern |
Reimplemented from iTemplate.
References templateDir.
|
virtual |
|
protected |
|
protected |