|
Ananas Library
0.9.5
|
#include <aootemplate.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 | setDir (const QString &dirName) |
| virtual QString | getDir () |
| virtual void | cleanUpTags () |
| virtual bool | lineFeedRemove (const QString &filename) |
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) |
Protected Attributes | |
| QString | copyName |
| QString | templateDir |
| QMap< QString, QString > | values |
| QDomDocument | docTpl |
| QDomDocument | docStyle |
Class for work with pattern in OpenOffice format
|
virtual |
clears all tags from pattern
Reimplemented from iTemplate.
References clearRow(), clearTags(), docStyle, and docTpl.
|
virtual |
clears internal variable.
Reimplemented from iTemplate.
|
protected |
|
protected |
Deletes tags from node
| node | - context |
| section | - |
Referenced by cleanUpTags(), and insertRowValues().
|
virtual |
|
virtual |
Execute replace tags to values.
Reimplemented from iTemplate.
References docStyle, docTpl, getValue(), searchTags(), and setValue().
|
virtual |
Gets working directory
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 |
Reimplemented in aCalcTemplate.
Referenced by searchTags().
|
virtual |
Returns value parameter name
Reimplemented from iTemplate.
References aLog::print().
Referenced by exec(), aCalcTemplate::insertTagsValues(), and insertTagsValues().
|
protected |
insert new row in table and replace tag to value
References clearTags(), and searchTags().
Referenced by searchTags().
|
protectedvirtual |
Addes to tag value of parametr tagName
| node | - context |
| sname | - tag name |
Reimplemented in aCalcTemplate.
References getValue().
Referenced by searchTags().
|
virtual |
|
virtual |
Open pattern.
| fname |
Implements iTemplate.
References copyName, docStyle, docTpl, aLog::print(), and templateDir.
|
virtual |
|
virtual |
Save pattern
Reimplemented from iTemplate.
References copyName, docStyle, docTpl, lineFeedRemove(), aLog::print(), and templateDir.
|
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 |
|
virtual |
|
protected |
|
protected |
Variable for store unpacking teplate stales
Referenced by cleanUpTags(), close(), exec(), open(), and save().
|
protected |
|
protected |
1.8.5