Rev 17223 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
17223 | jghali | 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: |
||
24736 | jghali | 15 | ScDomElement() = default; |
17223 | jghali | 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 |