Pino Toscano
18c8cf59e8
- when the loading of a textdocument-based document fails, cleanup all the stuff eventually gathered from the converter
...
- cleanup also the annotation position when closing a textdocument
svn path=/trunk/KDE/kdegraphics/okular/; revision=799076
18 years ago
Pino Toscano
890367943b
clear TOC and document info when closing a textdocument-based document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=798886
18 years ago
Pino Toscano
c44ce52719
add a private reimplementation of metaData() so the text document generator can show the title of a document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=785821
18 years ago
Pino Toscano
7266660c37
Add a protected TextDocumentGenerator* generator() to the TextDocumentConverter to make it able to use stuff of the Document (eg a parent for dialogs).
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=775125
18 years ago
Pino Toscano
40803bf9b0
and actually connect to the new signal
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=772364
18 years ago
Pino Toscano
c6b7cfab8c
Add a addMetaData(DocumentInfo::Key, QString) signal to the TextDocumentConverter.
...
This way, standard info keys can be used without adding manually the key id and the translated label.
svn path=/trunk/KDE/kdegraphics/okular/; revision=772350
18 years ago
Pino Toscano
b9af4a6a94
check for valid pages
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=747055
19 years ago
Pino Toscano
5fc6503d89
For now, do not consider links whose page cannot be calculated.
...
BUG: 153733
svn path=/trunk/KDE/kdegraphics/okular/; revision=747032
19 years ago
Pino Toscano
a194acf2bc
Foo/FooPrivate for TextDocumentConverter
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=746277
19 years ago
Pino Toscano
870980da75
correctly set the External flag for annotations loaded from documents
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=746264
19 years ago
Pino Toscano
6aa123656a
Port the plugin system to the standard KDE factory and loader, getting rid of the custom system okular had so far.
...
This requires a generator to have a
MyGenerator(QObject *parent, const QVariantList &args)
constructor in order to be successfully loaded.
The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed.
Remove the 'lib' prefix from plugins, unneeded now.
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
19 years ago
Tobias Koenig
3ce7e38f06
Now that we use QPrinter, call QTextDocument::print() directly...
...
Enable printing for this generator.
svn path=/trunk/KDE/kdegraphics/okular/; revision=742243
19 years ago
John Layt
070285e039
Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
...
*** Note this is not a complete port, most of the generators use the
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution. At least it removes
the dependency so we can remove from kdelibs.
svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
19 years ago
Pino Toscano
15155d8824
Rename the virtual closeDocument() to doCloseDocument(), and make it protected.
...
Added a non-virtual closeDocument() in the base Generator class: this way, particular closing routines can be implemented in the "low level" of a generator.
Apart the renaming, the logic of doCloseDocument() remains the same.
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=723046
19 years ago
Pino Toscano
006111382b
common d_ptr+q_ptr structure for Generator/TextDocumentGenerator, and their private classes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=712465
19 years ago
Pino Toscano
de45467966
properly free the resources of a document when calling closeDocument(), not in the destructor of the generator or in loadDocument()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667128
19 years ago
Tobias Koenig
bbbbd8eda9
Fixed the 'select one line twice' bug.
...
It's always helpfull to talk to a koffice developer, thanks to Thomas :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=663744
19 years ago
Pino Toscano
06411f9805
Add links and annotations when loading the pages, not during the pixmap generations.
...
Tobias: is the calculation of the annotations bounding rect correct?
CCMAIL: tokoe@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=660831
19 years ago
Pino Toscano
2e024d6d96
generalize a bit more the way for constructing "standard" ExportFormat's
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
19 years ago
Pino Toscano
0e12746a92
Link -> Action renaming.
...
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
19 years ago
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
19 years ago
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
2ef46f8d90
simplify a bit the export action creation code
...
svn path=/trunk/playground/graphics/okular/; revision=641313
19 years ago
Pino Toscano
6068c76df6
Merge the new functions of ThreadedGenerator into the base Generator: this means that there's again only a single base Generator that can provide the multithreading for the generation of contents, just pixmaps for now.
...
svn path=/trunk/playground/graphics/okular/; revision=628853
19 years ago
Tobias Koenig
baf1fb2870
Several changes:
...
- renamed signalRequestDone to signalPixmapRequestDone to allow a future signalTextPageRequestDone
- added error/warning/notice signals to TextDocumentConverter and add meaningful error messages
to ooo and fictionbook generator
- code cleanup in chm generator
- print improvements and error notification in kimgio generator
svn path=/trunk/playground/graphics/okular/; revision=628124
19 years ago
Pino Toscano
55dfb87f3f
simplify a bit the Feature system: move it to the base Generator class, and add a protected method to switch a feature on and off easily - no more need to copy&paste hasFeature() anymore
...
svn path=/trunk/playground/graphics/okular/; revision=627450
19 years ago
Tobias Koenig
d227a94e79
First part of the porting to a threaded api for generators
...
- made comicbook, tiff and kimgio a threaded generator
svn path=/trunk/playground/graphics/okular/; revision=626761
19 years ago
Tobias Koenig
460f972d19
Arrgh, forgot to commit this last time :/
...
svn path=/trunk/playground/graphics/okular/; revision=625249
19 years ago
Pino Toscano
135a18b407
get rid of supportsSearching() by using a proper feature
...
svn path=/trunk/playground/graphics/okular/; revision=624587
19 years ago
Pino Toscano
468a0da775
bye bye canGenerateTextPage(), unused nowadays
...
svn path=/trunk/playground/graphics/okular/; revision=624579
19 years ago
Tobias Koenig
e1ab8660ef
Add new TextDocumentGenerator class, which is a base class for
...
generators which work on a QTextDocument. So all the nasty calculation
for text extraction and link/annotation positions is done by the
generator.
Ported FictionBook generator to it.
svn path=/trunk/playground/graphics/okular/; revision=623071
19 years ago