Subversion Repositories Scribus

Rev

Rev 8196 | Rev 8266 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8196 avox 1
#ifndef SAXHELPER_H
2
#define SAXHELPER_H
3
 
8227 avox 4
#include "desaxe_conf.h"
8196 avox 5
 
6
class ScFace;
7
class FPointArray;
8
 
8227 avox 9
Xml_string toXMLString(unsigned int val);
10
Xml_string toXMLString(int val);
11
Xml_string toXMLString(unsigned long val);
12
Xml_string toXMLString(long val);
13
Xml_string toXMLString(double val);
14
Xml_string toXMLString(float val);
15
Xml_string toXMLString(bool val);
16
Xml_string toXMLString(const Xml_string& val);
8196 avox 17
 
8227 avox 18
Xml_string toXMLString(const ScFace& val);
19
Xml_string toXMLString(const FPointArray& path);
20
 
21
unsigned int parseUInt(Xml_string str);
22
int parseInt(Xml_string str);
23
unsigned long parseULong(Xml_string str);
24
long parseLong(Xml_string str);
25
double parseDouble(Xml_string str);
26
float parseFloat(Xml_string str);
27
bool parseBool(Xml_string str);
28
 
29
template <class ENUM>
30
ENUM parseEnum(Xml_string str)
31
{
32
        return static_cast<ENUM>(str.toUInt());
33
}
34
 
35
 
8196 avox 36
#endif