Albert Astals Cid
f467807506
Remove #ifdefs for Qt we require in cmake anyway
9 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Frederik Gladhorn
dad6936896
Bring back the txt generator
12 years ago
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
12 years ago
Frederik Gladhorn
e28dbc6c00
Port to QMime
...
compressedMimeFor now already does the inheritance check, so another
check was removed.
12 years ago
Frederik Gladhorn
83d3f1f6b7
Revert "Some more kDebug->qDebug"
...
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.
This reverts commit 34fbdf8c85 .
12 years ago
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
12 years ago
Vishesh Handa
fb330dd45c
Port the EPubGenerator
12 years ago
Albert Astals Cid
e9e3d4a435
Make documentInfo be Hash based instead of XML based
12 years ago
Frederik Gladhorn
0c7a45c7a5
Disable lots of stuff and compile
...
The text generator is the only one compiled now.
This version links for me but then doesn't find its KPart on startup.
TTS has been completely disabled as well as some other things like the
about dialog.
12 years ago
Frederik Gladhorn
0ba233788c
Use moc include style dictated by automoc
...
While it's generally not a great idea to include moc files at least this
compiles.
12 years ago
Frederik Gladhorn
75031eee7e
Fix includes
12 years ago
Albert Astals Cid
86dd9e8801
Move the ooo wallet code to use the part.cpp one
...
Less widgets in generators/core \o/
12 years ago
Christoph Feck
60cc5dc98e
TextDocumentGenerator: Use black as default text color
...
REVIEW: 111681
BUGS: 253583
BUGS: 322547
FIXED-IN: 4.12.90
12 years ago
Jaydeep Solanki
e9ccc4867b
epub video support
13 years ago
Fabio D'Urso
a79351212d
Removed TextDocumentGenerator::generalSettingsWidget()
...
Which is now useless because with the previous patch
TextDocumentGenerator no longer caches the widget.
13 years ago
Fabio D'Urso
3dd3a000db
Don't crash if Configure Backends is opened again after it's been closed
13 years ago
Azat Khuzhin
1fdb0a0a06
Font selector for TextDocumentGenerator
...
REVIEW: 109021
13 years ago
Montel Laurent
f9f65979f5
Normalize signals/slots
15 years ago
Pino Toscano
c05523da2b
fix #include paths in core headers to other core headers to be relative
...
... and with double quotes brackets, so they can properly include each other without relying on the compiler include path
15 years ago
Tobias Koenig
d5a2d53d21
Do not crash in case of false calculations in a generator
...
BUG: 233944
svn path=/trunk/KDE/kdegraphics/okular/; revision=1113765
16 years ago
Tobias Koenig
911f8eaeca
tab -> whitespace fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=971089
17 years ago
Pino Toscano
0761b20be2
turn the internal class Utils (with just static members) into a TextDocumentUtils namespace
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=908736
17 years ago
Brad Hards
3cb0e7575f
Improve handling of document synopsis with
...
strange entry ordering.
CCBUG:168678
svn path=/trunk/KDE/kdegraphics/okular/; revision=890398
18 years ago
Brad Hards
bfa53df1ec
Don't crash when setting up the document synopsis for
...
ODTs with strange heading ordering.
This may still cause the synopsis to look different
to the way the user expected. Will take another
look at that.
BUG: 168678
svn path=/trunk/KDE/kdegraphics/okular/; revision=890395
18 years ago
Pino Toscano
355eef2da6
correct place the bracket out of the #ifdef
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=855781
18 years ago
Brad Hards
cfb62ab4d5
Add support for export to OpenDocument text and HTML
...
for TextDocumentGenerator-based generators:
- EPub format
- Fictionbook format
- OOO.
This depends on Qt 4.5. Thanks to Qt Software (or wherever Thomas Z.
works) for QTextDocumentWriter!
It wouldn't be too hard to make this work for plucker (.pdb)
format, but that format doesn't work for me. It would be very
hard to make it work for other formats.
svn path=/trunk/KDE/kdegraphics/okular/; revision=855771
18 years ago
Pino Toscano
84a23006d5
ask the q-ptr only when compling the threaded rendering
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=847495
18 years ago
Pino Toscano
6cf2d5786e
limit the scope of the text cursor, so it's deleted before the mutex unlock
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=805246
18 years ago
Pino Toscano
697d51e1a2
Make the rendering for TextDocument-based generators threaded, only if Qt (via QFontDatabase) tells us we can.
...
... but, as it's proving to be buggy (text disappearing from menus) and crashing (out-of-range font engine list), it's disabled for now, define OKULAR_TEXTDOCUMENT_THREADED_RENDERING to try it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=804719
18 years ago
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