filters

pptdoc.h
1/*
2 Copyright (C) 2000, S.R.Haque <shaheedhaque@hotmail.com>.
3 This file is part of the KDE project
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
20DESCRIPTION
21
22 This file implements a simplified abstraction of Microsoft Powerpoint documents.
23*/
24
25#ifndef PPTDOC_H
26#define PPTDOC_H
27
28#include <kdebug.h>
29#include <myfile.h>
30#include <powerpoint.h>
31#include <tqstring.h>
32#include <tqstringlist.h>
33
34class myFile;
35
36class PptDoc:
37 protected Powerpoint
38{
39protected:
40
41 // Construction. Invoke with the OLE streams that comprise the Powerpoint document.
42
43 PptDoc(
44 const myFile &mainStream,
45 const myFile &currentUser,
46 const myFile &pictures);
47 virtual ~PptDoc();
48
49 // Metadata.
50
51 TQString getAuthor(void) const;
52
53 // Call the parse() function to process the document. The callbacks return
54 // the text along with any relevant attributes.
55
56 bool parse();
57
58 virtual void gotDrawing(
59 unsigned id,
60 TQString type,
61 unsigned length,
62 const char *data) = 0;
63 virtual void gotSlide(PptSlide &slide) = 0;
64
65private:
66 PptDoc(const PptDoc &);
67 const PptDoc &operator=(const PptDoc &);
68
69 // Error handling and reporting support.
70
71 static const int s_area;
72
73 myFile m_mainStream;
74 myFile m_currentUser;
75 myFile m_pictures;
76
77 // Override the base class functions.
78
79 //void gotSlide(
80 // PptSlide &slide);
81};
82#endif