~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kchart/kdchart/kdchartserializer/src/KDChartAttributesModelSerializer.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C++ -*-
2
 
   KDChart - a multi-platform charting engine
3
 
   */
4
 
 
5
 
/****************************************************************************
6
 
 ** Copyright (C) 2001-2003 Klarälvdalens Datakonsult AB.  All rights reserved.
7
 
 **
8
 
 ** This file is part of the KDChart library.
9
 
 **
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).
17
 
 ** 
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.
22
 
 ** 
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.
25
 
 **
26
 
 **********************************************************************/
27
 
#ifndef __KDCHARTATTRIBUTESMODELSERIALIZER_H__
28
 
#define __KDCHARTATTRIBUTESMODELSERIALIZER_H__
29
 
 
30
 
/** \file KDChartAttributesModelSerializer.h
31
 
    \brief Auxiliary methods for reading/saving KD Chart data and configuration in streams.
32
 
  */
33
 
 
34
 
#include "KDChartAttributesSerializer.h"
35
 
 
36
 
#include <KDChartAttributesModel>
37
 
#include <KDChartChart>
38
 
 
39
 
namespace KDChart {
40
 
 
41
 
    class KDCHARTSERIALIZER_EXPORT AttributesModelSerializer : public QObject
42
 
    {
43
 
        Q_OBJECT
44
 
        Q_DISABLE_COPY( AttributesModelSerializer )
45
 
 
46
 
        KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC( AttributesModelSerializer )
47
 
 
48
 
    public:
49
 
        AttributesModelSerializer();
50
 
        virtual ~AttributesModelSerializer();
51
 
 
52
 
        virtual bool parseAttributesModel(
53
 
                const QDomNode& rootNode,
54
 
                const QString& globalName,
55
 
                AttributesModel& model )const;
56
 
 
57
 
        virtual bool parseAttributesNode(
58
 
                const QDomElement& e,
59
 
                QVariant& attributes,
60
 
                int& role )const;
61
 
 
62
 
        virtual void saveAttributesModel(
63
 
                QDomDocument& doc,
64
 
                QDomElement& e,
65
 
                const AttributesModel* model,
66
 
                bool isExternalModel )const;
67
 
        virtual void createAttributesNode(
68
 
                QDomDocument& doc,
69
 
                QDomElement& e,
70
 
                const AttributesModel* model,
71
 
                int role,
72
 
                const QVariant& attributes )const;
73
 
    };
74
 
 
75
 
} // end of namespace
76
 
 
77
 
#endif