~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to filters/kword/pdf/pdfdocument.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2002 Nicolas HADACEK (hadacek@kde.org)
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 
 
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.
 
13
 
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 */
 
18
 
 
19
#ifndef PDFDOCUMENT_H
 
20
#define PDFDOCUMENT_H
 
21
 
 
22
#include <qfile.h>
 
23
#include <qdom.h>
 
24
 
 
25
#include <koFilter.h>
 
26
#include <koGlobal.h>
 
27
 
 
28
class Object;
 
29
class BaseStream;
 
30
class PDFDoc;
 
31
 
 
32
 
 
33
namespace PDFImport
 
34
{
 
35
class DRect;
 
36
class Device;
 
37
class Data;
 
38
 
 
39
class Document
 
40
{
 
41
 public:
 
42
    Document();
 
43
    ~Document() { clear(); }
 
44
 
 
45
    KoFilter::ConversionStatus init(const QString &name,
 
46
                    const QString &ownerPassword, const QString &userPassword);
 
47
    void clear();
 
48
 
 
49
    QString info(const QCString &key) const;
 
50
    uint nbPages() const;
 
51
    KoOrientation paperOrientation() const;
 
52
    DRect paperSize(KoFormat &format) const;
 
53
    bool isEncrypted() const;
 
54
 
 
55
    void initDevice(Data &);
 
56
    void treatPage(uint i);
 
57
    void init();
 
58
    void dumpPage(uint i);
 
59
 
 
60
 private:
 
61
    QFile      *_file;
 
62
    Object     *_object;
 
63
    BaseStream *_fileStream;
 
64
    PDFDoc     *_document;
 
65
    Device     *_device;
 
66
    uint        _imageIndex;
 
67
 
 
68
    Document(const Document &);
 
69
    Document &operator =(const Document &);
 
70
};
 
71
 
 
72
} // namespace
 
73
 
 
74
#endif