xmlobj.h
author insilmaril
Mon Aug 04 13:35:54 2008 +0000 (2008-08-04)
changeset 724 cf14046909cd
parent 621 c60984c46f9f
child 791 f1006de05c54
permissions -rw-r--r--
Adding/moving MCO works again
insilmaril@621
     1
#ifndef XMLOBJ_H
insilmaril@621
     2
#define XMLOBJ_H
insilmaril@621
     3
insilmaril@721
     4
class 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