~ubuntu-branches/ubuntu/maverick/kdegraphics/maverick-proposed

« back to all changes in this revision

Viewing changes to okular/generators/poppler/generator_pdf.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 14:03:43 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202140343-2732gbkj69g89arq
Tags: 4:4.3.80-0ubuntu1
* New upstream beta release:
  - Add build-depend on shared-desktop-ontologies for nepomuk integration
  - Bump .so versions for libkexiv, libkdcraw and libkipi
  - Update various .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
#define UNSTABLE_POPPLER_QT4
15
15
 
 
16
#include "synctex/synctex_parser.h"
 
17
 
16
18
#include <poppler-qt4.h>
17
19
 
18
20
#include <qbitarray.h>
27
29
 
28
30
namespace Okular {
29
31
class ObjectRect;
 
32
class SourceReference;
30
33
}
31
34
 
32
35
class PDFOptionsPage;
94
97
 
95
98
        // [INHERITED] save interface
96
99
        bool supportsOption( SaveOption ) const;
97
 
        bool save( const QString &fileName, SaveOptions options );
 
100
        bool save( const QString &fileName, SaveOptions options, QString *errorText );
98
101
 
99
102
    protected:
100
103
        bool doCloseDocument();
102
105
 
103
106
    protected slots:
104
107
        void requestFontData(const Okular::FontInfo &font, QByteArray *data);
 
108
        const Okular::SourceReference * dynamicSourceReference( int pageNr, double absX, double absY );
105
109
 
106
110
    private slots:
107
111
        // (async related) receive data from the generator thread
123
127
        void addFormFields( Poppler::Page * popplerPage, Okular::Page * page );
124
128
        // load the source references from a pdfsync file
125
129
        void loadPdfSync( const QString & fileName, QVector<Okular::Page*> & pagesVector );
 
130
        // init the synctex parser if a synctex file exists
 
131
        void initSynctexParser( const QString& filePath );
126
132
 
127
133
        Okular::TextPage * abstractTextPage(const QList<Poppler::TextBox*> &text, double height, double width, int rot);
128
134
 
129
 
        bool setAAOptions();
 
135
        bool setDocumentRenderHints();
130
136
 
131
137
        // poppler dependant stuff
132
138
        Poppler::Document *pdfdoc;
150
156
        QBitArray rectsGenerated;
151
157
 
152
158
        QPointer<PDFOptionsPage> pdfOptionsPage;
 
159
        
 
160
        synctex_scanner_t synctex_scanner;
153
161
};
154
162
 
155
163