Commit graph

4701 commits

Author SHA1 Message Date
Laurent Montel 73ce3b48b7 Port to find_package(PkgConfig)
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=897480
2008-12-16 08:15:04 +00:00
John Layt cc45ce4a1e Fix Print to File output by using Ghostscript ps2pdf to convert ps print file
into pdf format and save that.  Only enabled in PDF, DVI, and DJVU generators
if ps2pdf is found in the path.  Ghostscript is almost always guaranteed to
be installed given many parts of the printing stack depends on it.

Note that resulting PDF or PS file will have the page size as set in the print
dialog and not the page size of the original document, i.e. if an A5 booklet
is printed but the dialog page size is set to A4 then the resulting file will
be A4 and not A5.

svn path=/trunk/KDE/kdegraphics/okular/; revision=897000
2008-12-14 23:18:52 +00:00
Pino Toscano 40d96b9cdd remove the mapping when the playback of a sound is done
svn path=/trunk/KDE/kdegraphics/okular/; revision=896747
2008-12-14 12:12:46 +00:00
Pino Toscano 055e7b0d66 add the compressed versions of eps
BUG: 177516

svn path=/trunk/KDE/kdegraphics/okular/; revision=896220
2008-12-12 21:44:49 +00:00
Pino Toscano 7d410b92d2 check whether the loading really suceeeded
sadly libspectre does not seem to fail in cases where it should... (bug filed)

svn path=/trunk/KDE/kdegraphics/okular/; revision=896112
2008-12-12 14:46:01 +00:00
Pino Toscano cba63bd669 Pass the plugin keyword when creating generators.
This should make the Ruby binding work again.

BUG: 177537

svn path=/trunk/KDE/kdegraphics/okular/; revision=895926
2008-12-12 00:16:20 +00:00
John Layt 2550898805 Fixes to FilePrinter for Qt 4.4:
1) detectCupsService() finally works because QTCPSocket finally works.
   Assumes Cups is on localhost:631 which is a compromise as Qt won't
   even tell us if it is using Cups, let alone where Cups is.

2) Duplex printing obeys user selected option from dialog rather than 
   just guessing.

3) If custom page margins set then respect these


svn path=/trunk/KDE/kdegraphics/okular/; revision=895905
2008-12-11 23:04:07 +00:00
Albert Astals Cid 522ffd00b6 Try to fix again the inifite scroolbar loop
It's still to be improved because it gives you a uncentered page, but better a bit ugly than unusable
This fix will be in KDE 4.1.4
BUGS: 160628

svn path=/trunk/KDE/kdegraphics/okular/; revision=894427
2008-12-08 16:09:15 +00:00
Albert Astals Cid acf5922dd4 correctly restore m_showMenuBarAction status on startup
svn path=/trunk/KDE/kdegraphics/okular/; revision=894123
2008-12-07 23:33:15 +00:00
Script Kiddy 7ac43b7aa5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=891618
2008-12-02 13:40:23 +00:00
Brad Hards 71abc20867 Typo fixes for API documentation.
svn path=/trunk/KDE/kdegraphics/okular/; revision=891066
2008-12-01 03:52:13 +00:00
Pino Toscano 2ec7736962 you don't customize the gui, so there's no need to implement the GuiInterface
svn path=/trunk/KDE/kdegraphics/okular/; revision=891030
2008-12-01 00:35:21 +00:00
Pino Toscano 855a32c601 isolate the tiff loading in an own function
svn path=/trunk/KDE/kdegraphics/okular/; revision=890978
2008-11-30 19:21:23 +00:00
Pino Toscano a2b63a66dc simplier way to get a file name
svn path=/trunk/KDE/kdegraphics/okular/; revision=890968
2008-11-30 18:25:21 +00:00
Pino Toscano 25a414904a djvu toc:
- add mapping for page id/name/title -> page
- properly get the destination for "named" destinations in toc items
this way we should recognize all the types of destinations in a djvu toc

svn path=/trunk/KDE/kdegraphics/okular/; revision=890963
2008-11-30 18:14:30 +00:00
Pino Toscano 674380340e supports url's as destination of toc items
(although i have no djvu documents with such stuff, so i could not test it properly)

svn path=/trunk/KDE/kdegraphics/okular/; revision=890903
2008-11-30 16:26:54 +00:00
Pino Toscano 090d1ec8a1 SVN_SILENT update apidox of DocumentSynopsis
svn path=/trunk/KDE/kdegraphics/okular/; revision=890893
2008-11-30 16:04:49 +00:00
Pino Toscano 3b7aa33f5e if available, support URLs destinations for items
(using poppler HEAD of 5 minutes ago or more recent)

svn path=/trunk/KDE/kdegraphics/okular/; revision=890892
2008-11-30 16:04:09 +00:00
Pino Toscano 5bfb9dca4f Support for external URLs as destination for the TOC items.
svn path=/trunk/KDE/kdegraphics/okular/; revision=890883
2008-11-30 15:48:01 +00:00
Pino Toscano b43fe1ce35 djvu toc:
- do not skip any entry
- better detection of the destination in case it is a page number, a page name or a url
- simplier handling of page numbers as destination

svn path=/trunk/KDE/kdegraphics/okular/; revision=890869
2008-11-30 15:10:36 +00:00
Pino Toscano 769a70956f add more checks against invalid viewports
fix crash when activating some of the toc items in the testcase of #176513 (still it would be nice to know why they are "void" items"...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=890803
2008-11-30 11:28:08 +00:00
Pino Toscano 52a666f073 When starting an incremental search, do not consider the start page "done" if there was a match in it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=890800
2008-11-30 11:02:02 +00:00
Brad Hards ec5589c599 Implement scale-down for images that would not otherwise fit
on the selected printed page format.

BUG:174447

svn path=/trunk/KDE/kdegraphics/okular/; revision=890775
2008-11-30 07:41:52 +00:00
Pino Toscano edc7d22c12 reset the line edit palette when we get results
svn path=/trunk/KDE/kdegraphics/okular/; revision=890654
2008-11-29 18:59:35 +00:00
Pino Toscano 9d1977d645 Resize accordingly when we are resized from "outside" (eg by the WM).
BUG: 173545

svn path=/trunk/KDE/kdegraphics/okular/; revision=890639
2008-11-29 17:45:25 +00:00
Pino Toscano 3ebce5aaf5 Add hidden configuration for showing the document title (if any) in the title bar. Default is true (as before).
Based on a patch by Alejandro Exojo, thanks!
$ kwriteconfig --file okularpartrc --group General --key DisplayDocumentTitle --type bool false

BUG: 158401

svn path=/trunk/KDE/kdegraphics/okular/; revision=890576
2008-11-29 14:36:14 +00:00
Pino Toscano a6bfc8bbdc be sure to toggle the drawing mode when exiting from presentation, if checked
svn path=/trunk/KDE/kdegraphics/okular/; revision=890518
2008-11-29 13:54:31 +00:00
Pino Toscano 5d10ae58c6 Pass the action collection directly in the ctor of the presentation widget, so we can use its actions there too.
As result, move the creation of the drawing actions in the main kpart and just plug them, so their shortcut can be configured.
BUG: 175545

svn path=/trunk/KDE/kdegraphics/okular/; revision=890504
2008-11-29 13:50:37 +00:00
Pino Toscano 1d91c23432 Add VIM-like navigation (HJKL) in the content view.
Patch by Frederik Gladhorn, thanks!

BUG: 174647

svn path=/trunk/KDE/kdegraphics/okular/; revision=890465
2008-11-29 13:22:32 +00:00
Brad Hards 3cb0e7575f Improve handling of document synopsis with
strange entry ordering.

CCBUG:168678

svn path=/trunk/KDE/kdegraphics/okular/; revision=890398
2008-11-29 07:45:25 +00:00
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
2008-11-29 05:34:33 +00:00
Laurent Montel a831fd4628 Use QIMAGEBLITZ cmake module
svn path=/trunk/KDE/kdegraphics/okular/; revision=888269
2008-11-24 08:27:33 +00:00
Script Kiddy 52842bae25 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=887995
2008-11-23 12:18:26 +00:00
Sebastian Trueg 00f069f873 Reverted part of my patches based on pinotree's wishes. :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=887165
2008-11-21 11:45:00 +00:00
Sebastian Trueg b787abb5d8 Nobody reacted on my email to the devel mailing list, so I suspect that noone has any objections to my patches.
Anyway, this is what happens:
* I replaced the zoom combobox in the toolbar with the fit to width/page buttons. For one they look much cleaner and
  also most users would never use the freezooming anyway.
* Removed the frame from the sidebar, making for a cleaner overall look. After all, nothing else has a frame.
* Let the statusbar stretch over the full width of the window. This again makes the app look cleaner.
* Used the same trick as in Gwenview: let the background shine through -> clean++
* Use QToolButton instead of QPushButton for the minibar buttons to fit the other buttons in all apps.

svn path=/trunk/KDE/kdegraphics/okular/; revision=887160
2008-11-21 10:50:16 +00:00
Pino Toscano 5d94111ce8 i18n fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=886194
2008-11-18 18:50:50 +00:00
Patrick Spendrin d7c9bcb596 under windows there is no gid yet
svn path=/trunk/KDE/kdegraphics/okular/; revision=885793
2008-11-17 22:16:28 +00:00
Albert Astals Cid 23857a68b1 Calculate PS paper size more correctly when passed to poppler
svn path=/trunk/KDE/kdegraphics/okular/; revision=885266
2008-11-16 21:59:46 +00:00
Manuel Nickschas 3b09150645 Ah well, looks like the problem should be handled in FindQCA2.cmake rather than the packages.
svn path=/trunk/KDE/kdegraphics/okular/; revision=885219
2008-11-16 19:43:50 +00:00
Manuel Nickschas 79a70e0263 Add QCA2 dirs for linking, let's us build okular again
svn path=/trunk/KDE/kdegraphics/okular/; revision=885214
2008-11-16 19:29:33 +00:00
Pino Toscano e5b13e2d5b claim support for application/vnd.kde.okular-archive in the correct way, ie via .desktop files
thanks Albert for waking me up

svn path=/trunk/KDE/kdegraphics/okular/; revision=884982
2008-11-16 13:19:35 +00:00
Pino Toscano bfa8bd7a5a Expose to the world the document archiving functions:
- loading: slightly edited the loading function to call the right open function of Document in case the file is a document archive (choosen normally in the "open" dialog)
- saving: added an entry in the "export to" formats (and shuffled some code for being more flexible)

probably not much ideal for an usability POV, but we can work on it.

svn path=/trunk/KDE/kdegraphics/okular/; revision=884852
2008-11-16 01:23:31 +00:00
Pino Toscano 938ed4acfa claim support of the new application/vnd.kde.okular-archive mimetype, and check it where appropriate
svn path=/trunk/KDE/kdegraphics/okular/; revision=884851
2008-11-16 01:17:48 +00:00
Pino Toscano 97263dcdf3 - drop the "stamp-" prefix from svg stamps: first the stamp is searched among the SVG stamps, otherwise the classic "icon" loading is tried
- now that we have all the graphics for them, activate the standard PDF stamps, yay!

svn path=/trunk/KDE/kdegraphics/okular/; revision=884844
2008-11-16 00:06:29 +00:00
Pino Toscano 0b399926b2 add 'expired' stamp that i forgot in the previous commit, always by eugene (it-s)
svn path=/trunk/KDE/kdegraphics/okular/; revision=884842
2008-11-15 23:55:50 +00:00
Pino Toscano 2ec236aad8 see you, single element svg-stamp
svn path=/trunk/KDE/kdegraphics/okular/; revision=884839
2008-11-15 23:32:25 +00:00
Pino Toscano d7f5707e8b changes to the stamp loading system:
- instead of load the stamps from single SVGs, load them from elements of a single SVG containing all of them
- cache that said SVG (should make their drawing fast again)

svn path=/trunk/KDE/kdegraphics/okular/; revision=884837
2008-11-15 23:27:27 +00:00
Pino Toscano 2a3b22fa0a Import the first version of the SVG stamps for stamp annotations.
The elements represents the "standard" stamp types as defined in the PDF specs.

Nice work kindly provided you by Eugene 'it-s' Trounev, raise your hand and say "thanks" to him!
CCMAIL: eugene.trounev@gmail.com

svn path=/trunk/KDE/kdegraphics/okular/; revision=884834
2008-11-15 23:15:13 +00:00
Script Kiddy 2f35e0b6ed SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=884759
2008-11-15 18:56:39 +00:00
Pino Toscano b6c5ba1bc8 Add API to load and save "document archives", ie an .okular archive with document and metadata (currently annotations).
Few missing to be done in it:
- more checks when saving
- make it use a proper mimetype

CCBUG: 151614

svn path=/trunk/KDE/kdegraphics/okular/; revision=884597
2008-11-15 14:15:31 +00:00