kpresenter

KPrTextDocument.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library 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 GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. 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 kprtextdocument_h
21#define kprtextdocument_h
22
23#include <KoRichText.h>
24#include "KoTextDocument.h"
25
26class KPrTextObject;
27class KoTextFormatCollection;
28
33class KPrTextDocument : public KoTextDocument
34{
35 TQ_OBJECT
36
37public:
39 KPrTextDocument( KPrTextObject * textobj, KoTextFormatCollection *fc, KoTextFormatter *formatter = 0L );
40
42
45 KPrTextObject * textObject() const { return m_textobj; }
47 bool loadSpanTag( const TQDomElement& tag, KoOasisContext& context,
48 KoTextParag* parag, uint pos,
49 TQString& textData, KoTextCustomItem* & customItem );
50
51private:
52 KPrTextObject * m_textobj;
53};
54
55#endif
KPrTextDocument(KPrTextObject *textobj, KoTextFormatCollection *fc, KoTextFormatter *formatter=0L)
A text document inside a kptextobject.
bool loadSpanTag(const TQDomElement &tag, KoOasisContext &context, KoTextParag *parag, uint pos, TQString &textData, KoTextCustomItem *&customItem)
Extensions to KoTextParag::loadOasisSpan.
KPrTextObject * textObject() const
Return the text object in which this document is.