Pino Toscano
8a216058f3
clean the headers
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656768
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
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
Pino Toscano
444b1a3f84
SVN_SILENT unused forward declaration
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656147
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
Christian Ehrlicher
c5c2da7c89
fix win32 compilation
...
warnings--
svn path=/trunk/playground/graphics/okular/; revision=643874
19 years ago
Pino Toscano
1117200950
constness for document()
...
svn path=/trunk/playground/graphics/okular/; revision=643431
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
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
75946e42e3
DOX: improvements and fixes
...
SVN_SILENT
svn path=/trunk/playground/graphics/okular/; revision=625599
19 years ago
André Wöbbeking
c06cbc334d
-pedantic
...
svn path=/trunk/playground/graphics/okular/; revision=624728
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
Tobias Koenig
5069b62a80
Make PixmapRequest::swap() public but mark it for internal usage.
...
svn path=/trunk/playground/graphics/okular/; revision=624665
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
c1dc76485a
DOX: slightly improve apidox generation
...
SVN_SILENT
svn path=/trunk/playground/graphics/okular/; revision=623061
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
ac792e5c9c
Fixed krazy issues
...
svn path=/trunk/playground/graphics/okular/; revision=619843
19 years ago
Tobias Koenig
ea51ee18f5
Do a lot of include cleanups... we install all important
...
header files now
svn path=/trunk/playground/graphics/okular/; revision=619492
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
77efd7dcb1
Cleaned up the Document API, moved all private members/methods/slots into
...
the d class.
svn path=/trunk/playground/graphics/okular/; revision=619100
19 years ago
Tobias Koenig
2aa8a4c31b
Moved SourceReference into its own file
...
svn path=/trunk/playground/graphics/okular/; revision=619076
19 years ago
Tobias Koenig
472f4028c2
Add API documentations
...
svn path=/trunk/playground/graphics/okular/; revision=619073
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
b6fdedc810
spell checking
...
svn path=/trunk/playground/graphics/okular/; revision=617287
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
46a1ddc08e
#include not needed
...
svn path=/trunk/playground/graphics/okular/; revision=598561
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