hcd+="</li>\n";
}
hcd+="</ul>\n";
+ //privileges
+ QStringList pri=trn.privileges();
+ if(pri.size()){
+ hcd+="<h2>Privileges</h2>\n<ul>\n";
+ for(int i=0;i<pri.size();i++){
+ hcd+="<li>"+pri[i];
+ QString d=trn.privilegeDoc(pri[i]);
+ if(d!="")
+ hcd+="<br/>"+d;
+ hcd+="</li>\n";
+ }
+ hcd+="</ul>\n";
+ }
hcd+="</body></html>\n";
htm.write(hcd.toAscii());
}
for(int i=0;i<nl.size();i++){
QString s=nl.at(i).toElement().attribute("name").trimmed();
if(s!="")m_privileges<<s;
+ m_privdoc.insert(s,nl.at(i).toElement().text().trimmed());
}
}
/**return docu of output element*/
QString outputDoc(QString v)const
{if(m_outdoc.contains(v))return m_outdoc[v];else return "";}
+ /**return docu of a privilege*/
+ QString privilegeDoc(QString p)const
+ {if(m_privdoc.contains(p))return m_privdoc[p];else return "";}
/**return privileges that exist inside this transaction*/
QStringList privileges()const{return m_privileges;}
QStringList m_privileges;
//docu
QStringList m_docstrings;
- QMap<QString,QString>m_indoc,m_outdoc;
+ QMap<QString,QString>m_indoc,m_outdoc,m_privdoc;
};
/**base class of all output generators*/