1 /* This file is part of the KDE project
2 Copyright (C) 2003 Alexander Kellett <lypanov@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) version 3.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>
21 #include <kbookmark.h>
23 #include <QtCore/QTextStream>
25 class HTMLExporter
: private KBookmarkGroupTraverser
{
28 virtual ~HTMLExporter(){}
29 QString
toString(const KBookmarkGroup
&, bool showAddress
= false);
30 void write(const KBookmarkGroup
&, const QString
&, bool showAddress
= false);
32 virtual void visit(const KBookmark
&);
33 virtual void visitEnter(const KBookmarkGroup
&);
34 virtual void visitLeave(const KBookmarkGroup
&);