KD Reports  1.5
 All Classes Namespaces Functions Enumerations Enumerator Pages
KDReportsXmlHelper.h
1 /****************************************************************************
2 ** Copyright (C) 2011-2014 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Reports library.
5 **
6 ** Licensees holding valid commercial KD Reports licenses may use this file in
7 ** accordance with the KD Reports Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef XMLHELPER_H
24 #define XMLHELPER_H
25 
26 #include "KDReportsGlobal.h"
27 #include "KDReportsVariableType.h"
28 #include "KDReportsReport.h"
29 #include <QDomElement>
30 
31 namespace KDReports {
32 
33 class KDREPORTS_EXPORT XmlHelper
34 {
35 public:
36  static Qt::AlignmentFlag stringToAlignment(const QString &str);
37  static KDReports::VariableType stringToVariableType(const QString &type);
38  static QColor readColor(const QDomElement &element, const char *attributeName);
39  static QColor readBackground(const QDomElement &element);
40  static KDReports::HeaderLocations parseHeaderLocation(const QString &xmlAttr);
41 };
42 }
43 #endif // XMLHELPER_H
VariableType
Definition: KDReportsVariableType.h:35
Definition: KDReportsXmlHelper.h:33

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/