filters

ExportDocStruct.h
1/*
2 This file is part of the KDE project
3 Copyright (C) 2001, 2002 Nicolas GOUTTE <goutte@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library 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
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef EXPORTDOCSTRUCT_H
22#define EXPORTDOCSTRUCT_H
23
24#include <KWEFBaseWorker.h>
25#include "ExportFilter.h"
26
27class HtmlDocStructWorker : public HtmlWorker
28{
29public:
30 HtmlDocStructWorker(void) { }
31 virtual ~HtmlDocStructWorker(void) { }
32public:
33protected:
34 virtual TQString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered);
35 virtual void openParagraph(const TQString& strTag,
36 const LayoutData& layout,TQChar::Direction direction=TQChar::DirL);
37 virtual void closeParagraph(const TQString& strTag,
38 const LayoutData& layout);
39 virtual void openSpan(const FormatData& formatOrigin, const FormatData& format);
40 virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format);
41private:
42 void openFormatData(const FormatData& formatOrigin,
43 const FormatData& format, const bool force, const bool allowBold);
44 void closeFormatData(const FormatData& formatOrigin,
45 const FormatData& format, const bool force, const bool allowBold);
46};
47
48#endif /* EXPORTDOCSTRUCT_H */