Pino Toscano
fc97f3b23b
on demand creation of the auxiliary threads
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656230
19 years ago
Pino Toscano
9134ad4669
make the Document access to the private class of Generator, so we can get rid of the public setDocument
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656222
19 years ago
Pino Toscano
166ba5b87a
move the Generator::Private to a GeneratorPrivate, and move the implementations of the provate threads to a cpp
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656221
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
df5b2c3329
make ExportFormat implicitely shared, especially because it's mostly a "read-only" class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=653196
19 years ago
Pino Toscano
1117200950
constness for document()
...
svn path=/trunk/playground/graphics/okular/; revision=643431
19 years ago
Pino Toscano
6ea5badeab
don't try to start a text extraction thread if the generator does not extract text
...
svn path=/trunk/playground/graphics/okular/; revision=641458
19 years ago
Pino Toscano
1bfc805a3e
it does not make much sense to check for a serie of permissions at the same time, so just check one permission at a time
...
svn path=/trunk/playground/graphics/okular/; revision=641341
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
1316811082
Cache the export formats, so we can know better if the text/plain formst is supported by the backend (and act accordingly).
...
svn path=/trunk/playground/graphics/okular/; revision=641302
19 years ago
Pino Toscano
fd7434c95a
Add support for custom generator about data (and potentially for custom configuration).
...
svn path=/trunk/playground/graphics/okular/; revision=640348
19 years ago
Tobias Koenig
0847edc4b7
Add a second parameter to requestTextPage/generateTextPage where you can
...
specify whether the request should be synchronous or asynchronous
svn path=/trunk/playground/graphics/okular/; revision=628893
19 years ago
Pino Toscano
ef55f74682
lazy creation of the generation threads within Generator, so generators that don't make use of the builtin thread don't create a pair of unused threads
...
svn path=/trunk/playground/graphics/okular/; revision=628860
19 years ago
Pino Toscano
92ea1bba69
Last step of the ThreadedGenerator -> Generator merge: remove the old files and rename the used file.
...
svn path=/trunk/playground/graphics/okular/; revision=628856
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
d94f0e507e
Add support for threaded extraction of text pages, now we just have to
...
adapt the generators and the document class, which is 95% of the work ;)
svn path=/trunk/playground/graphics/okular/; revision=626843
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
Pino Toscano
4f6666d509
also the page size is a feature, so thread it as such (and remove supportsPageSizes())
...
svn path=/trunk/playground/graphics/okular/; revision=624686
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
Pino Toscano
24ec1e37c5
Add the ability to read from standard input, eg
...
$ command_that_produce_a_document | okular -
Expand a but the Generator API so a generator can directly read from the raw data read from stdin. Generators that can not read from raw data will open the temporary file with the saved data.
svn path=/trunk/playground/graphics/okular/; revision=622774
19 years ago
Pino Toscano
18fab3d130
Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
...
While I was at it, I changed from "paper size" to "page size", it should be better.
svn path=/trunk/playground/graphics/okular/; revision=620411
19 years ago
Pino Toscano
4b922367e2
Use a proper enum to deal with orientation/rotation all around okular.
...
svn path=/trunk/playground/graphics/okular/; revision=620312
19 years ago
Tobias Koenig
86a1fd3b69
Big cleanup of Document API and documentation:
...
* add full API docs
* renamed getMetaData -> metaData
* removed supportsRotation in Document and Generator
* moved Permission and SearchDirection enums into separated header core/global.h
svn path=/trunk/playground/graphics/okular/; revision=619183
19 years ago
Tobias Koenig
2aa8a4c31b
Moved SourceReference into its own file
...
svn path=/trunk/playground/graphics/okular/; revision=619076
19 years ago
Pino Toscano
915a48eb4d
move the Generator configuration stuff into a new ConfigInterface
...
svn path=/trunk/playground/graphics/okular/; revision=619061
19 years ago
Pino Toscano
d9a844d67c
move the GUI stuff out of Generator in an own GuiInterface, and adapt the ghostscript generator to its usage; renamed also some methods to more Qt4-ish names.
...
svn path=/trunk/playground/graphics/okular/; revision=619044
19 years ago
Pino Toscano
475d000763
Improve the way a Generator can configure a printer: add an interface with the advanced printing stuff.
...
The print() method remains in Generator, as it's too basic to be moved in an interface.
svn path=/trunk/playground/graphics/okular/; revision=619033
19 years ago
Pino Toscano
94c9ffa3d7
do not explicitely include document.h in generator.h
...
svn path=/trunk/playground/graphics/okular/; revision=617283
19 years ago
Tobias Koenig
a490cc0cd7
Add the following functionality:
...
* Bring QPixmap* back to make Albert happy ;)
* Store only one QPixmap per page/size and rotate it directly
* Rotate ObjectRects (boundary)
* Rotate Annotations (point coordinates)
* Don't reload pixmaps, ObjectRects and annotations on rotation
svn path=/trunk/playground/graphics/okular/; revision=606371
20 years ago
Pino Toscano
274469dae8
Almost complete support for inverse search within okular.
...
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)
svn path=/trunk/playground/graphics/okular/; revision=605708
20 years ago
Pino Toscano
2bd05e79d5
a generator can not block the gui events of the main page view, otherwise bad things will happen - it's also not really logic to allow such a thing, better think about something else if a generator wants to interact with the gui somehow
...
svn path=/trunk/playground/graphics/okular/; revision=600225
20 years ago
Pino Toscano
8def2109ec
change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
...
svn path=/trunk/playground/graphics/okular/; revision=599847
20 years ago
Tobias Koenig
a375953402
Adapt ghostview, kimgio, pdf, dvi, chm, xps and ooo generators to setImage()
...
svn path=/trunk/playground/graphics/okular/; revision=599090
20 years ago
Tobias Koenig
d22b2f1892
A rather big change:
...
* Hide as much private API as possible in Generator, PixmapRequest and ExportEntry/Format
* Renamed ExportEntry to ExportFormat and made it value based
* Removed canExportToText() and exportToText() from Generator API and implemented this
functionality in exportFormats()/exportTo() in the generators
* Removed the orientation parameter from PixmapRequest and let the Document handle the rotation
of the page (pixmap) instead
CCMAIL:okular-devel@kde.org
svn path=/trunk/playground/graphics/okular/; revision=599058
20 years ago
Pino Toscano
a62cd3aa2f
The internal search is a pretty bad concept, as the Document provides it for free
...
svn path=/trunk/playground/graphics/okular/; revision=598553
20 years ago
Pino Toscano
6983c298a7
a working debug stream operator for the PixmapRequest
...
svn path=/trunk/playground/graphics/okular/; revision=598087
20 years ago
Pino Toscano
18028a8a2c
API change in the Generator: use an empty construct, and set the document for the generator right after its construction.
...
Add a protected method to get the document, and hide the real document pointer as private, so the generators can't redefine it.
svn path=/trunk/playground/graphics/okular/; revision=598025
20 years ago
Tobias Koenig
fccd412d69
* Added documentation to Generator API
...
* Moved all implementations to generator.cpp
* Added 'const' where it make sense
* Adapted all generators (except gs)
svn path=/trunk/playground/graphics/okular/; revision=597525
20 years ago
Tobias Koenig
df7d144c10
Moved all classes in core/ into the 'Okular' namespace and removed
...
nearly all references to kpdf (knewstuff still missing).
svn path=/trunk/playground/graphics/okular/; revision=586993
20 years ago
Pino Toscano
92e4c31899
these files were created by Piotr Szymanski
...
svn path=/trunk/playground/graphics/okular/; revision=564684
20 years ago
Pino Toscano
25eb77c1de
some fixes according to EBN:
...
- fix single char addition to QString's
- some spell checking
svn path=/trunk/playground/graphics/okular/; revision=563891
20 years ago
Pino Toscano
60eab90248
small API changes to Generator:
...
- more const'ness in signals
- no need to redeclare the signals in the generators, as they are already in Generator
svn path=/branches/work/kde4/playground/graphics/okular/; revision=549941
20 years ago
Albert Astals Cid
cb7ca95e94
pages have orientation
...
document has a rotation to apply over the page's own orientation
text search really works now when rotating (at least all my tests here worked)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547644
20 years ago
Albert Astals Cid
178bab06cb
core builds
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521179
20 years ago
Piotr Szymanski
fec81c9e07
- missed file
...
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=481786
21 years ago