Commit graph

12 commits

Author SHA1 Message Date
Pino Toscano 513c7cf225 Add a scripter class to execute scripts on request.
Trigger its execution at the document loading, if there are "top level" scripts,
and when a script action is activated.

svn path=/trunk/KDE/kdegraphics/okular/; revision=796637
2008-04-13 22:31:59 +00:00
Pino Toscano 8a858a9449 Core implementation of the backward text search, to be used now in the search bar.
Works pretty well -- the only problem left is that when changing the search direction, the first match is the current match.

svn path=/trunk/KDE/kdegraphics/okular/; revision=785629
2008-03-14 14:14:06 +00:00
Pino Toscano c9089f3160 Add the possibility to save a copy of the document with the changes to it (only for form fields at the moment).
On the Document/Generator side, introduce a proper interface for the purpouse.

On the GUI side, add a new "Save As" function that save the changed document to a location.
The action is enabled only if the current backend can provide the functionality.

svn path=/trunk/KDE/kdegraphics/okular/; revision=784661
2008-03-11 23:40:59 +00:00
Pino Toscano e023effb15 Add a requestPixmaps() overload that takes options as flags.
This way we can tell to "merge" in a smart way the new pixmap request with the enqueued ones of the same ID.

Add a (private) slot to refresh all the pixmaps of a page.

svn path=/trunk/KDE/kdegraphics/okular/; revision=783259
2008-03-07 15:50:48 +00:00
Pino Toscano e9bd289993 Keep a list of the currently active pixmap requests (usually one at most), and wait for their finish when closing the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=769281
2008-02-01 00:43:45 +00:00
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
2007-12-02 20:57:24 +00:00
Pino Toscano dfce0d1fcd centralize the way we know whether a generator is configurable, and properly manage i18n loading in that case
svn path=/trunk/KDE/kdegraphics/okular/; revision=741325
2007-11-25 12:49:30 +00:00
Pino Toscano 2340d9c6d8 Save the rotation of the document, so when reopening the document the last rotation is kept.
This also fixed the problem of the lost rotation when reloading because of document change.

CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731697
2007-11-01 16:15:34 +00:00
Pino Toscano 5dc92c5824 use qint64 for the document size
svn path=/trunk/KDE/kdegraphics/okular/; revision=719107
2007-09-30 10:49:38 +00:00
Pino Toscano 78e2377a87 Add a method for generators to know some metadata of the document
adapted the poppler and the chm generators to use that, instead of fiddling with the settings class

svn path=/trunk/KDE/kdegraphics/okular/; revision=712614
2007-09-14 22:16:00 +00:00
Pino Toscano f8ed5302ec - move the Document::requestDone() to the private class, as it's something internal to the generator work
- make the Generator internally keep an pointer to the private class Document, so we can access easily to the Document' stuff

svn path=/trunk/KDE/kdegraphics/okular/; revision=712498
2007-09-14 15:29:16 +00:00
Pino Toscano aaed55f037 extract the DocumentPrivate class in an own file
svn path=/trunk/KDE/kdegraphics/okular/; revision=712493
2007-09-14 15:17:36 +00:00