2
KDChart - a multi-platform charting engine
5
/****************************************************************************
6
** Copyright (C) 2001-2003 Klarälvdalens Datakonsult AB. All rights reserved.
8
** This file is part of the KDChart library.
10
** This file may be used under the terms of the GNU General Public
11
** License versions 2.0 or 3.0 as published by the Free Software
12
** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
13
** included in the packaging of this file. Alternatively you may (at
14
** your option) use any later version of the GNU General Public
15
** License if such license has been publicly approved by
16
** Klarälvdalens Datakonsult AB (or its successors, if any).
18
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
19
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
20
** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
21
** not expressly granted herein.
23
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
24
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
26
**********************************************************************/
27
#ifndef __KDCHARTATTRIBUTESMODELSERIALIZER_H__
28
#define __KDCHARTATTRIBUTESMODELSERIALIZER_H__
30
/** \file KDChartAttributesModelSerializer.h
31
\brief Auxiliary methods for reading/saving KD Chart data and configuration in streams.
34
#include "KDChartAttributesSerializer.h"
36
#include <KDChartAttributesModel>
37
#include <KDChartChart>
41
class KDCHARTSERIALIZER_EXPORT AttributesModelSerializer : public QObject
44
Q_DISABLE_COPY( AttributesModelSerializer )
46
KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC( AttributesModelSerializer )
49
AttributesModelSerializer();
50
virtual ~AttributesModelSerializer();
52
virtual bool parseAttributesModel(
53
const QDomNode& rootNode,
54
const QString& globalName,
55
AttributesModel& model )const;
57
virtual bool parseAttributesNode(
62
virtual void saveAttributesModel(
65
const AttributesModel* model,
66
bool isExternalModel )const;
67
virtual void createAttributesNode(
70
const AttributesModel* model,
72
const QVariant& attributes )const;