|
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 |
Referenced by cleanUpTags().
|
protected |
|
protected |
Deletes tags from node
| node | - context |
| section | - |
Referenced by cleanUpTags(), 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(), and insertTagsValues().
Referenced by exec(), and insertRowValues().
|
virtual |
clears all tags from pattern
| dir | - The catalogue in which is a pattern |
Reimplemented from iTemplate.
References templateDir.
|
virtual |
|
protected |
|
protected |
1.8.5