Scribus
Open source desktop publishing at your fingertips
scdomelement.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCDOMELEMENT_H
8 #define SCDOMELEMENT_H
9 
10 #include <QDomElement>
11 
12 class ScDomElement : public QDomElement
13 {
14 public:
15  ScDomElement();
16  ScDomElement(const QDomElement &elem);
17 
18  int valueAsInt (const QString& attrName, int def = 0) const;
19  int valueAsInt (const QString& attrName, int min, int max, int def = 0) const;
20  uint valueAsUInt (const QString& attrName, uint def = 0) const;
21  uint valueAsUInt (const QString& attrName, uint min, uint max, uint def = 0) const;
22  double valueAsDouble (const QString& attrName, double def = 0.0) const;
23  double valueAsDouble (const QString& attrName, double min, double max, double def = 0.0) const;
24 };
25 
26 #endif
Definition: scdomelement.h:12