xmlobj.h
author insilmaril
Mon Jan 07 14:52:49 2008 +0000 (2008-01-07)
changeset 639 75a84df12d8b
child 721 12958f987bcf
permissions -rw-r--r--
Included french in vym.pro
insilmaril@621
     1
#ifndef XMLOBJ_H
insilmaril@621
     2
#define XMLOBJ_H
insilmaril@621
     3
insilmaril@621
     4
#include <QString>
insilmaril@621
     5
insilmaril@621
     6
QString quotemeta(const QString&);	
insilmaril@621
     7
insilmaril@621
     8
/////////////////////////////////////////////////////////////////////////////
insilmaril@621
     9
class XMLObj
insilmaril@621
    10
{
insilmaril@621
    11
public:
insilmaril@621
    12
    XMLObj();
insilmaril@621
    13
    QString singleElement(QString,QString);			// name,attr
insilmaril@621
    14
    QString beginElement(QString,QString);			// name,attr
insilmaril@621
    15
    QString beginElement(QString);					// name
insilmaril@621
    16
    QString endElement  (QString);					// name
insilmaril@621
    17
    QString attribut    (QString,QString);			// name, val
insilmaril@621
    18
    QString valueElement(QString,QString);			// name, val
insilmaril@621
    19
    QString valueElement(QString,QString,QString);	// name, attr, val
insilmaril@621
    20
    void incIndent();
insilmaril@621
    21
    void decIndent();
insilmaril@621
    22
    static int actindent;
insilmaril@621
    23
insilmaril@621
    24
protected:  
insilmaril@621
    25
    QString indent();
insilmaril@621
    26
    int indentwidth;
insilmaril@621
    27
};
insilmaril@621
    28
insilmaril@621
    29
#endif