Commit graph

5633 commits

Author SHA1 Message Date
Albert Astals Cid 7d3a064e15 New ABI compatible changes in okularcore 2012-05-23 20:26:01 +02:00
Albert Astals Cid 0fc1883eb1 New pdf generator version 2012-05-23 20:21:16 +02:00
Fabio D'Urso e3e3657788 When renaming a bookmark folder, don't assume that we are renaming the current document 2012-05-23 18:48:06 +02:00
Fabio D'Urso 04935266d2 Fix wrong text 2012-05-23 00:52:20 +02:00
Thomas Etter ef818392cd Use the left/right arrow keys to change the page
REVIEW: 104596
2012-05-23 00:23:36 +02:00
Fabio D'Urso 6f629e3237 CMakeLists: Install saveinterface.h 2012-05-21 23:54:48 +02:00
Fabio D'Urso b3782d82a1 Fallback behavior for documents whose generator provides native annotation editing support without saveAs support
The only affected generator is poppler. Note that:
Document has /Encrypt <=iff=> SaveInterface supportsOption(SaveChanges) is false

This patch enforces the following behavior (and warns the user the first time
he edits an annotation).

- If the document has /Encrypt, warn that "Save as" is not available, but it's
possible to export as okular archive. New annotations will be automatically
saved to XML as usual.
Note that the previous patch already made all existing annotations uneditable,
because there's no way to save them.

- If the document has no /Encrypt and there are existing external annotations,
warn that changes won't be saved automatically. The user needs to "Save as" or
changes will be lost.

- If the document has no /Encrypt and there aren't existing external
annotations, don't show any warning. New annotations will be automatically saved
to XML as usual and to file if "Save as" is pressed.
2012-05-17 23:51:00 +02:00
Fabio D'Urso b33d71ef81 Enable edit/removal of external annotations if the generator supports it 2012-05-17 23:50:55 +02:00
Fabio D'Urso d916c1e6cd poppler gen: Added mutex protection to PopplerAnnotationProxy 2012-05-17 23:50:52 +02:00
Fabio D'Urso cb1968383f poppler gen: don't lie ;) We can't save changes if the document has /Encrypt 2012-05-17 23:50:47 +02:00
Fabio D'Urso 1fdc4cbc72 Only draw the bounding box of (ExternallyDrawn & BeingMoved) annotations 2012-05-17 23:50:44 +02:00
Fabio D'Urso 29db8bafbc Render ExternallyDrawn annotations in PagePainter if they are BeingMoved 2012-05-17 23:50:41 +02:00
Fabio D'Urso 157638f2f9 Added Annotation::BeingMoved flag to avoid refreshing pixmaps while moving annotations 2012-05-17 23:50:39 +02:00
Fabio D'Urso 80c26f5bb9 poppler gen: Put new annotation features between #ifdef HAVE_POPPLER_0_20 2012-05-17 23:50:35 +02:00
Fabio D'Urso 65d59f2a3e poppler gen: AnnotationProxy implementation 2012-05-17 23:50:31 +02:00
Fabio D'Urso d06c17d451 poppler gen: Moved PDFDebug constant into PDFGenerator class 2012-05-17 23:50:28 +02:00
Fabio D'Urso a76e328dd6 poppler gen: Added checkbox to print/hide annotations in PDFOptionsPage 2012-05-17 23:50:24 +02:00
Fabio D'Urso 6c296b916b Use UUIDs intead of a (broken) counter to generate annotations' unique names
The previous counter-based approach didn't take into account existing names used
by external annotations and names used in other pages.
Instead of creating a document-global table of used names, I used random UUIDs
as a source of unique names.
2012-05-17 23:50:20 +02:00
Fabio D'Urso 68127e00ea Do not store flag Annotation::ExternallyDrawn when exporting to DOM
It's an implementation detail
2012-05-17 23:50:17 +02:00
Fabio D'Urso 249bea5985 Re-add restored annotations via Document so that AnnotationProxy gets notified
Previously, restored annotations followed a shorter path that bypassed AnnotationProxy
2012-05-17 23:50:14 +02:00
Fabio D'Urso f6fa2a5614 Disable GUI operations on certain types of annotations
Modification and removal of *external* annotations are disabled by this
patch. Note that this change doesn't remove any functionality, because they
have never been implemented (AnnotationProxy is defined by the previous
patch).

The #if0'd blocks will be enabled by a future patch that provides fallback
behavior for generators that don't support saving changes.
2012-05-17 23:50:10 +02:00
Fabio D'Urso ec9f068d77 Added AnnotationProxy to SaveInterface
Based on Pino Toscano's earlier work
2012-05-17 23:49:58 +02:00
Fabio D'Urso 07c57bb2ab Dead code removed (PagePrivate::modifyAnnotation)
The first if ("modified already") is always taken
2012-05-17 23:49:54 +02:00
Script Kiddy f6781637c0 SVN_SILENT made messages (.desktop file) 2012-05-12 12:28:52 +02:00
Tobias Koenig fd03f48bd7 Fix z-order handling of annotations in PDFs
REVIEW: 104576
2012-05-05 12:03:29 +02:00
Script Kiddy d7e2453a4d SVN_SILENT made messages (.desktop file) 2012-05-05 10:45:59 +02:00
Tobias Koenig 8683822a47 Improve auto play behaviour of videos
Use the auto play property of movies that are not started via
the 'page open' action. That's the case for Rendition-based videos
from PDF documents for example.
2012-04-26 00:24:39 +02:00
Albert Astals Cid 648c2a0638 Merge remote-tracking branch 'origin/KDE/4.8' 2012-04-18 20:17:00 +02:00
Albert Astals Cid 25f2776090 Make sure we enable rePos before call setViewport
BUGS: 298362
FIXED-IN: 4.8.3
2012-04-18 20:13:57 +02:00
Script Kiddy ac51eb486c SVN_SILENT made messages (.desktop file) 2012-04-18 09:35:10 +02:00
Script Kiddy 5482696067 SVN_SILENT made messages (.desktop file) 2012-04-17 21:20:49 +02:00
Tobias Koenig 40dd53e5de Be explicit about auto-play for movie annotations 2012-04-13 07:52:41 +02:00
Tobias Koenig 881e217262 Fix crash in dtor of ScreenAnnotation
We don't need to keep the Poppler ScreenAnnotation object around.
2012-04-13 07:52:41 +02:00
Tobias Koenig 802020b5a9 Use embedded ctor of Movie only if media rendition has embedded stream 2012-04-13 07:52:41 +02:00
Albert Astals Cid 0ccf769bbe Comment this since we don't use it for anything and the window field will be going away in the future
(cherry picked from commit 4681d01e5a)
2012-04-12 23:21:53 +02:00
Albert Astals Cid 4681d01e5a Comment this since we don't use it for anything and the window field will be going away in the future 2012-04-12 23:20:55 +02:00
Tobias Koenig 924fc69854 Start auto-play of video when presentation view is opened
Disable auto-play feature for page view, it's not supposed to be used
there when just browsing through a document.
2012-04-11 16:50:30 +02:00
Script Kiddy 00fdc61daa SVN_SILENT made messages (.desktop file) 2012-04-11 09:35:46 +02:00
Albert Astals Cid df5b9cd4a2 Do not set mTextPageReady to true
mTextPageReady is only used for threaded generation and this is a sync one so resetting it to true make very bad things happen
An improvement of this area is needed since it makes no sense canGenerateTextPage returns mTextPageReady when generateTextPage doesn't use itB
BUGS: 297379
FIXED-IN: 4.8.3
(cherry picked from commit c29ce712cf)
2012-04-06 00:53:02 +02:00
Albert Astals Cid c29ce712cf Do not set mTextPageReady to true
mTextPageReady is only used for threaded generation and this is a sync one so resetting it to true make very bad things happen
An improvement of this area is needed since it makes no sense canGenerateTextPage returns mTextPageReady when generateTextPage doesn't use itB
BUGS: 297379
FIXED-IN: 4.8.3
2012-04-06 00:50:13 +02:00
Tobias Koenig 63547acd52 Fix compilation for older poppler versions 2012-04-03 15:35:49 +02:00
Tobias Koenig 4639ded310 Implement autostart support for movie annotations
Evaluate MovieActions to implement autostart behavior for movie annotations.

REVIEW:104271
2012-04-03 14:18:10 +02:00
Tobias Koenig 5f87327c61 Hide video widget after the video has finished in PlayOnce mode. 2012-03-30 17:19:28 +02:00
Tobias Koenig 8bd5deea1f cleanup coding style
Replace tabs with white spaces and remove trailing white spaces
2012-03-30 15:40:59 +02:00
Albert Astals Cid a796f78919 Update version for 4.8.2 2012-03-29 18:25:18 +02:00
David Faure dc2f2d36aa Fix compilation with strict iterators 2012-03-27 13:25:12 +02:00
Mailson Menezes bd9087f20a Remember position on the page in bookmark
IOW accept more than one bookmark per page
BUGS: 157198
REVIEW: 104365
2012-03-26 20:01:01 +02:00
Albert Astals Cid 9d805df013 Double click selects words
BUGS: 187347
FIXED-IN: 4.9,0
2012-03-25 23:48:47 +02:00
Guillermo A. Amaral B 592c0c1611 Allow PDF Generator to handle embedded movies 2012-03-22 17:35:33 +00:00
Albert Astals Cid aa893dd0d7 Do not crash on non movie annotations
Patch by Fabio D'Urso
CCMAIL: tokoe@kde.org
2012-03-14 19:02:05 +01:00