xmlhandler.h
1/***************************************************************************
2 * This file is part of the KDE project
3 * copyright (C) 2005 by Sebastian Sauer (mail@dipe.org)
4 * copyright (C) 2006 by Bernd Steindorff (bernd@itii.de)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KOMACRO_XMLHANDLER_H
21#define KOMACRO_XMLHANDLER_H
22
23#include "komacro_export.h"
24
25class TQObject;
26class TQDomElement;
27
28namespace KoMacro {
29
30 // Forward declarations.
31 class Macro;
32
37 class KOMACRO_EXPORT XMLHandler
38 {
39 public:
40
46 XMLHandler(Macro* const macro);
47
52
60 bool parseXML(const TQDomElement& element);
61
67 TQDomElement toXML();
68
69 private:
71 class Private;
73 Private* const d;
74 };
75}
76
77#endif
The Macro class implements all the action-handling.
Definition macro.h:45
The XMLHandler class manages the (un-)serialization of a Macro instance to/from XML.
Definition xmlhandler.h:38